Week+3_3+Aug+to+7th+Aug_Continuous+random+variables
Week+3_3+Aug+to+7th+Aug_Continuous+random+variables
We will now look at variables that are continuous and hence measured eg: height, weight, time
taken, distance travelled.
probability distribution) of X such that for any two numbers a and b with a b
b
P(a X b) f ( x) dx
a
The integral from x a to x b gives the probability that X takes a value in the interval [a, b]
Properties of a pdf
A function f ( x) of a continuous random variable X is called a probability density function (or
probability distribution) of X if and only if (iff)
i ) f ( x) 0 x
ii )
f ( x) dx 1
ii ) p( x) 1
All x
Example 1:
Show that
1
0 x 60
f ( x) 60
0 elsewhere
is a p.d.f.
1
Example 2:
Show that
3
4 2 x x 0 x2
2
f ( x)
0 elsewhere
is a p.d.f.
Example 3:
Find the value of k that makes f ( x) a p.d.f
e kx k 0, x 0
f ( x)
0 elsewhere
Thus, for each x, F ( x) is the area under the density to the left of x.
Using F ( x) to find f ( x)
2
If X is a continuous random variable with pdf f ( x) and cumulative distribution function , then at
every x at which the derivative F '( x) exists
F '( x) f ( x)
Example 4
ii) Find P( X 3)
kx 2 (1 x) 0 x 1; k 0
f ( x)
0 elsewhere
(Ans: k = 12)
1
ii) Find P X - Ans 0
2
iii) Find P 0.1 X 0.6 - Ans 0.4715
Definition 3
3
Definition 4: Expected value
The expected value of a c.r.v X with p.d.f. f ( x) is given by
E[ X ] x
f ( x) dx
Definition 5: Variance
The variance of a c.r.v X with p.d.f. f ( x) is given by
2 (x )
2
f ( x) dx
E[ X 2 ] E[ X ]
2
Example 5
2
x3 x 1
f ( x)
0 elsewhere
Example 6
1
8 0 x2
x
Let f ( x) 2 x4
8
0 elsewhere
4
Integration by parts
Generally speaking:
uv v du u dv
General guidelines:
Example 7
x e dx
x
Example 8 (homework)
1 2
Show that x e x dx e x C
2
Example 9
2
x e xe
6x 6x
Find dx and evaluate dx
1
Example 10 (homework)
3 5
2 4
Show that the following indefinite integral x x 1 dx =
3
x( x 1) 2 ( x 1) 2 C
15
Example 11
x x3 1 dx
5
Evaluate
5
6
Example 12
Given
1 x
x e 2
x0
4
f ( x)
0 elsewhere
Find E[X]
****** Revise limits and L'Hôpital's rule as we apply these in solving examples******