May 9, 2024

Developing Data Products Final Project

This is the final project for the JHU’s Developing Data Products course

This project contains two parts:

  1. An interactive web-hosted app where you can use mother and father’s height and the child’s sex to predict child’s height, based on the R’s built-in Galton Families dataset.

  2. This presentation slides that presents you with the scatter plot of the prediction model.

How to use the web app?

We fit a linear model to the the Galton Families dataset. In the webapp, in you toggle parents’ height and the child’s sex to predict its height

The application is running on (https://siyangni.shinyapps.io/new_folder/)

Galton Families Dataset

For demonstration purpose, we use the simple R built-in Galton Families dataset.

##      family        father         mother      midparentHeight    children     
##  185    : 15   Min.   :62.0   Min.   :58.00   Min.   :64.40   Min.   : 1.000  
##  066    : 11   1st Qu.:68.0   1st Qu.:63.00   1st Qu.:68.14   1st Qu.: 4.000  
##  120    : 11   Median :69.0   Median :64.00   Median :69.25   Median : 6.000  
##  130    : 11   Mean   :69.2   Mean   :64.09   Mean   :69.21   Mean   : 6.171  
##  166    : 11   3rd Qu.:71.0   3rd Qu.:65.88   3rd Qu.:70.14   3rd Qu.: 8.000  
##  097    : 10   Max.   :78.5   Max.   :70.50   Max.   :75.43   Max.   :15.000  
##  (Other):865                                                                  
##     childNum         gender     childHeight   
##  Min.   : 1.000   female:453   Min.   :56.00  
##  1st Qu.: 2.000   male  :481   1st Qu.:64.00  
##  Median : 3.000                Median :66.50  
##  Mean   : 3.586                Mean   :66.75  
##  3rd Qu.: 5.000                3rd Qu.:69.70  
##  Max.   :15.000                Max.   :79.00  
## 

Plot

Here is the visualization of the linear model.