Homework 2
Homework 2
Policy: You should write your own answer/code by yourself. Cheating is highly discouraged; it
will mean a zero or negative grade from the homework.
Submission Instructions: Please submit your homework through the Ninova website. Please zip
and upload all your files using filename studentID.rar. For the questions that require to write a
Matlab code, you must provide all Matlab codes you wrote with your zipped file. The codes you
do not submit will cause you to lose a portion of your grade. You must include the report.pdf file
with your homework containing answers to the questions, and outputs/figures.
Question 1:
Let X be a discrete RV with the following PMF
Question 2:
Let X be a continuous RV with the following PDF
a) Find E[X]
b) Find Var[X]
c) Find F(x), the cumulative distribution function of X
Question 3:
Two 6-sided fair dice are rolled. When the sum of the dice is a seven or an eleven we call it a
success. Otherwise we call it a failure.
a) Let X be the number of successes in 10 throws of the dice. Calculate E[X] and Var[X]
b) If we do this experiment 10 times, what is the probability of getting exactly 5 successes?
Question 4:
Two friends are playing a game. First one will flip a fair coin until it lands Heads. If X is the total
number of flips, then the first guy has to pay the other 𝑔(𝑋) dollars, where 𝑔(𝑋) is defined as
Write a code and plot E[𝑔(𝑋))] as a function of 𝑀. For what value of 𝑀 is the game “fair” ?
Question 5:
A chef is baking chocolate cake with blueberries. Let X be the number of blueberries found in one
slice of cake and assume that X follows a Poisson distribution with mean 𝜆.
a) Assume 𝜆 = 9. What is the probability that one slice of cake has no blueberries?
b) The chef wants to reduce the average number of blueberries per one slice of cake (λ) to
save costs. What is the smallest value of 𝜆 possible, which would still ensure the probability
in part a) is no more than 0.01?
Question 6:
Assume that we can model the probability of the life time 𝑇 of a phone as follows:
𝑡
𝑃(𝑇 ≥ 𝑡) = 𝑒 −7 , for all 𝑡 ≥ 0
If there is no problem in this phone for 4 years. What is the probability that we face with a problem
in the fifth years?