Probablistics Formulas
Probablistics Formulas
coin ∈ {H, T}
|Ω|= 6x6x2= 72
C) die1 = die2 ⇒ 6 combinations: (1,1), (2,2), ..., (6,6), Coin: H or T ⇒ 2 options. ∣C∣=6×2=12, P(C)=12/72= 1/6
A∪B: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣ A requires coin = H, B requires coin = T ⇒ can't happen together, so disjoint. ∣A∩B∣=0⇒∣A∪B∣=9+18=27, P(AuB)=27/72= 3/8
A∪B
Calculate probabilities:
-
- A under the condition of B and B under the condition of A
- C'
Which events are disjoint and which are independent?
2. Ω={(20,22),(20,22),(20,25),(20,24),(20,28),…,(27,28)} ∣Ω∣=6×5=30
A) W= 22, 25, 25, 27. M= 22, 22. So, |A| = 4×2 = 8. P(A) = 8/30 = 4/15
B) Valid pairs: (20,22), (20,22), (20,28), (27,22), (27,22), (27,28) → 6 pairs → P(B) = 6/30 = 1/5.
C) (22,22) (22,22) (25,25) (25,25)→ Total = 4 P(C) = 4/30 = 2/15
A∪B: Common outcomes: (27,22), (27,22) → 2 outcomes P(A ∩ B) = 2/30 = 1/15 P(A∪B) = P(A) + P(B) – P(A∩B) = 4/15 + 1/5 – 1/15 = 2/5
P(A | B) = P(A ∩ B) / P(B) = (1/15) / (1/5) = 1/3 P(B | A) = P(A ∩ B) / P(A) = (1/15) / (4/15) = 1/4
C′ All outcomes not in C → 30 - 4 = 26. P(C′) = 26/30 = 13/15
3. Three pupils learn to drive a car. The probability that the first of them will have a
crash is 0.1, for the second is 0.2 and for the third 0.05. Today only one of the
three pupils will start the lesson. Calculate the following probabilities:
a. A pupil will have a crash
b. It turned out to be crash. What is the probability that it was the first pupil.
3.
a. P(crash)= (0,1+0,2+0,3)/3 = 7/60
b. P(A∣B)= P(A∩B) / P(B) P(A∩B)= P(pupil 1) x P(crash pupil 1) = 1/3 x 1/10 = 1/30 So, P(pupil 1 / crash)= (1/30) / (7/60) = 2/7
devices 2 and 3 are used randomly. The signal can be received in a bad, medium or good quality. Based on the collected
data it was calculated that the frequency of receiving the signal depending on its quality for all devices is as follows:
Device/ quality Good Medium Low
1 0,1 0,2 0,7
2 0,2 0,3 0,5
3 0,5 0,2 0,3
What probabilities are included in the table above?
Calculate the following probabilities:
a. The signal will be of good quality
b. The signal will be at least of medium quality
What is the probability that the signal was sent by the first device knowing that we received low quality signal?
4. P(1)=0,5, so P(2)?= 0,25 and P(3)?= 0,25 because D1+D2+D3=1 total probability:
a. P(G) = P(G | 1) x P(1) + P(G | 2) x P(2) + P(G | 3) x P(3) P(G)=(0.1×0.5)+(0.2×0.25)+(0.5×0.25) P(G)=0.05+0.05+0.125=0.225
b. P(G∪M)= P(G) + P(M) P(M) = P(M | 1) P(1) + P(M | 2) P(2) + P(M | 3) P(3) P(M)=(0.2×0.5)+(0.3×0.25)+(0.2×0.25) P(M)=0.1+0.075+0.05=0.225
So P(G∪M)= 0,225 + 0,225 = 0,45
P ( L∣ 1) x P(1)
- Bayes’ theorem: P(1∣L)= → P(L) = P(L | 1) x P(1) + P(L | 2) x P(2) + P(L | 3) x P(3) P(L)=(0.7×0.5)+(0.5×0.25)+(0.3×0.25)
P (L)
5. A shooting target with a radius of 10 cm is divided into three concentric rings
with radius of 2 cm, 6 cm and 10 cm, for hitting which the following points 3, 2 and
1 are scored respectively. We assume that the shooter always hits the target and
that he does so randomly. What is the probability of scoring two points in one
shot?
5. Area=π×r2 A total=π×(10)2=100π A inner=π×(2)2=4π A middle=π×(6)2−π×(2)2=36π−4π=32π A outer=π×(10)2−π×(6)2=100π−36π=64π
P(scoring 2 points)= A middle / A total = 32π / 100π = 0,32
6. From a square with side length 1 with vertices (0,0), (0,1), (1,0) and (1,1), a
point with coordinates (x,y) was drawn. Calculate probability that he drawn point
met the following conditions:
a. x<y
b. x<0.5 and y<0.25
c. y < x²
d. |x-y|<1/5
1 1 1
6. a. line y=x divides the square into two equal triangular regions. The valid region is the upper triangle, which has area: A= ×1×1= So, P(x<y)=
2 2 2
b. valid region is the rectangle defined by 0≤x<0.5 and 0≤y<0.25 Area=(0.5−0)×(0.25−0)=0.5×0.25=0.125 P(x<0.5, y<0.25)=0.125
1 3
x 1= 1 1 1
P( y < x )=∫ x 2 dx =
2
c. curve y=x2 forms a region below it inside. Probability is computed as the integral of x2 over [0,1]: ¿0 – 0= P(y<x2)=
0 3 3 3 3
d. inequality means the point (x,y) lies within a band around the line y = x, where the difference between x and y is less than 1/5.
1 1 2
The two bounding lines are: y= x +
, y= x − valid region is a band of width centered around y=x, where 0≤y≤1.
5
7. Calculate the following probabilities 5 on the joint probabilities below:
based 5
Number of users/ 0 1 2 3
number errors
1 0,1 0,1 0,05 0
2 0 0,1 0,1 0,15
3 0 0,2 0,1 0,1
a. The number of users is greater than 1
b. Number of users is at most 2 and number of errors does not exceed 2
c. The number of errors will be greater than 1 if there are 2 users
d. The number of errors will be greater than 1 if there are 2 or 3 users
e. There were at most 2 users if we know that at least 2 errors were observed.
9. Calculate the correlation coefficient for variables X and Y with joint probabilities
inside the table:
X/Y -1 0 1 3
1 0,1 0,15 0,2 0
2 0,15 0 0,1 0
3 0,2 0,05 0 0,05
And calculate the following probabilities:
- P(X<2.5 , Y>-1)
- P(X>1 | Y<3)
- P(X>Y)
9. E(X)=∑XP(X) E(X)=(1⋅0.45)+(2⋅0.25)+(3⋅0.3)=1.85 E(Y)=∑YP(Y) E(Y)=(−1⋅0.45)+(0⋅0.2)+(1⋅0.3)+(3⋅0.05)=−0.1
E(XY)=∑XYP(X,Y) E(XY)=(1⋅(−1)⋅0.1)+(1⋅0⋅0.15)+(1⋅1⋅0.2)+(2⋅(−1)⋅0.15)+(2⋅1⋅0.1)+(3⋅(−1)⋅0.2)+(3⋅0⋅0.05)+(3⋅3⋅0.05)=0.15
10.
X -2 -1 0 1 2 3
P 0,1 0,2 0,3 0,2 0,15 0,05
Cumulative P 0,1 0,3 0,6 0,8 0,95 1
Median: value x cumulative probability greater or equal then 0,5. x=0 -> 0,6, so median =0
Mode: value x with highest probability. -> 0,3 for x=0 so mode=0
Q1: x cumulative probability greater or equal to 0,25. X= -1 -> 0,3. So Q1= -1
Q3: x cumulative probability greater or equal to 0,75. X= 1 -> 0,8. So Q1= 1
Q2: same as median, so Q2=0.
Q(90%): x cumulative probability greater or equal to 0,9. X= 2 -> 0,95. So Q1= 2
Q(35%): x cumulative probability greater or equal to 0,35. X= 1 -> 0,6. So Q1= 0
Variance: E(X)=∑x P(X=x) E(X2)=∑x2 P(X=x) Var(X)=E(X2)−(E(X))2 Var(X)=1.85−(0.25)2