Assignment 2 STA108
Assignment 2 STA108
0 INTRODUCTION
-0≤P(X=x)≤1
- P (S) = 1
- Value of X :
{1, 2, 3}
Humaira has bought a new set of ball consist of 10 different colours in online
shopping portal. The purpose of she buying the ball is just for playing around with her
cat in her leisure time . The mugs are hard to find in Malaysia because it is made
from volcanic clay. There are 10 coloured balls that consists of a green ball, 3 yellow
balls and 6 black balls. Humaira kept the balls in the cupboard because she feels
lazy to play with her favourite cat due to tiredness after answering the examination on
the evening. In the next morning, Humaira took out three balls at randomly to be
used without the replacements. The probability distribution for X= the number of
Black balls selected.
1
1.3 Objectives
2.0 METHODOLOGY
2.1.1 Methods
0 ≤ P( X = x ) ≤ 1
ΣP( X = x ) = 1
2.1.2 Rules
0≤P( X = x )≤1
2
3.0 RESULTS
3
3.2 Probability Distribution
X=x 0 1 2 3 ∑ P(X=x)
5
3.3 Problem Solving
= P (YYY or BBB)
= P (YYY) + P (BBB)
= 1/120 + 1/6
= 7/40
= 3/20
= P (GYB + GBG + GBY + GBB + YGB + YYB + YBG + YBY + YBB + BGG + BGY +
BGB + BYG + BYY + BYB + BBG + BBY + BBB)
= 1/40 + 0 + 1/40 + 1/24 + 1/40 + 1/20 + 1/40 + 1/20 + 1/8 + 0 + 1/40 + 1/24 + 1/40 +
1/8 + 0 + 1/40 + 1/24 + 1/40 + 1/20 + 1/8 + 1/24 + 1/8 + 1/6
= 29/30
6
The probability distribution function for random variable X is:
0 x<0
1/30 0≤x<1
1/2 2≤x<3
1/6 x≥3
= 1/30 + 1/2
= 8/15
2. Find P (X≥1.5)
= P (X=2) + P (X=3)
= 1/2 + 1/6
= 2/3
7
3.3.2 Mean E(X) and Variance V(X)
0 x<0
1/30 0≤x<1
5/6 2≤x<3
1 x≥3
E (X) = ∑ x . P(X=x)
= 0 + (12/40) + 1 + (1/2)
= 9/5
E (X2) = ∑ x2 . P(X=x)
= 0 + (12/40) + 2 + (3/2)
= 19/5
2. Calculate Variance of X
= 19/5 – (9/5)2
= 14/25
8
3. Calculate E (3X + 2)
= 3 E(X) + E (2)
= (3 x 9/5) + 2
= 37/5
4. Calculate E (4X2 + X + 7)
= 4 (19/5) + 9/5 + 7
= 24
5. Var (3X + 8)
= 126/25
X=x 0 1 2 3 ∑ P(X=x)
9
4.0 CONCLUSION
From the solution above, we were using green, yellow and black ball as the variables
and probability distribution were constructed based on tree diagram and X=x values
obtained and black was used as the X to search for the probability distribution. Next, the
mean for the variable was calculated by using E(X) = ∑ x .P(X=x) formula based on the
probability distribution function for random variable X and the answer was 9/5 while for the
E(X2) we use E(X2)= ∑ x2 . P(X=x) formula and the answer was 19/5. For variance, we use
V(X)= E(X2) – (E(X)2) and by using calculator the answer was 14/25. In order to get the
correct function, the total probability must equal to 1. Based on the theorem, the function can
serve as probability distribution if ∑ f(X) = 1. The function can serve as the probability
distribution function of a random variable (X). When we continue our calculation it would
results as adding all the result:- P (X=x) = 1. From the result obtained, it is able to classify
the probabilities according to the specific distribution between discrete and continuous. On
that note, it can be learn on how to solve discrete distribution and cumulative distribution.
The expected value and variance properties of discrete distribution can be conclude
10
STA 108
STATISTICS AND PROBABILITY
Group: A4AS1204_03
Group Members:
CHAPTER 2: METHODOLOGY
2.1.1 Methods……………………………………………………… 2
2.1.2 Rules…………………………………………………………..2
CHAPTER 3 : RESULTS
CHAPTER 4 : CONCLUSION
4.1 Summary……………………………………………………………10