Chapter 18 Cross-cutting Questions

18.1 Exercise 1

This exercise will build on Exercise 4.5, which uses data from a paper published by Catherine Polik who took FW8051 in the Spring of 2023 (Polik et al., 2018).

We are going to model the relationship between sea-surface temperature (SST) anomalies and a nitrogen isotropic signature (δ15N) measured in two different types of sediment:

  1. Sapropels, which are dark-colored sediments, rich in organic matter.
  2. Marl sediment, which is carbon-poor and next to the Sapropels.

The temperature anomalies (our response variable) represent discrepancies between two different methods for reconstructing sea-surface temperature from molecular signatures in marine sediment cores (TEX86 and U37K). The δ15N measurements are lower in Sapropel sediments and likely capture N-cycling dynamics during periods of high productivity. The accelerated growth of ammonia-oxidizing organisms (in the Archaea domain) is thought to impact SST measurements reconstructed using the TEX86 method, and thus, likely impact the temperature anomalies.

The data set can be accessed from the Data4Ecologists package as follows:

library(Data4Ecologists)
library(ggplot2)
data(PolikSST)

The data set contains the following variables:

  • Site = Location where the core was taken during Leg 160 of the Ocean Drilling Program
  • Sapropel = Three sapropels sampled: S3 (81 ka), S5 (124 ka), and i-282 (2.943 Ma)
  • mbsf = Meters below seafloor, i.e. the depth of the sample
  • d15N.TN = The nitrogen isotopic value of the bulk sediment, in permil
  • TEX86.SST = SST reconsctructed using the TEX86 method, in C
  • Uk37.SST = SST reconsctructed using the Uk37 method, in C
  • Temp.Anomaly The difference between TEX86 and Uk37 SST reconstructions
  • Sediment = Whether the sample comes from inside the sapropel or from the surrounding, carbon-poor marl sediment

Before starting the exercise, filter out any observations that are missing values for either Temp.Anomaly or d15N.TN using the following code:

library(dplyr)
PolikSST <- PolikSST %>% 
  filter(!is.na(Temp.Anomaly)) %>%
  filter(!is.na(d15N.TN))
  1. Fit a model using lm where Temp.Anomaly depends only on d15N.TN, but use a quadratic polynomial to model this relationship. Make sure to use raw polynomials (poly(x, 2, raw = TRUE)) or create the squared term and append it to the data set prior to fitting (e.g., PolikSST$d15.TNsquared <- PolikSST$d15.TN*PolikSST$d15.TN). We will assume that all assumptions of the regression model are met. We can then use derivatives and calculus to estimate the value of d15N.TN associated with the maximum temperature anomaly. Our fitted model implies:

E[Y|X]=β0+β1X+β2X2

Let’s take a derivative of this experession with respect to X, set it equal to 0, and solve for X:

dE[Y|X]dX=β1+2β2X=0.

This implies that the maximum occurs at Xmax=β12β2.

Plug in the estimated coefficients to estimate the value of d15N.TN associated with the maximum expected temperature anomaly.

  1. Determine a confidence interval for Xmax using bootstrapping or the delta method.

  2. Fit the same model in a Bayesian framework using JAGS. Make sure to check that your model has converged. Then, calculate a 95% credible interval using the posterior distributions of β1 and β2.

  3. Explain how uncertainty is measured in the frequentist approach and contrast that to how uncertainty is measured in the Bayesian approach. This needs to be in your own words and should be constructed without the help of large language models/AI. Further, you should be prepared to explain your answer in person if I request that you do so.

References

Polik, C. A., Elling, F. J., & Pearson, A. (2018). Impacts of paleoecology on the TEX86 sea surface temperature proxy in the pliocene-pleistocene mediterranean sea. Paleoceanography and Paleoclimatology, 33(12), 1472–1489.