Docsity

Helpful Notes Statistics, Lecture notes of Statics

Toggle sidebar
bg1
Random Variable and
Probability Distributions
Random Numbers
Random numbers are the numbers obtained by some random process. These numbers are assumed to
be randomly and uniformly distributed. The basic random numbers are the ten one-digit numbers 0 to
9, has an equal chance of occurring.
Random Variable
The numerical quantity whose values are determined by the outcome of random experiment is called
random variable. (OR)
Any characteristic of interest defined on the outcomes of a random experiment and assumes any
numerical value against every possible outcome is called random variable.
Note
A random variable is also called a chance variable or stochastic variable.
Random variables are denoted by capital letters X, Y, Z and their values are denoted by small letters
x, y, z etc.
e.g. When three coins are tossed then the possible sample space is
S = {HHH, HHT, HTH, HTT, THH, TTH, TTT}
Let X denotes the number of heads then the values of X are 0, 1, 2, 3.
How to generate the Random numbers?
Random numbers are generated manually as well as mechanically.
Manually: Random numbers can be generated manually by drawing cards from numbered cards or
spinning numbered wheels.
Mechanically: Random numbers can be generated mechanically by use of programmable calculators
or digital computers.
Simple ways to generate the Random Variable
The simple way to generate random numbers is game of chances such as
Tossing a coin
Throwing a dice or
Repeatedly drawing numbered slips out of a box.
Types of Random Variable
There are following two types of random variable
Discrete Random Variable
Continuous Random Variable
Discrete Random Variable
A random variable X is called discrete if it can assume finite (or) countably infinite number of values.
e.g.
1) If two bulbs are selected from a certain lot, the number of defective bulbs may be 0, 1, or 2. The
range of the variable is from 0 to 2 and random variable can take some selected values in this
range.
2) The number of defective bulbs cannot be 1.1 (or) –1 (or) 3 etc.
3) This random variable can take only the specific values which are 0, 1 and 2.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Helpful Notes Statistics and more Lecture notes Statics in PDF only on Docsity!

Random Variable and

Probability Distributions

Random Numbers

Random numbers are the numbers obtained by some random process. These numbers are assumed to

be randomly and uniformly distributed. The basic random numbers are the ten one-digit numbers 0 to

9, has an equal chance of occurring.

Random Variable

The numerical quantity whose values are determined by the outcome of random experiment is called

random variable. (OR)

Any characteristic of interest defined on the outcomes of a random experiment and assumes any

numerical value against every possible outcome is called random variable.

Note

A random variable is also called a chance variable or stochastic variable.

Random variables are denoted by capital letters X, Y, Z and their values are denoted by small letters

x, y, z etc.

e.g. When three coins are tossed then the possible sample space is

S = {HHH, HHT, HTH, HTT, THH, TTH, TTT}

Let X denotes the number of heads then the values of X are 0, 1, 2, 3.

How to generate the Random numbers?

Random numbers are generated manually as well as mechanically.

Manually: Random numbers can be generated manually by drawing cards from numbered cards or

spinning numbered wheels.

Mechanically: Random numbers can be generated mechanically by use of programmable calculators

or digital computers.

Simple ways to generate the Random Variable

The simple way to generate random numbers is game of chances such as

 Tossing a coin

 Throwing a dice or

 Repeatedly drawing numbered slips out of a box.

Types of Random Variable

There are following two types of random variable

 Discrete Random Variable

 Continuous Random Variable

Discrete Random Variable

A random variable X is called discrete if it can assume finite (or) countably infinite number of values.

e.g.

1) If two bulbs are selected from a certain lot, the number of defective bulbs may be 0, 1, or 2. The

range of the variable is from 0 to 2 and random variable can take some selected values in this

range.

2) The number of defective bulbs cannot be 1.1 (or) – 1 (or) 3 etc.

3) This random variable can take only the specific values which are 0, 1 and 2.

4) When two dice are rolled the total on the two dice will be 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. The

total on the two dice is discrete random variable.

Discrete Probability Distribution

If a discrete random variable X assume possible values are x 1 , x 2 , x 3 ,…,xn with respective

probabilities P(x 1 ), P(x 2 ), P(x 3 ), …,P(xn), then an arrangement of all possible values of the random

variable X along with their probabilities is called a probability distribution (or) probability function of

X.

A probability distribution can be represented in a tabular form showing the above information.

x i x 1 x 2 … x i x i+1 … x n

P( x i) P( x 1 ) P( x 2 ) … P( x i) P( x i+1) … P( x n)

“The set of ordered pairs (x, P(x)) is called the probability function or probability distribution of the

discrete random variable X.”

NOTE

We also use the notation f(x) for the probability that the r.v. takes on the value x ; i.e.

