367_HD04
*Foundations of Econometrics, Fall 2015, Prepared by Dr. I-Ming Chiu
*Accompany 367_Handout05.pdf
*Binomial Distribution
clear
display binomialp(10, 2, 0.2)
display binomial(10, 2, 0.2)
set obs 11
gen k = _n – 1
list
gen y_prob = binomialp(10, k, 0.2)
gen y_probcum = binomial(10, k, 0.2)
graph twoway dropline y_prob k
graph twoway bar y_probcum k
*Possion Distribution
clear
set obs 11
gen k = _n – 1
list
gen y_prob = poissonp(2, k)
graph twoway dropline y_prob k