{"cells": [{"cell_type": "markdown", "metadata": {}, "source": ["# Homework 7.3: Heredity in Darwin's finches (25 pts)\n", "\n", "**[Fortis heredity download](https://s3.amazonaws.com/bebi103.caltech.edu/data/fortis_beak_depth_heredity.csv)**\n", "\n", "**[Scandens heredity download](https://s3.amazonaws.com/bebi103.caltech.edu/data/scandens_beak_depth_heredity.csv)**\n", "\n", "\n", "
"]}, {"cell_type": "markdown", "metadata": {}, "source": ["We continue working with Peter and Rosemary Grant's wonderful data set about Darwin's finches. \n", "\n", "Introgressive hybridization occurs when a *G. scandens* bird mates with a *G. fortis* bird, and then the offspring mates again with pure bred *G. scandens* bird. This brings traits from *G. fortis* into the *G. scandens* genome. As this may be a mode by which beak geometries of *G. scandens* change over time, it is useful to know how **heritable** a trait is. Heritability is defined as the ratio of the covariance between parents and offsprings to the variance of the parents alone. To be clear, the heritability is defined as follows.\n", "\n", "1. Compute the average value of a trait in a pair of parents.\n", "2. Compute the average value of that trait among the offspring of those parents.\n", "3. Do this for each set of parents/offspring. Using this data set, compute the covariance between the average offspring and average parents and the variance among all average parents.\n", "4. The heritability, $h^2$, is the ratio of the covariance between parents and offspring to the variance of the parents, $h^2 = \\sigma_{po}/\\sigma_p^2$.\n", "\n", "This is a more apt definition than, say, the Pearson correlation, because it is a direct comparison between parents and offspring.\n", "\n", "Heritability data for beak depth for *G. fortis* and *G. scandens* can be found [here](https://s3.amazonaws.com/bebi103.caltech.edu/data/fortis_beak_depth_heredity.csv) and [here](https://s3.amazonaws.com/bebi103.caltech.edu/data/scandens_beak_depth_heredity.csv), respectively. (Be sure to look at the files before reading them in; they do have different formats.) From these data, compute the heritability of beak depth in the two species, with confidence intervals. How do they differ, and what consequences might this have for introgressive hybridization?"]}, {"cell_type": "markdown", "metadata": {}, "source": ["
"]}], "metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.5"}}, "nbformat": 4, "nbformat_minor": 4}