Skip to content

Instantly share code, notes, and snippets.

@heiwais25
Created September 15, 2017 06:44
Show Gist options
  • Save heiwais25/78361a612cb237b2057f3eef91f40590 to your computer and use it in GitHub Desktop.
Save heiwais25/78361a612cb237b2057f3eef91f40590 to your computer and use it in GitHub Desktop.
dnorm(0, 0, 1) = 0.3989423 # PDF value at 0
x = seq(from = -5, to = 5, by = .1) # make x points to draw distribution
plot(x, dnorm(x, 0, 1), type="l") # connect points by line in the plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment