You are on page 1of 5

Random Variables and Distributions Examples

Example 1. Consider the experiment of tossing a coin twice. (a) (b) List the experimental outcomes. Define a random variable that represents the number of heads occurring on the two tosses. (c) Show what value the random variable would assume for each of the experimental outcomes. (d) Is this random variable discrete or continuous?

Example 2. Consider the experiment of a worker assembling a product. (a) Define a random variable that represents the time in minutes required to assemble the product. (b) (c) What values may the random variable assume? Is the random variable discrete or continuous?

Example 3. The probability distribution for the random variable x follows. x f(x) (a) (b) (c) (d) 20 0.20 25 0.15 30 0.25 35 0.40

Is this probability distribution valid? Explain. What is the probability that x = 30? [0.25] What is the probability that x less than or equal to 25? [0.35] What is the probability that x is greater than 30? [0.40]

Example 4. The following data were collected by counting the number of operating rooms in use at a hospital over a 20-day period: On three of the days only one operating room was used, on five of the days two were used, on eight of the days three were used, and on four days all four of the hospitals operating rooms were used. (a) Use the relative frequency approach to construct a probability distribution for the number of operating rooms in use on any given day. (b) (c) Draw a graph of the probability distribution. Show that your probability distribution satisfies the required conditions for a valid discrete probability distribution.

Random Variables and Distributions Examples

Example 5. The following table provides a probability distribution for the random variable x. x f(x) Compute (a) (b) (c) the expected value of x, E(x). [5.2] the variance of x, Var(x). [4.56] the standard deviation of x, Std(x). [2.14] 2 0.20 4 0.30 7 0.40 8 0.10

Example 6. A psychologist determined that the number of sessions required to obtain the trust of a new patients is either 1, 2, or 3. Let x be a random variable indicating the number of sessions required to gain the patients trust. The following probability function has been proposed.
f ( x) = x , for x = 1, 2, or 3. 6

(a) (b)

Is this probability function valid? Explain. What is the probability that it takes exactly 2 sessions to gain the patients trust? [1/3]

(c)

What is the probability that it takes at least 2 sessions to gain the patients trust? [5/6]

(d)

Compute the expected value of x, the variance of x, and the standard deviation of x. [2.333; 0.55556; 0.7454]

Example 7. The following table is a partial probability distribution for a companys projected profits (x = profit in $1000s) for the first year of operation (the negative value denotes a loss). x f(x) (a) (b) (c) (d) (e) 100 0.10 0 0.20 50 0.30 100 0.25 150 0.10 200

What is the proper value for f(200)? [0.05] What is the probability that the company will be profitable? [0.70] What is the probability that the company will make at least $100 000? [0.40] What is the expected profit? [55] What is the variance of the profit? [5 475]

Random Variables and Distributions Examples

Example 8. The random variable x is known to be uniformly distributed between 1.0 and 1.5. (a) (b) (c) (d) Show the graph of the probability density function. Compute P(x = 1.25). [0] Compute P(1.0 x 1.25). [0.50] Compute P(1.20 < x < 1.5). [0.60]

Example 9. The probability density of the continuous random variable x is given by


1 f ( x) = , 2 < x < 7 5

(a)

Draw its graph and verify that the total under the curve (above the x-axis) is equal to 1.

(b)

Find P(3 < x < 5). [2/5]

Example 10. A university provides bus service to students while they are on campus. A bus arrives at the University Library and the Student Residence stop every 30 minutes between 6 A.M. and 11 P.M. during weekdays. Students arrive at the bus stop at random times. The time that a student waits is uniformly distributed from 0 to 30 minutes. (a) (b) (c) (d) (e) (f) Draw a graph of this distribution. Show that the area of this uniform distribution is 1.00. What is the mean waiting time? [15] What is the standard deviation of the waiting times? [8.66] What is the probability a student will wait more than 25 minutes? [1/6] What is the probability a student will wait between 10 and 20 minutes? [1/3]

Example 11. Certain coded measurements of the pitch diameter of threads of a fitting have the probability density f ( x) =
4 , 0 < x < 1. (1 + x 2 )

Find the mean and the variance of this random variable. [0.4413; 0.0785]

Random Variables and Distributions Examples

Example 12. For each of the following, determine whether the given values can serve as the values of a probability distribution of a random variable with the range x = 1, 2, 3, and 4: (a) (b) f(1) = 0.25, f(2) = 0.75; f(3) = 0.25, and f(4) = -0.25; f(1) = 0.15, f(2) = 0.27; f(3) = 0.29, and f(4) = 0.29.

Example 13. For each of the following, determine c so that the function can serve as the probability distribution of a random variable with the given range: (a) (b) f(x) = cx, for x = 1, 2, 3, 4, 5; [1/15] f(x) = c(1/4)x, for x = 1, 2, 3, [3]

Example 14. For each of the following, determine whether the given values can serve as the values of a distribution function of a random variable with the range x = 1, 2, 3, and 4: (a) (b) F(1) = 0.3, F(2) = 0.5, F(3) = 0.8, and F(4) = 1.2; F(1) = 0.5, F(2) = 0.4, F(3) = 0.7, and F(4) = 1.0.

Example 15. Find the distribution function of the random variable which has the probability distribution
f ( x) = x , for x = 1, 2, 3, 4, 5 15

Example 16. If X has the distribution function x <1 0, 1 / 3, 1 x < 4 F ( x ) = 1 / 2, 4 x < 6 5 / 6, 6 x < 10 1, x 10 Find (a) (b) (c) P(2 < X 6); [1/2] P(X = 4); [1/6] the probability distribution of X.

Random Variables and Distributions Examples

Example 17. The probability density function (p.d.f) of the random variable X is given by c , 0< x<4 f ( x) = x 0, elsewhere Find (a) (b) (c) the value of c; [1/4] P(X < 1/4) and P(X > 1); [1/4; 1/2] the distribution function of the random variable X and use it to determine the probabilities in part (b).

Example 18. The density function of the random variable X is given by 6 x (1 x ), 0 < x < 1 f ( x) = 0, elsewhere Find (a) (b) P(X < 1/4) and P(X > 1/2); [5/32; 1/2] the distribution function of the random variable X and use it to determine the probabilities in part (a).

Example 19. The distribution function of the random variable X is given by

x < 1 0, 1 F ( x ) = 2 ( x + 1), 1 x < 1 1, x 1


Find (a) (b) P(1/2 < X < 1/2) and P(2 < X < 3); [1/2; 0] the probability density of the random variable X and use it to determine the probabilities in part (a).

Example 20. The distribution function of the random variable X is given by

x < 2 0, 1 F ( x ) = 4 ( x + 2), 2 x < 2 1, x2


Find P(X = 2), P(X = 2), P(2 < X < 1), and P(0 X 2). [0; 0; 3/4; 1/2]

You might also like