522A HW2 Hints - ECON520

To preform combinations in matlab use the "nchoosek" function. For example nchoosek(10,3) = n!/(n-k)!k! =10!/(7!*3!) = 120

To calculate the CDF of a Binomial you can use the "binocdf" function. For example binocdf(6,10,.5) returns the probability of a cdf with 6 successes, 10 trials, and a probability of .5.

ECON520: 522A HW2 Hints (last edited 2007-01-29 16:17:25 by eller239095)