Subdomain Posts
MatLab | 5 days ago
MatLab | 6 days ago
MatLab | 10 days ago
MatLab | 10 days ago
MatLab | 11 days ago
PHP | 13 days ago
MatLab | 13 days ago
None | 13 days ago
MatLab | 17 days ago
mIRC | 18 days ago
Recent Posts
None | 3 sec ago
None | 23 sec ago
None | 24 sec ago
None | 28 sec ago
Java 5 | 29 sec ago
None | 29 sec ago
None | 31 sec ago
PHP | 40 sec ago
None | 52 sec ago
PAWN | 52 sec ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By supa on the 28th of Jan 2010 06:52:25 PM
Download |
Raw |
Embed |
Report
trials = 100000;
X_vector = random( ' Binomial ' , 10 , 0.6 , 1 , trials )
end
bar ( count
( : , 1
) , count
( : , 2
) / trials
) ;
Simulate and
plot the probability mass functions
for the following random variables:
1.
Binomial with parameters n = 20 and p = 0.2
(you will need
more bins in your histogram
)
2. Geometric random variable with parameter p = 0.1 (choose reasonable number of bins). Note that they
define the geometric as the number of failures after a success
which is why you can
get zero.
3. Poisson random variable with parameter lamda= 3
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post