Created
March 10, 2014 06:24
-
-
Save codyhan94/9460341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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