Tutorial 4
Tutorial 4
Tutorial 4
1. An oce has 4 copying machine, and the random variable X measures how many of them are in use
at a particular moment in time. Suppose that P (X = 0) = 0.08, P (X = 1) = 0.11, P (X = 2) = 0.27
and P (X = 3) = 0.33.
2. A fair coin is tossed 3 times. A player wins $1 if the rst toss is a head, but loses $1 if the rst toss
is a tail. Similarly, the player wins $2 if the second toss is a head, but loses $2 if the second toss is
a tail, and wins or loses $3 according to the result of the third toss.
Let the random variable X be the total winnings after the 3 tosses (possibly a negative value if losses
are incurred).
3. Consider a random variable measuring the following quantities. In each case, state with reasons
whether you think it is more appropriate to dene the random variable as discrete or as continuous.
4. A random variable X takes values between 4 and 6 with a probability density function
1
f (x) =
x ln(1.5)
1
(b) Check that the total area under the probability density function is equal to 1.
(c) What is P (4.5 ≤ X ≤ 5.5)? 0.4949
(d) Construct and sketch the cumulative distribution function.
(e) What is the expected value of this random variable? 4.933
(f) What is the median of this random variable? 4.9
(g) What is the variance and the standard deviation of this random variable? Var(x) = 0.3285
STD(x) = 0.5731
5. A random variable X takes values between 0 and ∞ with a cumulative distribution function
F (x) = A + Be−x
for 0 ≤ x < ∞.
(a) Find the values of A and B and sketch the cumulative distribution function. A = 1
B = -1
(b) What is P (2 ≤ X ≤ 3)? 0.0855
(c) Construct and sketch the probability density function.
6. Sometimes a random variable is a mix of discrete and continuous components. For example, suppose
that the dial-spinning game is modied in the following way. First a fair coin is tossed and if a head
is obtained, the player wins $500 and the dial is not spun. However, if a tail is obtained, the player
spins the dial and receives winnings of $1000 × 180
θ
as before. In this game there is a probability of
0.5 of winning $500, with all the other possible winnings between $0 and $1000 being equally likely.
The coin toss provides a discrete element to the winnings, and the dial spin provides a continuous
element. The best way to describe the probabilistic properties of mixed random variables such as this
is through a cumulative distribution function. The cumulative distribution function of the winnings
from this game is given by the gure below.
2
7. (MATLAB) Simulate the game in Exercise 2. What is the average winnings if a player plays the
game 100 times?