Skip to content

Instantly share code, notes, and snippets.

@codyhan94
Created March 10, 2014 04:10
Show Gist options
  • Save codyhan94/9459347 to your computer and use it in GitHub Desktop.
Save codyhan94/9459347 to your computer and use it in GitHub Desktop.
ans3 = Import["Anscombe3", "Table", "HeaderLines" -> 1];
ansModel = LinearModelFit[ans3, x, x];
residuals = ansModel["FitResiduals"]
KolmogorovSmirnovTest[residuals]
KolmogorovSmirnovTest[residuals, NormalDistribution[]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment