Continuous Random Variable
Continuous Random Variable
Continuous Random Variable
Variable
Ranjit Biswal
PG Department of mathematics
F.M. University
Continuous Random Variable
P(X>x) = 1-F(x)
Expectation and variance of continuous
random variable
Let, X be a continuous random variable with density function f(x)
▪ The expectation or expected value or mean of x is defined by
∞
𝜇 = 𝐸 𝑥 = −∞ 𝑋𝑓 𝑥 𝑑𝑥
▪ The variance of x is defined by
∞
var (X)=E[(X-𝜇)2 ]=−∞(𝑋 − 𝜇)2 f(x)dx
▪ Let x be a continuous random variable with density function f(x) and H(x)
be a real valued function of X, then H(x) is a random variable and its
∞
expectation is given by E[H(x)] =−∞ 𝐻 𝑥 𝑓 𝑥 𝑑𝑥,provided
∞
▪ E[H(x)] =−∞ 𝐻 𝑥 𝑓 𝑥 𝑑𝑥, is finite .
Higher order moment and moment generating
function
Let, x be a continuous random variable with pdf f(x). The Kth order moment of
X is defined as E(Xk).
The moment generating function (mgf) for X is denoted by Mx(t) and is
defined by Mx(t)=E[etx], provided this expectation is finite for all real numbers
t.
Theorem:
if Mx(t) is moment generating function for a random variable X, then
the Kth moment of X is given by
𝑘
𝑑 𝑀𝑥 (𝑡)
E(X )=
t |t=0
𝑑𝑡𝑘
Some continuous probability distribution
Uniform distribution
Exponential probability distribution
Normal distribution
Continuous Uniform Distribution
Expected Value of x
E(x) = (a + b)/2
Variance of x
Var(x) = (b - a)2/12
Uniform Probability Distribution
Example:
Slater customers are charged for the amount of
salad they take. Sampling suggests that the amount
of salad taken is uniformly distributed between 5
ounces and 15 ounces.
Uniform Probability Distribution
where:
x = salad plate filling weight
Uniform Probability Distribution
Expected Value of x
E(x) = (a + b)/2
= (5 + 15)/2
= 10
Variance of x
Var(x) = (b - a)2/12
= (15 – 5)2/12
= 8.33
Uniform Probability Distribution
Uniform Probability Distribution
for Salad Plate Filling Weight
f(x)
1/10
x
0 5 10 15
Salad Weight (oz.)
Uniform Probability Distribution
f(x)
x
0 5 10 12 15
Salad Weight (oz.)
Normal Probability Distribution
The normal probability distribution is the most important distribution
for describing a continuous random variable.
1 − ( x − )2 /2 2
f (x) = e
2
where:
= mean
= standard deviation
= 3.14159
e = 2.71828
Normal Probability Distribution
Characteristics
x
Normal Probability Distribution
Characteristics
Standard Deviation
x
Mean
Normal Probability Distribution
Characteristics
x
Normal Probability Distribution
Characteristics
x
-10 0 25
Normal Probability Distribution
Characteristics
= 15
= 25
x
Normal Probability Distribution
Characteristics
.5 .5
x
Normal Probability Distribution
Characteristics
Characteristics
99.72%
95.44%
68.26%
x
– 3 – 1 + 1 + 3
– 2 + 2
Standard Normal Probability Distribution
Characteristics
Characteristics
=1
z
0
Standard Normal Probability Distribution
x−
z=
Example:
Pep Zone sells auto parts and supplies including
a popular multi-grade motor oil. When the stock of
this oil drops to 20 gallons, a replenishment order is
placed.
The store manager is concerned that sales are
being lost due to stockouts while waiting for a
replenishment order.
Standard Normal Probability Distribution
Example
It has been determined that demand during
replenishment lead-time is normally distributed
with a mean of 15 gallons and a standard deviation
of 6 gallons.
The manager would like to know the probability
of a stockout during replenishment lead-time. In
other words, what is the probability that demand
during lead-time will exceed 20 gallons?
z = (x - )/
= (20 - 15)/6
= .83
P(z <
.83)
Standard Normal Probability Distribution
Probability
of a stockout P(x > 20)
Standard Normal Probability Distribution
Area = 1 - .7967
Area = .7967
= .2033
z
0 .83
Normal approximation to binomial
Example :
multiple-choice quiz has 200 questions, each with 4 possible answers of which only
1 is correct. What is the probability that sheer guesswork yields from 25 to 30
correct answers for the 80 of the 200 problems about which the student has no
knowledge?
Solution:
The probability of guessing a correct answer for each of the 80
questions is p = 1/4. If X represents the number of correct answers resulting from
guesswork, then
P(25 ≤ X ≤ 30) = σ30𝑋=25 b(x; 80, 1/ 4) .
Using the normal curve approximation with
𝜇 = np = (80)(1/4) = 20
and 𝜎 = 𝑛𝑝𝑞 = (80)(1/4)(3/4) = 3.873,
Normal approximation to binomial
now,
The probability
P(25 ≤ X ≤ 30) = P(24.5<x<30.5)≈ P(1.16 <Z< 2.71)
= P(Z < 2.71) − P(Z < 1.16)
=0.9966 – 0.8770 = 0.1196
Exponential Probability Distribution
Defination:
A continuous random variable X is said to be an exponential random variable
with parameter β if its probability density function is of the following form
f (x) = 1/ β e − x/ β , x > 0, β > 0
Exponential distribution is a special case of Gamma distribution with parameters
α = 1 and β.
Note:
In a Poisson process discrete events are being observed over a continuous
time interval. If we let W denote the time of the occurrence of the first event,
then W is a continuous random variable. And, this W is called exponential random
variable. That is, time required until first occurrence
Exponential probability distribution
Mean(𝝁): =𝜷
Variance( 𝝈𝟐) =𝜷𝟐
Mx (t) =(1-𝜷𝒕)-1
Poisson process
Consider a Poisson process with parameter λ. Let W denote the time of the occurrence
of the first event. W has an exponential distribution with β = 1/ λ
Proof:
The distribution function F for W is given by
F(w) = P(W ≤ w) = 1 − P(W > w)
▪ The first occurrence of the event will take place after time w only if no occurrences
of the events are recorded in the time interval [0,w].
▪ Let X denote the number of occurrences of the event in this time interval.
▪ Thus, X is Poisson Random variable with parameter λw
▪ Thus
P(W > w) = P(X = 0) = e −λw