Skip to content

Instantly share code, notes, and snippets.

@alphazwest
Last active July 13, 2021 16:54
Show Gist options
  • Save alphazwest/20815e1c83288b9a43db29a378032978 to your computer and use it in GitHub Desktop.
Save alphazwest/20815e1c83288b9a43db29a378032978 to your computer and use it in GitHub Desktop.
Resulting covariance calculations per sampled value of the X and Y series.
Observation Number Predictor (X) xi-x_bar Response (Y) yi - y_bar (yi - y_bar)(xi-x_bar)
1 10 4.5 3.15 -1.471 -6.6195
2 11 5.5 3.47 -1.151 -6.3305
3 12 6.5 3.86 -0.761 -4.9465
4 13 7.5 4.07 -0.551 -4.1325
5 14 8.5 4.57 -0.051 -0.4335
6 15 9.5 4.86 0.239 2.2705
7 16 10.5 5 0.379 3.9795
8 17 11.5 5.43 0.809 9.3035
9 18 12.5 5.64 1.019 12.7375
10 19 13.5 6.16 1.539 20.7765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment