This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: num2str(r)]; Using this code, we get the following answers: What is the probability of getting three heads in five tosses of a fair coin? Number of trials: 5 Exact number of successes: 3 Probability of success: .5 And the Matlab response is Probability of 3 successes in 5 trials: 0.3125 What is the probability that in five rolls of a fair die, a number 1 appears twice? Number of trials: 5 Exact number of successes: 2 Probability of success: 1/6 And the response is Probability of 2 successes in 5 trials: 0.16075...
View
Full
Document
This note was uploaded on 11/29/2010 for the course ECE 302 taught by Professor Gelfand during the Spring '08 term at Purdue UniversityWest Lafayette.
 Spring '08
 GELFAND

Click to edit the document details