f(x) = P(X = x).

The probability of some interval can be calculated by adding the probabilities of all the points in the

interval. e.g.

P  x 1 (^)  X  x 4 (^)  = P X  x 2 (^)  + P X  x 3 

P (^)  x 1 (^)  X  x 4 (^)  = P X  x 1 (^)  + P X  x 2 (^)  + P X  x 3 (^)  + P X  x 4 

P X  x 3 (^)  = P X  x 1 (^)  + P X  x 2 

P X  x 3 (^)  = P X  x 1 (^)  + P X  x 2 (^)  + P X  x 3 

Forms of Discrete Probability Distribution

There are two different forms of discrete probability distribution:

 Equation form

 Graphic form

Probability Function

The probability distribution can be described in the form of an equation for f(xi) with a list of possible

values of the random variable. e.g.

For each value of X the probability is

. That is

 

1

6

f x i^ for^ x i = 1, 2, 3, 4, 5, 6

It is the probability distribution when three fair coins are tossed.

 

3 3 1 = C 2

f x i (^) x

     

for x i = 0, 1, 2, 3

f (xi) = P ( X = xi ) for i = 1, 2, …, n

= 0 X ≠ xi

Q. 4 Given  

f x = k x

; x = 0, 1, 2, 3, 4. Find the value of k.

Q. 5 Given x = −3, −2, 2, 3 and P(x) = c, 4c, 3c, 2c. Find P(X > −3).

Q. 6 Given x = −3, −1, 0, 1, 2, 5 and P(x) = 0.1, c, 0.2, 2c, 0.3, 3c.

Find P(−1 ≤ X ≤ +1).

Q. 7 Given x = −1, 0, 1 and  

x f x

. Whether this is a probability function or not?

Q.8 Determine the constant “a” in the probability function:

P( x ) = a( x – 2) ; x = 3, 4, 5, 6 Ans:

a = 10

Q.9 From the following probability distribution, find value of k?

x 0 1 2 3 4

P(x)

1 10

K

3 10

2 10

2 10

Ans:

k = 5

Q.10 A random variable X has the following probability distribution:

X (^)  2  1 0 1 2 3

P(x) 0.1 c 0.2 2c 0.3 3c

Find (i) c (ii) P(X > 2) (iii) P(X  1)

Ans:

c = 15

Q.11 A discrete random variable X has the following probability distribution.

x – 1 0 1 4

P( x ) 0.2 0.5 a 0.

i. Find the value of “a”. 0.

ii. P(X = 0) 0.

iii. P(X > 0) 0.

iv. P(X ≥ 0) 0.

v. P(X ≤ – 2) 0

Q.12 If X has a probability function

 

3

3

C

P X = = ,

x^ x x = 0, 1, 2,3.

Find the probability distribution of X.

Q.13 X has a probability function

 

1 5 1 P X = = , 6 6

x

x

            

x = 1, 2, 3, 4, 5, 6.

Find the probability distribution of X.

Q.14 The r.v. X has the following probability distribution:

x 1 5 9

P( x ) a b c

Where a, b & c are constants. It is known that P(X < 4) = P(X > 4) and P(X ≤ 5) = 2P(X > 5).

Find the values of a, b & c.

1 a = 2

b = 6

c = 3

Q.15 Let f ( x ) = cx

2 for x = 1, 2, 3. Determine the constant c so that the function f ( x ) satisfies the

conditions of being a probability mass function.

Joint Probability Function

A joint distribution of two random variables has a probability function (^) f (^)  x , y  that is a function of

two variables ( sometimes denoted by by f (^) X Y ,  x , y).

f (^)  x , y (^)  0

0  f (^)  x , y  1

 ,^ ^1 x y

^ f^ x^ y^ 

The marginal probabilities are

  =^  ,  y

g x  f x y

  =^  ,  x

h y  f x y

Expected Value

E X  (^)   x

  x g x

and

E Y    x

  y h y

Distribution Function

 ,^  =^  , 

x^ y

u v

F x y f u v  

Practice Exercise 1.

Q.1 Determine the values of “c” so that the following functions represent joint probability

distributions of the random variables X and Y:

(a) (^) fx y , = cxy ; for x = 1, 2, 3 and y = 1, 2, 3

(b) f (^)  x y , (^) = c xy ; for x = −2, 0, 2 and y = −2, 3

Q.2 If the joint probability distribution of X and Y is given by:

b. Evaluate the marginal distribution of Y.

c. Find P(Y = 3| X = 2). d. Are X and Y independent?

Q.7 The joint distribution of X and Y is given by the following table:

X = x 1 2 3 4

Y = y

