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...
Learn a little bit about the new Pastebin.com on our help page. hide message
By supa on the 28th of Jan 2010 06:52:25 PM Download | Raw | Embed | Report
  1. trials = 100000;
  2. X_vector = random( ' Binomial ' , 10 , 0.6 , 1 , trials )
  3. for i.html">i=1:11
  4. count ( i.html">i , 1 ) = i-1 ;
  5. count ( i.html">i , 2 ) = sum( ( i-1) == X_vector ) ;
  6. end
  7. bar ( count ( : , 1 ) , count ( : , 2 ) / trials ) ;
  8.  
  9. Simulate and plot the probability mass functions for the following random variables:
  10. 1. Binomial with parameters n = 20 and p = 0.2 (you will need more bins in your histogram)
  11. 2. Geometric random variable with parameter p = 0.1 (choose reasonable number of bins). Note that they
  12. define the geometric as the number of failures after a success which is why you can get zero.
  13. 3. Poisson random variable with parameter lamda= 3
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: