In [1]:

```
from datascience import *
import numpy as np
```

In [2]:

```
import matplotlib
%matplotlib inline
import matplotlib.pyplot as plots
plots.style.use('fivethirtyeight')
```

In [3]:

```
import plotly.express as px
from plotly.subplots import make_subplots
import plotly.graph_objects as go
```

Recall, long ago, in lecture 10 we built a function to predict child heights. We started with Galton's height dataset which contained the full grown heigh of children and the height's of both of their parents. We then computed the average height of the parents of each child.

In [4]:

```
# Note: Child heights are the **adult** heights of children in a family
families = Table.read_table('family_heights.csv')
parent_avgs = (families.column('father') + families.column('mother'))/2
heights = Table().with_columns(
'Parent Average', parent_avgs,
'Child', families.column('child'),
)
heights
```

Out[4]:

Parent Average | Child |
---|---|

72.75 | 73.2 |

72.75 | 69.2 |

72.75 | 69 |

72.75 | 69 |

71 | 73.5 |

71 | 72.5 |

71 | 65.5 |

71 | 65.5 |

69.5 | 71 |

69.5 | 68 |

... (924 rows omitted)

What was the relationship between height of the full grown child and the height of the parents?

In [5]:

```
heights.iscatter('Parent Average', 'Child')
```