1 0.01 0.07 0.09 0. 2 0,20 0 0.05 0. 3 0.09 0.03 0.06 0. a. Evaluate the marginal distribution of X. b. Evaluate the marginal distribution of Y. c. Find P(Y = 2| X = 4). d. Are X and Y independent?

Continuous Random Variable

A random variable is called continuous if it can assume all possible values in the possible range of the

random variable.

In case of continuous random variable there is an infinite number of values with in a given

interval.

e.g.

 Height of a student which can be any value, say between 64inches and 65inches.

 Weight of a person which can be any value, say between 60kg and 61kg.

 Temperature at a place which may be any value, say between 30

o C and 31

o C.

 Speed of a car which may be any value, say between 50km and 51km etc.

 When we say that the temperature at a place is 30

o c, it means that the temperature may take a

value somewhere between 29.

o C and 30.

o C.

NOTE

 Any observation which is taken falls in an interval.

 There is nothing like an exact value in continuous random variable.

 In discrete random variable the values of the variable are exact like 0, 1, 2 good bulbs.

In continuous random variable the value of the variable is never an exact point. It is always in the

form of an interval, the interval may be very very small.

If there are two points a and b then the probability that the random variable will take value between a

and b is given by the integral.

P (a < X < b) =

b

a

f(x) dx

P (X < b) =

b

f(x) dx 

P (X > a) = a

f(x) dx

P (X = k) =

k

k

 f(x) dx= 0 i.e. the probability that X is equal to any particular value is zero.

Where “a” and “b” are any points between - ∞ and + ∞.

The quantity f(x)dx is called probability differential.

Probability Density Function

The probability function of a continuous random variable is called probability density function (or)

briefly p. d. f. It is denoted by f(x.)

f(x)

0 x x + x X

Where f(x) is the probability that the random variable X takes the value between x and

x + ∆x.

Where ∆x is a very very small change in X.

Properties of Probability Density Function

The probability density function f (x) must have the following properties.

 f(x) is non-negative i.e. f(x) > 0

 Total Area = ∫ f(x) dx = 1

 P(X = c) = ∫ f(x) dx = 0 Where c is any constant.

 As the probability is zero for X = c (constant), therefore P(X = a) = P(X = b) = 0.

If we take an interval a to b, it make no difference whether end points of the interval are considered or

not. Thus we can write

 P(a X b) = P(a < X < b) = P(a X < b) = P(a < X b)

 P(X b) = P(X < b)

 P(X a) = P(X > a)

Hieght × Base Area = 2

Mathematically, we can write

Q.3 A continuous random variable X which assumes the values between X = 2 and X =

4 has the density function given by

x + 1 (x) = 8

f ; 2  x  4

(i) Show that P(2 < X < 4) = 1 (ii) P(2.4 < X < 3.5) =? (iii) P(X < 3.5) =?

Q.4 A continuous random variable X which assumes the values between X = 2 and X = 5 has the density

function given by

2 1 + x  (x) = 27

f

Find (i) P(X < 4) (ii) P(3 < X < 4) (iii) P(X > 3.5)

Q.5 If

2 5 x (x) = 25

f

; 0 < x < 5 then

Show that it is a p.d.f. Also find P(X < 4), P(X > 6)

Q.6 A continuous random variable X which assumes the values between X = 1 and X = 4 has the density

function given by

1 (x) = 3

f ; 1  x  4

(i) Show that total area under the curve is equal to 1. (ii) Find P(1.5 < X < 3) (iii) Find P(X ≤ 2.2)

Q.7 A continuous random variable X having values only between 0 and 4 has density function given by

1 (x) = ax 2

f  ; where “a” is constant.

Calculate “a” Find P(1 < X < 2)

Q.8 A continuous random variable X has the density function given by

f (x) = cx ; 0  x  2

Determine (i) c (ii) P(1 < X < 1.5) (iii) P(X < 1.5) (iv) P(X > 3)

(v) P(X < 1) (vi)

P X

 ^  

Q.9 A continuous random variable X that can assume values only between X = 2 and X = 8

has a density function given by a(x + 3), where ‘a’ is a constant. Find

(i) the value of ‘a’. (ii) P(3 < X < 5) (iii) P(X ≥ 4)

Q.10 If f (x) = A (2x

3 +1) , 0 ≤ x ≤ 2 and = 0 elsewhere.

Find (i) “A” (ii) P(X > 1.5) (iii) P(X < 1.2) (iv) P(1 < X ≤ 2)

Joint Probability Density Function

A joint distribution of two random variables has a probability density function f (^)  x , y that is a function of

two variables (sometimes denoted by by f (^) X Y ,  x , y ).

f (^)  x , y (^)  0

0  f  x , y  1

f  x , y dy dx 1

 

 

The marginal probabilities are

g  x  = f  x , y dy



