Skip to content

Instantly share code, notes, and snippets.

@codyhan94
Created March 10, 2014 06:24
Show Gist options
  • Save codyhan94/9460341 to your computer and use it in GitHub Desktop.
Save codyhan94/9460341 to your computer and use it in GitHub Desktop.
ages = {40, 34, 23, 40, 31, 33, 49, 33, 34, 43, 26, 39};
dates = {1543, 1600, 1665, 1746, 1774, 1839, 1858, 1864, 1896, 1901,
1905, 1926};
data = Transpose[{dates, ages}];
model = LinearModelFit[data, t, t]
residuals = model["FitResiduals"]
KolmogorovSmirnovTest[residuals]
KolmogorovSmirnovTest[residuals, NormalDistribution[],
"HypothesisTestData"]["TestDataTable"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment