Week 5 - Egg variance

Please use Canvas to return the assignments: https://ucsb.instructure.com/courses/32934/assignments/473365

Liu et al found an interesting result, that characteristics of the eggs of certain Arctic shorebird species exhibit linear variation as a function of longitude (that’s longitude, not latitude) 1:

Why might that be? The authors surmise,

The longitudinal pattern of egg characteristics might be influenced by climatic factors in the circumpolar area or it might be affected by female body size. Eggs closer to the western side of Eurasia are smaller, less elongated and less pointed, whereas eggs closer to the eastern side are the opposite. […] Because oceanic climate also varies along longitudinal gradients in the Arctic area, the local precipitation and temperature likely impact food availability via phenology and affect reproductive effort for females during incubation and hence on egg characteristics.

Our ASDN database has data for the first of their study species, the Dunlin (Calidris alpina). While the ASDN project studied eggs in a different hemisphere (northern Canada as opposed to Eurasia), nevertheless we can ask ourselves, does our data exhibit the same trends?

For this problem, you will be:

To do so you will need to load a larger set of nest and egg data from CSV files into new tables, and use some statistics functions provided by DuckDB to do the regression.

Part 1 (50pts)

Please submit your SQL for the above.

Part 2 (10pts)

Answer the following questions.

  1. Do the tables created automatically by DuckDB guarantee that a nest ID mentioned in the Eggs_big table actually exists in the Nests_big table? If yes, explain how that is guaranteed, if not, explain why not. (6pts)

  2. What queries did you use (or could you use) to find the minimum and maximum longitude values in the Site table? (2pts)

  3. The interpretation of the Pearson correlation coefficient is: +1 is a perfect positive correlation, -1 is a perfect negative correlation, and 0 is no correlation at all. How would you characterize the correlation between egg volume and longitude for the eggs of Calidris alpina in the Arctic above Canada? (2pts)

Footnotes

  1. Liu J, Chai Z, Wang H, Ivanov A, Kubelka V, Freckleton R, Zhang Z, Székely T. “Egg characteristics vary longitudinally in Arctic shorebirds.” iScience 26(6):106928 (2023 May 19). https://doi.org/10.1016/j.isci.2023.106928↩︎


This work is licensed under CC BY 4.0

UCSB logo