^ for  ^ x  

h y   = f  x , y dx



for   y  

Expected Value

E X  x g  x d x



and E Y  y h y  d y



Distribution Function

 ,^  =^  ,^ d^ d

x y

F x y f u v v u  

 For continuous r.v.    

2 f x , y = F x , y x y

 Two random variables X and Y are said to be independent if for every pair of x and y value

f  x , y   g x h y    

 If f  x , y   g x h y    for all (x, y) then X and Y are said to be dependent.

Practice Exercise 1.

Q.1 Suppose the joint p.d.f. of the r.v. X and Y is    

f x yxy ; 0  x  1 and 0  y  1 ,

otherwise zero. Verify that f  x , y dy dx 1

 

 

 ^ 

Q.2 If X and Y are two continuous random variables with joint probability density:

2 2 0 1 & 0 1 , (^3)

0 elsewhere

x y x y f x y

  ^ ^ ^ ^     

a) Find the marginal density of X. b) Find the marginal density of Y. c) Find E(X), E(Y) d) Are X and Y independent?

Q.3 If    

2 2 f x , y  k xy ; 3  x  5 and 2  y  7

i. Find the value of “k”.

ii. Find P 3  X  4 and 4  Y  5 .

iii. Are X and Y independent?

Q.4 Let X and Y be two jointly continuous random variables with joint p.d.f. :

 E(X + a) = E(X) + a

 E(aX + b) = aE(X) + b

 E(X + Y) = E(X) + E(Y)

 E(X Y) = E(X) E(Y)

 E(XY) = E(X) E(Y)

 E[X E(X)] = E(X) E(X) = 0

 E(X

2 ) ≥ [E(X)]

2

Variance & Standard Deviation of Random Variable

The variance of a random variable X denoted by V(X) or σ

2 is defined as V(X) = E(X

2 ) [E(X)]

2

or σ

2 = E(X

2 ) [E(X)]

2

The positive square root of the variance is called standard deviation and is given by 2 2 S.D.(X) = E(X ) [E(X)]

Practice Exercise 1.

Q.1 Calculate the Mean & variance of probability distribution.

x 0 1 2 3 4 5

P(x) 1 10

2 10

3 10

2 10

1 10

1 10

Mean = 2.3 & Var = 2.

Q.1 If

6 7 x f(x) = 36

for x = 2, 3, 4,... ,

Find mean and variance of the random variable.

Mean = 7, Var(X) = 5.

Q.2 Given the following discrete probability distribution:

X 0 1 2 3 4 5

P(x) 6/36 10/36 8/36 6/36 4/36 2/

Compute mean, variance, standard deviation and coefficient of variation.

Mean = 1.944, Var(X) = 2.0525, Standard Deviation = 1.433, C.V.(X) = 74%

Q.3 Let the random variable X has a probability function

 

3

3

C

P X = = ,

x x^ x^ = 0, 1, 2,3.

Find Coefficient of Variation of X.

Q.4 X has a probability function

 

1 5 1 P X = = , 6 6

x

x

            

x = 1, 2, 3, 4, 5, 6.

Find CV(X).

Q.5 A discrete random variable X has the following probability distribution.

X – 1 0 1 4

P(x) 0.2 0.5 A 0.

Find CV of X

Q.6 In a summer season, a dealer of desert room cooler can earn Rs.800 per day if the day is hot

and can earn Rs.200 per day if it is fair and looses Rs.50 if it is cloudy. Find his mathematical

expectation if probability of the day being hot is 0.40 and for being cloudy is 0.35.

(a = 0.25, Mathematical Expectation = 352.5)

Q.7 Given the following probability distribution:

X 0 1 2 3 4

P(x) 1/210 20/210 m 70/210 10/

Find (i) m (ii) mean and variance of the distribution.

109

210

m Mean = 2.3240 Variance = 0.

Q.8 Given the following probability distribution:

X 0 1 2 3 4

P(x) 1/126 20/126 60/126 40/126 5/

Show that E(2X + 3) = 2E(X) + 3 E(2X + 3) = 2E(X) + 3 = 7.

Q.9 A random variable X has the following probability distribution:

X 0 1 2 3

P(x) 0.1 0.2 0.3 0.

Show that (i) E(5X + 8) = 5E(X) + 8 (ii) Var(5X + 8) = 25Var(X)

E(5X + 8) = 5E(X) + 8 = 18 Var(5X + 8) = 25 Var(X) = 25

Q.10 The joint distribution of X and Y is given by the following table:

X =

Y =

Find (i) E(X) (ii) E(Y) (iii) E(X + Y) (iv) E(XY)

Q.11 The joint distribution of X and Y is given by the following table:

X =

Y =

Are X and Y independent?