Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 16th, 2018 73 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. lambda=1;
  2. n=100;
  3. alpha=3;
  4. y = dgamma(n, shape=alpha, scale=lambda)
  5.    
  6. lambda = 1
  7. n = 100
  8. alpha = 3
  9. y = rgamma(n, shape = alpha, scale = lambda)
  10. hist(y, freq = FALSE, ylim=c(0,0.3))
  11. domain = seq(from = 0, to = 8, by = 0.01)
  12. pdf = dgamma(domain, shape = alpha, scale = lambda)
  13. lines(density(y), col='red')
  14. lines(domain, pdf, col='blue')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top