Prob and Stat
Prob and Stat
P (X ≥ 4) = P (X = 4) + P (X = 5) + P (X = 6)
Where X ∼ Binomial(6, 32 ). Using the binomial probability formula:
6 k
P (X = k) = p (1p)6k
k
Compute each:
1
4 1 2 2 5 1 1
P (X = 4) = 64 23 16
× 19 = 0.2469 P (X = 5) = 6
3
= 15 × 81 5 3 3
=
6
32
= 0.1975 P (X = 6) = 66 23 = 729
64
6 × 243 = 0.0878
Summing these probabilities:
P (at least one finds error) = 1P (none find error) = 10.28 = 0.72
Answer: 0.72
2
1.6 P6: Probability of Picking a Poisonous Plant
Question: Forest A occupies 50% of the total land in a certain park, and 20% of the
plants in the forest are poisonous. Forest B occupies 30% of the total land, and 40% of
the plants in it are poisonous. Forest C occupies the remaining 20% of the land, and 70%
of the plants there are poisonous. If we randomly enter the park and pick a plant, what
is the probability that it will be poisonous?
Solution: This is a weighted average problem where you need to find the overall
probability of picking a poisonous plant, considering the different forest areas and the
proportions of poisonous plants.
P (on time) = P (good weather)×P (on time|good weather)+P (bad weather)×P (on time|bad weather)
3
1.9 P9: Conditional Probability of Bag Selection
Question: Suppose there are three bags containing 2 white and 3 black, 3 white and 2
black, and 4 white and 1 black balls respectively. There is equal probability of each bag
being chosen. One ball is drawn from a bag chosen at random. What is the probability
that a ball is chosen from the first bag, given the chosen ball is white?
Solution: Using Bayes’ theorem, the probability that the ball was drawn from the
first bag given that it is white is:
P (white|B1 ) × P (B1 )
P (B1 |white) =
P (white)
From P7, we know P (white) = 35 . Now calculate P (B1 |white):
2 1 2
5
× 3 15 2
P (B1 |white) = 3 = 3 =
5 5
9
2
Answer: 9
4
6 6!
= = 20
3 3!(63)!
The probability that none of the selected computers has hard drive problems is:
4
3 4 1
P (no HD problems) = 6 = =
3
20 5
1
Answer: 5
3. Reliability of the Two Parallel Components: The reliability of the group with two
parallel components is:
4. Connecting the Two Parallel Groups in Series: Since the two parallel groups are
connected in series, the overall system reliability is the product of the reliabilities of these
two groups:
Rsystem = Rparallel 3 × Rparallel 2 = 0.973 × 0.91 = 0.88543
The system’s reliability is approximately 0.8854, which matches the given answer.
5
P (defective) = 0.5 × 0.05 + 0.2 × 0.03 + 0.3 × 0.06
P (defective) = 0.025 + 0.006 + 0.018 = 0.049
Thus, 4.9
Part 2: To find the probability that the part was supplied by S1 , given that it is
defective, we use Bayes’ theorem:
P (defective|S1 ) × P (S1 )
P (S1 |defective) =
P (defective)
0.05 × 0.5 0.025
P (S1 |defective) = = ≈ 0.51
0.049 0.049
Answer: 0.51
6
1.16 P16: Alcoholism Probability
Question: The percentage of adults who are men and alcoholics is 2.25%. What is the
probability of being an alcoholic given that the person is a man?
Solution: Let P (A) be the probability of being an alcoholic and P (M ) be the proba-
bility of being a man. The problem gives P (A ∩ M ) = 0.0225. To find P (A|M ), we need
to know the percentage of men in the population, but if not given, we can assume P (M )
to be 0.5 (as men roughly represent half the population).
Thus, the conditional probability is:
P (A ∩ M ) 0.0225
P (A|M ) = = = 0.045
P (M ) 0.5
Answer: 4.5
P (gold|B3) × P (B3)
P (B3|gold) =
P (gold)
The total probability of drawing gold is:
1 1 2 1 1 1
P (gold) = ×1+ × + × =
3 3 3 3 3 3
Now calculate P (B3|gold):
1 1
3
× 3 1
P (B3|gold) = 1 =
3
6
1
Answer: 6
7
1.19 P19: Probability of Drawing from Jar 1
Question: The number of balls in three jars is as follows: Jar 1: 3 Red, 2 White, 1 Black
Jar 2: 2 Red, 1 White, 2 Black Jar 3: 4 Red, 2 White, 3 Black
One jar is chosen at random, and two balls are drawn. The balls drawn are red and
white. What is the probability that they come from Jar 1?
Solution: Using Bayes’ theorem:
2 Practice Set 2
2.1 P1: Probability Distribution of Number of Heads
Question: Consider the experiment of tossing 3 fair coins. Let X be the number of
heads. Then what is the probability distribution of X?
Solution: When tossing 3 fair coins, the possible values for the number of heads (X)
are 0, 1, 2, and 3. The total number of outcomes when tossing 3 coins is 23 = 8.
1 3 3 1
P (X = 0) = , P (X = 1) = , P (X = 2) = , P (X = 3) =
8 8 8 8
The probability distribution of X is:
X P (X)
1
0 8
3
1 8
3
2 8
1
3 8
Answer: The probability distribution of X is as shown above.
8
4 16
1
× 1 4 × 16 64 32
P (X = 1) = 20
= = =
2
190 190 95
- The probability of selecting 2 bad oranges is:
4
2 6 3
P (X = 2) = 20
= =
2
190 95
The probability distribution of X is:
X P (X)
12
0 19
32
1 95
3
2 95
Answer: The probability distribution is as shown above.
This is a geometric series with the first term a = c 14 and the common ratio r = 14 .
c 14 c 14
a c
= 1 = 3 =
1−r 1− 4 4
3
Setting this equal to 1:
c
=1 ⇒ c=3
3
Answer: c = 3
9
Determine a and compute P (X ≤ 1.5).
Solution: To find a, we use the property that the total probability must equal 1:
Z ∞
f (x) dx = 1
−∞
For 0 ≤ x ≤ 1: Z 1
1 1
x dx =
0 3 6
For 1 < x ≤ 1.5: Z 1.5
1 1
dx =
1 3 6
Thus, the total probability is:
1 1 1
P (X ≤ 1.5) = + =
6 6 3
Answer: a = 31 , P (X ≤ 1.5) = 1
3
10
2.5 P5: Joint Probability Distribution of X and Y
Question: Two balls are selected at random from a box containing 3 red, 2 green, and
4 white balls. If X and Y are the number of red balls and green balls, respectively,
included among the two balls drawn from the box, find the joint probability of X and Y ,
the marginal probability of X and Y , and the conditional distribution of X given Y = 1.
Let’s approach this question step by step with all the necessary formulas, detailed
calculations, and explanations, as you would solve it in an exam setting.
Problem Recap: We are drawing 2 balls from a box containing 3 red, 2 green, and 4
white balls. Let: - X be the number of red balls selected. - Y be the number of green
balls selected.
We are asked to find: 1. The joint probability distribution of X and Y . 2. The
marginal probability distribution of X and Y . 3. The conditional distribution of X given
Y = 1.
Step 1: Total Number of Ways to Choose 2 Balls
The total number of ways to select 2 balls from the 9 available (3 red, 2 green, 4
white) is computed using the combination formula:
n n!
=
r r!(n − r)!
For our case:
9 9×8
= = 36
2 2×1
So, there are 36 possible ways to choose 2 balls from the box.
Step 2: Joint Probability Distribution of X and Y
The joint probability distribution gives the probability of selecting a specific number
of red and green balls. The possible values for X (number of red balls) are 0, 1, 2 and for
Y (number of green balls) are 0, 1, 2.
We calculate the probability for each combination of X and Y using:
11
So, the joint probability is:
2×4 8 2
P (X = 0, Y = 1) = = =
36 36 9
Case 3: X = 0, Y = 2 (No red and 2 green balls)
Here, we select 2 green balls from the 2 green balls:
2
=1
2
P (X = 1, Y = 2) = 0 and P (X = 2, Y = 1) = 0
12
X\Y 0 1 2
1 2 1
0 6 9 36
1 1
1 3 6
0
1
2 12
0 0
Step 3: Marginal Probability Distribution
The marginal probability distribution for X is found by summing over the values of
Y , and for Y by summing over the values of X.
Marginal Probability for X:
1 2 1 6 8 1 15 5
P (X = 0) = + + = + + = =
6 9 36 36 36 36 36 12
1 1 12 6 18 1
P (X = 1) = + + 0 = + = =
3 6 36 36 36 2
1 3
P (X = 2) = =
12 36
Marginal Probability for Y :
1 1 1 6 12 3 21 7
P (Y = 0) = + + = + + = =
6 3 12 36 36 36 36 12
2 1 8 6 14 7
P (Y = 1) = + = + = =
9 6 36 36 36 18
1
P (Y = 2) =
36
Step 4: Conditional Distribution of X Given Y = 1
The conditional probability distribution of X given Y = 1 is:
P (X = x, Y = 1)
P (X = x|Y = 1) =
P (Y = 1)
7
From the marginal distribution of Y , we know P (Y = 1) = 18 .
Conditional Probabilities:
For X = 0:
2
P (X = 0, Y = 1) 4
P (X = 0|Y = 1) = = 97 =
P (Y = 1) 18
7
For X = 1:
1
P (X = 1, Y = 1) 6 3
P (X = 1|Y = 1) = = 7 =
P (Y = 1) 18
7
For X = 2:
P (X = 2|Y = 1) = 0
13
2.6 P6: Expectation and Variance for Coin Toss
Question: In the tossing of two coins, what are the expectations E(X) and E(X 2 ) where
X = number of heads − number of tails?
Solution: Let the possible values of X be −2, 0, 2 based on the outcomes of the coin
toss. The probability distribution of X is:
P (X = −2) = 14
P (X = 0) = 12
P (X = 2) = 14
The expectation E(X) is given by:
X 1 1 1
E(X) = x · P (x) = (−2) · +0· +2· =0
x
4 2 4
where
X
E(X 2 ) = x2 · P (x) = 12 · 0.2 + 22 · 0.35 + 32 · 0.25 + 42 · 0.15 + 52 · 0.05 = 7.25
x
14
2.8 P8: Expectation of Total Score in 13 Cards
Question: 13 cards are drawn simultaneously from a pack of 52 cards. If Ace counts as 1,
face cards count as 10, and others according to their denomination, find the expectation
of the total score in 13 cards.
Solution: The expectation for a single card drawn is the average of all the possible
scores:
4(1) + 4(10) + 4(10) + 4(10) + 10
P
i=2 4(i)
E(card) =
52
4(1) + 12(10) + 4(2 + 3 + · · · + 10) 4 + 120 + 176 300
E(card) = = = ≈ 5.77
52 52 52
The expectation for 13 cards is:
15
The expected value of X 2 is:
1
1 1
x4
Z Z
2 2 3 1
E(X ) = x · 2x dx = 2 x dx = 2 × =
0 0 4 2
0
P (0, 0) = P (0, 1) = P (1, 0) = 0.2, P (1, 1) = P (1, 2) = P (1, 3) = 0.1, P (0, 2) = P (0, 3) = 0.05
P (X = 0) = 0.5
Find k, the marginal densities of X and Y , and check if X and Y are independent.
Solution: - Find k by integrating over the range 0 < x < 1 and 0 < y < 1:
Z 1Z 1
kxy dx dy = 1
0 0
16
1
k× =1 ⇒ k=4
4
- The marginal density of X is:
Z 1
fX (x) = 4xy dy = 2x
0
1 f (x, 21 )
f (x|y = ) =
2 fY ( 12 )
Thus:
1 6x × 12
f (x|y = ) = = 2x
2 3 × 12
Now, compute the probability:
Z 1/2
1 1 1/2 1
P (0 ≤ X ≤ |Y = ) = 2x dx = x2 0 =
2 2 0 4
1
Answer: 4
5 8 4 15 8 4 27
E(winnings) = + + = + + = =3
3 9 9 9 9 9 9
Answer: The expected value of the game is 3 rupees.
18
Solution: The correlation coefficient ρXY between two random variables X and Y is
defined as:
Cov(X, Y )
ρXY =
σX σY
where Cov(X, Y ) is the covariance of X and Y , and σX and σY are the standard deviations
of X and Y respectively.
First, calculate the covariance:
The expected values E(X), E(Y ), and E(XY ) can be computed using the joint proba-
bility distribution of X and Y .
Once you have the covariance, calculate the standard deviations σX and σY :
p p
σX = Var(X), σY = Var(Y )
where Xi and Yi are the daily returns of the two stocks, X̄ and Ȳ are the sample means,
and n is the number of observations.
Pn1. First, calculate the sample means X̄ and Ȳ . 2. Then, compute the summation
i=1 (Xi − X̄)(Yi − Ȳ ). 3. Divide the result by n − 1 to get the sample covariance.
Answer: The covariance is 0.665 (as given in the answer).
19
mean. It is calculated as E(X 2 ) − (E(X))2 . - Covariance: Covariance Cov(X, Y ) mea-
sures the linear relationship between two random variables X and Y . If Cov(X, Y ) > 0,
the variables tend to move in the same direction; if Cov(X, Y ) < 0, they tend to move
in opposite directions. - Correlation: The correlation coefficient ρXY is a standardized
measure of covariance that shows the strength of the linear relationship between two
random variables. It is defined as:
Cov(X, Y )
ρXY =
σX σY
where σX and σY are the standard deviations of X and Y .
Answer: The definitions of the requested terms are provided above.
20