Skip to content

Instantly share code, notes, and snippets.

@pramod-io
Created June 21, 2014 01:51
Show Gist options
  • Select an option

  • Save pramod-io/83acd8fe10e2885566ce to your computer and use it in GitHub Desktop.

Select an option

Save pramod-io/83acd8fe10e2885566ce to your computer and use it in GitHub Desktop.
Beta Distribution in R
#https://www.youtube.com/watch?v=UZjlBQbV1KU
x <- seq(0, 1, length=100)
a= 0.5
b= 0.5
y <- x^(a-1) * (1-x)^(b-1)
plot(x, y, type="l", lwd=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment