Probability & Random Variables (Notes)
Probability & Random Variables (Notes)
Probability & Random Variables (Notes)
C= 4! / (4-3)! 3! = 4
C= 6! / (6-0)! 0! = 1
P (B) = 4 / 120= 1 / 30
3) C=
C= 4! / (4-2)! 2! = 6
C= 6! / (6-1)! 1! = 6
P (C) = 36 / 120
4) D=
C= 4! / (4-0)! 0! = 1
C= 6! / (6-3)! 3! = 20
P (D) = 20 / 120= 1 / 6
A COIN IS TOSSED TWICE IF A & B ARE 1
ST
POINT & TAIL ON 2
ND
POINT RESPECTIVELY. FIND THE PROBABILITY:
S= [HH, HT, TH, TT]
N (S) = 4
A= [HH, HT]
n (A) = 2
B= [TH, TT]
n (B) = 2
P (A) = 2 / 4 = 1 / 2
P (B) = 2 / 4= 1 / 2
AB= [HT]
N (AB) = 1
P (AB) = 1 / 4
P (AB) = P (A) + P (B) - P (AB)
= 1 /2 + 1/ 2 1 / 4 = 3 / 4
TWO DICE ARE ROLLED IF A & B ARE RESPICTIVELY EVENTS
THAT THE SUM OF POINT IS A & BOTH DICE SHOULD GIVEN ODD
NO FIND PROBABILITY:
S= 36
A= [(2, 6) (3, 5) (4, 4) (5, 3) (6, 2)]
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 16 of 26 Available At: www.pak-korner.com
N (A) = 5
P (A) = 5 / 36
B= [(1,1)(1,3)(1,5)(3,1)(3,3)(3,5)(5,1)(5,3)(5,5)]
n (B) = 9
P (B) = 9 / 36= 1 / 4
N (AB) = [(3, 5) (5, 3)]
n (AB) = 2
P (AB) = 2 / 36= 1 / 18
P (AB) = P (A) + P (B) - P (AB)
= 5 / 36 + 9/ 36 2 / 36
= 1 / 3
A PAIR OF DICE IS ROLLED FIND THE PROBABILITY THAT THE
SUM OF THE UPPER MOST DOTS ID EITHER 6 OR 9.
n (S) = 36
Let A be the event the sum of upper most dot is 6.
A= [(1, 5) (2, 4) (3, 3) (4, 2) (5, 1)]
N (A) = 5
P (A) = 5 / 36
Let B the event that the sum of upper most is 9.
B= [(3, 6) (4, 5) (5, 4) (6, 3)]
N (B) = 4
P (B) = 4 / 36
Since A&B are mutually exclusive events.
P (AB) = p (A) + p (B)
= 5/ 36 + 4 / 36
= 1 / 4
TO TOSSING TWO COINS FIND PROBABILITY:
(I) PROBABILITY OF TWO HEADS GIVEN THAT A HEAD ON THE 1
ST
.
(II) THE PROBABILITY OF TWO HEADS GIVEN THAT AT LEAST ONE HEADS.
S= [HH, HT, TH, TT]
N (S) = 4
Let A be the event that the head appear on the 1
st
coin.
A= [HH, HT]
n (A) = 2
P (A) = 2 / 4=
Let B the event that two head appears.
B= [HH]
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 17 of 26 Available At: www.pak-korner.com
N (B) = 1
P (B) = 1 / 4
AB = [HH]
n (AB) = 1
P (AB) = 1 / 4
A & B ARE TWO INDEPENDENT EVENTS IF PROBABILITY OF:
P () = 0.40, p (B) = 0.30
FIND THE PROBABILITY:
(I) P (AB)
(II) P (AB)
SINCE A&B ARE INDEPENDENT EVENTS THEREFORE
(I) P (AB) = P (A). P (B)
= (0.40). (0.30)= 0.12
(II) P (AB)= P (A) + P (B) P(AB)
= 0.40 + 0.30 0.12
= 0.58
DEFINE PERMUTATION , COMBINATION & DISCRIMINATE
BETWEEN TWO:
LET
A= [1, 3, 5, 7]
B= [2, 4, 6, 8]
C= [1, 2, 3, 4, 5]
S= [1, 2, 3, 4, 5, 6, 7, 8,]
1) AB= [1,3,5,7][2,4,6,8]
= []
2) CA= [1,2,3,4,5][1,3,5,7]
= [1, 3, and 5]
3) AC= [1,3,5,7][1,2,3,4,5]
= [1, 3, and 5]
4) BC= [2,4,6,8][1,2,3,4,5]
= [2, 4]
PERMOTATION:
Is an arrangement of all or part of a set of object in a definite order? The no of
permutation n distinct object taken r at a time.
P = n! / (n-r)!
P= 6! / (6-4)! = 360
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 18 of 26 Available At: www.pak-korner.com
COMBINATION:
Is an arrangement of object without regard to their order? The no of combination
objects taken all at a time is
C = n! / (n-r)! r!
C = 6! / (6-4)! 4! = 15
EVELUATE THE FOLLOWING:
(I) 7! = 7.6.5.4.3.2.1 = 5040
(II) 16! / 8! = 51891840
(III) 8! =8.7.6.5.4.3.2.1 = 40320
(IV) 4! = 4.3.2.1 = 24
(V) P = 8! / (8-6)! = 20160
(VI) P = 5! / (5-5)! = 120
(VII) C = 5! / (5-3)! 3! = 10
(VIII) C = 6! / (6-2)! 2! = 180
LET
A= [1, 4]
B= [2, 3]
C= [3]
B is the sub set of universal set
S= [1, 2, 3, 4]
A*B= [1,4]*[2,4]= (1,2)(1,3)(4,2)(4,3)
B*A= [2,3]*[1,4]= (2,1)(2,4)(3,1)(3,4)
A*A= [1,4]*[1,4]= (1,1)(1,4)(4,1)(4,4)
B*B= [2,3]*[2,3]= (2,2)(2,3)(3,2)(3,3)
FIND THE PROBABILITY OF EACH OF THE FOLLOWING:
A) A head appears in tossing a fair coin.
B) A 5 appears in rolling a 6 faced cubical dice
C) An event no appears when a perfect cubical dice is rolled.
Sol:
(I) When a coin is tossed the sample is S= [HT] it means
n (S) = 2
Let
A be the event that given head
A= [H]
n (A) = 1 / 2
(II) When a 6 pack dice is rolled the sample space.
S= [1, 2, 3, 4, 5, 6]
n (S)= 6
let
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 19 of 26 Available At: www.pak-korner.com
B be the event that 5 appears on the dice
B= [5]
n (B)= 1
p (B) = 1 / 6
(III) When a perfect cubical dice is rolled the sample space is
S= [1, 2, 3, 4, 5, 6]
n (S)= 6
let
C be the event that even no appears
C= [2, 4, 6]
n (C) = 3
P (C) = 3 / 6 = 1 / 2
WHAT IS THE PROBABILITY OF A CARD OD DIAMOND FROM A
PACK OF PLAYING CARD CONSISTING OF THE USUALLY 52
CARDS?
Sol:
The sample space consisting of 52 possible outcomes it means
n (S) = 52
Let
A be the event that the card is diamond
n (A) = 13 / 52 = 1 / 4
SHOW THAT IN A SINGLE THROUGH WITH TWO DICE THE CHANCE
OF THROWING TWO DICES THE CHANCE OF THROWING MORE
THAN 7 IS EQUAL TO THAT OF THROWING LESS THEN 7.
n (S) = 36
Let A be the event that sum is less than 7.
A= [(1,1)(1,2)(1,3)(1,4)(1,5)(2,1)(2,2)(2,3)(2,4)(3,1)(3,2)(4,1)(4,2)(5,1)]
n (A) = 15
P (A) = 15 / 36
Let
B the event that the sum is more then 7,
B= [(2,6)(3,5)(3,6)(4,4)(4,5)(4,6)(5,3)(5,4)(5,5)(5,6)(6,2)(6,3)(6,4)(6,5)(6,6)]
n (B) = 15
P (B) = 15 / 36
Hence
P (A) = p (B) = 15 / 36
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 20 of 26 Available At: www.pak-korner.com
WHAT IS THE PROBABILITY OF THROWING EITHER 7 OR MORE
THEN 10 WITH TWO DICE?
Sol:
When two fair dice are rolled the sample space is
S= 36
n (S) = 36
Let
A be the event sum of dots is 7.
A= [(1,6)(2,5)(3,4)(4,3)(5,2)(6,1)]
n (A) = 6
P (A) = 6 / 36 = 1 / 6
Let
B is the event that sum of dots more then 10.
B= [(5, 6) (6, 5) (6, 6)]
n (B) = 3
P (B) = 3 / 36 = 1
P (AB) = p (A) + p (B)
= 6 / 36 + 3 / 36
= 1 / 4
PROBABILITY DISTRIBUTATION:
DEFINE RANDOM VARIABLE:
A variable whose values are determined by the outcomes of a random experiment is called a
random variable.
Thus the no [H] or [T] in tossing of two coins & sum of dots obtained with a pair of dice are then
example of random variable.
A random variable is also called a chance variable. The random variables are usually denoted by
capital letter such as X, Y, Z & their values by small letters x, y, z respectively.
There are two types of random variable.
(1) Discrete variable
(2) Continues variable
WHAT IS DISCRETE RANDOM VARIABLE EXPLAIN ITS
PROBABILITY DISTRIBUTATION:
(A) DISCRETE RANDOM VARIABLE:
A random variable X is defined to be discrete random variable if it assumed finite or countable
infinite no of values.
e.g.
The no of defective blabs in a lot. The no of road accident on motorway per day etc.
(B)DISCRETE PROBABILITY DISTRIBUTATION:
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 21 of 26 Available At: www.pak-korner.com
Let X is a discrete random variable assumed the values.
X, X, X, X, X, .Xn
P (X), p (X), p (X).. P (An)
Then the ordure pair
[X, p (X)], [X, p (X] ________ [Xn, p (Xn)]
Where
i= 1, 2, 3, 4, 5, .n is called discrete probability distributation of X.
(C) CONDITIONED OF PROBABILITY DISTRIBUTATION:
(i) There must be a finite [0-1] against every possible value of the random variable 0 p
(X) 1
(ii) The sum of all possibility must be equal to 1.
P (x) = 1
Discrete probability distributation X may be expressing any of the following 3 form:
(1) Tabular form
(2) Equation form
(3) Graphical form
TABULAR FORM:
For expressing discrete probability in tabular form we take all possible value of random variable in
a Colum of correspondence probabilities in another Colum.
Probability distributation of X
X p(x)
X p x)
X p (x)
X p(x)
Xn p (Xn)
P (x) = 1
EQUATION FORM:
For expressing probability distributation in equation form we find an equation in involving the
random variable which gives the probability for every possible value of the random variable. The
particular equation which generates probabilities of the random variable at its possible value is
known as probability function & abbreviated.
GRAPHIC FORM:
The discrete probability distributation is usually displayed by a bar diagram. Probability histogram;
BAR DIAGRAM:
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 22 of 26 Available At: www.pak-korner.com
In bar diagram we take values of the random variable X, X, X, X, .Xn along x-axis & probability
along y-axis
PROBABILITY HISTOOGRAM:
To display probability histogram we take values of random variable along x-axis & probability along
y-axis. Adjacent rectangle are drawn against each rectangle are drawn against each values such
that the height of each rectangle is equal to the probability at that point & width of each rectangle is
1.
DEFINE CONTINUS RANDOM VARIABLE, WHAT IS PROBABILITY
DENSITY FUNCTION, WRITE DOWN ITS PROPERTIES?
CONTINOUS RANDOM VARIABLE:
A random variable is defined to be a continues random to be a continues random variable. If it can
assume unlimited values within a given range of possible values.
e.g.
Weight of student of 1
st
year, temperature of a room, rain fall amount recorded a hill station.
PROBABILITY DENSITY FUNCTION:
Let x be a continues random variable which can take the value on the interval
[a,b]
Then the probability density function (p.d.f) of X has following two properties.
(1) The value of the function must be greater than or equal to zero. For every value of x.
f (x) 0
For all value of X.
(2) The area under the curve & above x-axis is equal to one. The probability density function of a
random variable cannot be expressed in tabular form, but it can be expressed in graph of in
equation form. The mathematical equation is known as P.D.F.
0%
50%
100%
x1
x2
x3
Xn
2
3
4
7
Series 1
Series 1
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 23 of 26 Available At: www.pak-korner.com
WHAT IS MATHEMATICAL EXPECTION OF DISCRETE RANDOM
VARIABLE , WRITE DOWN ITS PROPERTIES:
MATHEMATICAL EXPECTATION:
If a discrete random variable X assumed the values X, X, X, .Xn with respect probabilities
P (X) p(X) p (X) p (Xn)
Such that the sum of probabilities is equal to one.
P (Xi) = 1, then the mathematical expectation of exceptive value
E (X) = X. P (X) + X. p () + + Xn. P (Xn)
= Xi. P (Xi)
= E (X) = X. p (X)
E (X) is also called mean of x. which is denoted by ()
Mean = = E (X) = X. p (X)
If random variables is denoted by y then exceptive of y.
E (y) = E (y) = y. p (y)
PROPERTIES OF EXPECTIVE OR LAW OF EXPECTATIVE:
1) IF a is the constant then expected value of constant is constant itself.
E (a) = a
2) If y is a random variable & a,b are constant
E (ax) = a.E(X)+b
3) The expected value of the product of two independent random variable is equal to the product
of their individual expected values. If x,y are independent random variables then
E (xy) = E (X). E(y)
4) The expected value of the sum or difference of two random variables is equal to the sum or
difference to the expected of the individual random variables
E (x + y) = E (x) + E (y)
E (x-y) = E (x) - E (y)
5) The expected value of the deviation of random variable from its own expected value is equal to
zero.
E [X E (x)] = 0
E [x ] = o
DEFINE VARIANS OF DISCRETE RANDOM VARIABLR , ALSO
EXPLAIN ITS PROPERTIES:
VARIANS:
The variants of a probability distributation is defined as the expected value of the squares of the
daviations of a random variable from its mean. If x is random variable with mean expected of
E (x) =
The variants of x is denoted by var(x) = = E [x E (x)]
(a-b) = a - 2ab +b = E [x + E (x) - 2xE (x)]
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 24 of 26 Available At: www.pak-korner.com
= E (x) + [E(x)] - 2E(x). E (x)
= E (x) + [E(x) ] - 2[E(x)]
= E (x) -
Var(x) = = x. P (x) -
S.D = =
.
S.D = standard deviation(x)
PROPERTIES OF VARIANS:
i) The variants of a constant are zero. If a is constant then var (a)= 0
ii) The variants is independent of origin
Var (x+a) = var (x)
Var (x-a) = var (x)
iii) When all the values are multiplied with a constant , the variants of the values is multiple
with square of the constant
Var (ax) = a. (Var (x))
Var (1/a. x) = 1/a var (x)
iv) The variants of the sum or difference of two independent variables is the sum of their
respective variances.
Var (x+y) = var (x) + var (y)
Var (x-y) = var (x) - var (y)
WHAT IS DISTRIBUTATION FUNCTION? WRITE DOWN ITS
PROPERITIES:
DISTRIBUTATION FUNCTION:
A function showing probability that a random variable X has a value less than or equal to x is called
distributation function or cumulative distributatuion function. The distributation function is denoted
by
F (x) = p (Xx)
PROPERTIES OF DISTRIBUTION FUNCTION:
The distribution has two following properties:
(1) F (-)= 0
E () = 1
Which means that F(x) is an increasing functioning having range from 0 t0 1.
(2) If x<x then F(x)< F (x)
TWO ELECTRIC LIGHT BULB ARE TESTED LET Y DENOTED THE
NO OF NON DEFECTIVE BULBS. THE POSSIBLE OUTCOMES WHEN
TWO BULBS ARE TESTED ARE GIVEN BELOW.
D= DEFECTIVE BULB
N = NON DEFECTIVE BULB
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 25 of 26 Available At: www.pak-korner.com
OUTCOMES Y THE PROBABILITY FUNCTION
OF Y
D 0 0/4
N D 1
D N 1
N 2 2/4
4/4= 1
MEAN &VARIANS OR AVERAGE VARIANS:
y P(y) Y(p(y)) y.p(y)
0 0.3 0 0
1 0.3 0.3 0.3
2 0.2 0.4 0.8
3 0.1 0.3 0.9
4 0.1 0.4 1.6
Answer = 3. Average /
mean y= y.p(y)
= 1.4
Variants
= y. P (y) - [ y. p(y )]
= 3.6 (1.4)
= 1.64
FROM THE FOLLOWING PROBABILITY DISTRIBUTATION FIND THE
AVERAGE (MEAN)
y P(y) y [p(y)] y.p(y)
0 0.3 0 0
1 0.3 0.3 0.3
2 0.2 0,4 0.8
3 0.1 0.3 0.9
4 0.1 0.4 1.6
Y. p(y) = 1.4 y. P(y) = 3.6
Average / mean = y. p(y)
= 1.4
Varians = y. P(y) [y. p(y) ]
= 3.6 (1.4)
= 1.64
HAJVERIANZ PROBABILITY & RANDOM VARIABLES NOTES
Page 26 of 26 Available At: www.pak-korner.com
WHAT ARE RANDOM NUMBERS? HOW CAN THEY BE GENERAITED
EXPLAIN THE APPLICATIONS OF RANDOM NOS?
RANDOM NUMBER:
Random number is the numbers obtained by some random process. These numbers are assumed
to be randomly and uniformly distributed and are prepared by combining by the numbers
0,1,2,3,4,5,6,7,8,9. Each of these has equal chance of 1/10 of being selected. These numbers are
combined into two-digit, three digits numbers according to use. Two digit random numbers (00,
01, 02, and 99) are 100 in number and each of them has an equal probability of 1/100 of being
selected. Three digit random numbers (000, 001, 002, 044, 194, and .999) are 1000 in number and
each of them has an equal probability of 1/1000 of being selected.
GENERATION OF RANDOM NUMBERS:
Random numbers can be generated manually as well as mechanically. A table of random numbers
can be generated manually by drawing cards from numbered card. The numbers 0, 1, 2, 9 are
written on slips of paper and by shuffling they are drawn recorded and then are replaced before
nest draw.
Similarly, random numbers can be generated by rotating a numbered wheel.
The mechanical method has then very much simplified the generation of random numbers.
Calculators and computers are used in mechanical method.
APPLICATION OF RANDOM NUMBERS:
1. One off the most important use of random numbers is the selection of simple random
sample from finite population. Let consider there are 100 students in a class room and we
want to select 10 students and random. The students can be numbered from 00 to 99.
Then we consult the random number table and note the ten two- digit random numbers.
We can read the random numbers table from any place we read the first two columns of
random number table, the random numbers are 10, 37, 08,99,12,66,31,35,63 and 73.
These ten random numbers represents those ten students who have been selected in our
sample.
2. Random numbers are used in simulation techniques which are useful in the situations
where actual experiment cannot be performed or cost of conducting. What are random
numbers? How can they be generated explain the application of random nos. Experiment
is high for example we can obtain the outcomes of tossing a coin a large no. of time by the
use of random nos.
MALIK ALI RAZA