Skip to content

Instantly share code, notes, and snippets.

@tbates
Created September 16, 2013 21:52
Show Gist options
  • Save tbates/6587094 to your computer and use it in GitHub Desktop.
Save tbates/6587094 to your computer and use it in GitHub Desktop.
# mixture distribution..
n = 100000;
distOne = rnorm(n, 50, 10)
distTwo = rnorm(n, 120, 15)
x = c(distOne,distTwo)
hist(x)
psych::kurtosi(x);psych::skew(x);
# DV <- sum of unobserved IVs
x = distOne + distTwo
hist(x)
psych::kurtosi(x);psych::skew(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment