Homework 5

CHE 116: Numerical Methods and Statistics

(2/13/2020)


1. Probability Distribution Identification (7 Points)

State what probability distribution best describes the following random numbers. 1 point each.

  1. The number of times you win in five boxing matches
  2. Number of days until you drop and break your phone.
  3. If the temperature is above or below freezing
  4. The value of the temperature outside
  5. The number of students who get 4.0 when graduating
  6. The number of minutes between emails
  7. The number of emails received in one minute

2. Computing Outcome Probabilities (12 Points)

For the following problems, choose and state an appropriate distribution, write out its parameters based on the problem statement and then compute the requested quantity. Write the distribution information in Markdown/LaTeX and compute answers in Python. Choose only from the distributions presented in lecture. 4 points each

  1. The probability of success for becoming a successful actor is 0.01. What is the probability of not becoming a successful actor?

  2. Five people are competing in an ultra marathon. The probability to complete the ultra marathon is 50%. What is the probability that 3 complete the ultra marathon?

  3. You are watching deer walk across a street. 10 deer take 5 minutes to cross the street. What is the probability of seeing a deer cross within the first minute?

3 Plotting Probability Distributions (24 Points)

Plot the probablities using Python. Accurately label x and y axis. State which distribution the plot is decribing. Make distinction in the use of discrete or continuous variables in the plots. Use for loops to compute probabilities. Choose reasonalbe axes limits that encapsulate 99% of probability. Do not use numpy. 8 points each.

  1. Each time you make a post on Twitter, there is an 80% chance you get a retweet. Plot the probability of number of tweets before you get one with a retweet.

  2. You are racing your 3 friends in Mario Kart. Due to your practice, you have a 45% chance of winning in a match. Plot the probability of number of wins if you and your friends race in 14 matches.

  3. Over the past two hundred hunger games, district 9 has won 3 times. Plot the probability for number of district 9 wins in the next 10 years.

4 Working with Probability Distributions (18 Points)

Compute answers in Python using for loops. Do not use numpy. Use only the distributions from lecture notes. 6 points each

  1. Five people are competing in an ultra marathon. The probability to complete the ultra marathon is 50%. What is the probability that more than 3 complete the ultra marathon?

  2. Each time you make a post on Twitter, there is an 80% chance you get a retweet. What is the probability that it takes more than 4 tweets before you get a retweet?

  3. Show that the equation for the binomial distribution is normalized (sums to 1) for $n = 5$, $p = 0.2$.