Download presentation
Presentation is loading. Please wait.
Published byClifford Perkins Modified over 9 years ago
1
Expectation
2
Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected value of X, E(X) is defined to be: and if X is continuous with probability density function f(x)
3
Example: Suppose we are observing a seven game series where the teams are evenly matched and the games are independent. Let X denote the length of the series. Find: 1.The distribution of X. 2.the expected value of X, E(X).
4
Solution: Let A denote the event that team A, wins and B denote the event that team B wins. Then the sample space for this experiment (together with probabilities and values of X) would be (next slide):
5
outcomeAAAABBBBBAAAAABAAAAABAAAAABA Prob (½ ) 4 (½ ) 5 X 445555 outcome ABBBBBABBBBBABBBBBABABBBBBBAAAA Prob (½ ) 5 (½ ) 6 X 555566 outcome BABAAABAABAABAAABAABBAAAABABAAABAABA Prob (½ ) 6 X 666666 outcome AABBAAAABABAAAABBAAABBBBABABBBABBABB Prob (½ ) 6 X 666666 - continued At this stage it is recognized that it might be easier to determine the distribution of X using counting techniques
6
The possible values of X are {4, 5, 6, 7} The probability of a sequence of length x is (½) x The series can either be won by A or B. If the series is of length x and won by one of the teams (A say) then the number of such series is: In a series of that lasts x games, the winning team wins 4 games and the losing team wins x - 4 games. The winning team has to win the last games. The no. of ways of choosing the games that the losing team wins is:
7
Thus The no. of ways of choosing the games that the losing team wins The no. of ways of choosing the winning team The probability of a series of length x. x4567 p(x)p(x)
9
Interpretation of E(X) 1.The expected value of X, E(X), is the centre of gravity of the probability distribution of X. 2.The expected value of X, E(X), is the long-run average value of X. (shown later –Law of Large Numbers) E(X)E(X)
10
Example: The Binomal distribution Let X be a discrete random variable having the Binomial distribution. i. e. X = the number of successes in n independent repetitions of a Bernoulli trial. Find the expected value of X, E(X).
11
Solution:
13
Example: A continuous random variable The Exponential distribution Let X have an exponential distribution with parameter. This will be the case if: 1. P[X ≥ 0] = 1, and 2. P[ x ≤ X ≤ x + dx| X ≥ x] = dx. The probability density function of X is: The expected value of X is:
14
We will determine using integration by parts.
15
Summary: If X has an exponential distribution with parameter then:
16
Example: The Uniform distribution Suppose X has a uniform distribution from a to b. Then: The expected value of X is:
17
Example: The Normal distribution Suppose X has a Normal distribution with parameters and . Then: The expected value of X is: Make the substitution:
18
Hence Now
19
Example: The Gamma distribution Suppose X has a Gamma distribution with parameters and. Then: Note: This is a very useful formula when working with the Gamma distribution.
20
The expected value of X is: This is now equal to 1.
21
Thus if X has a Gamma ( , ) distribution then the expected value of X is: Special Cases: ( , ) distribution then the expected value of X is: 1. Exponential ( ) distribution: = 1, arbitrary 2. Chi-square ( ) distribution: = / 2, = ½.
22
The Gamma distribution
23
The Exponential distribution
24
The Chi-square ( 2 ) distribution
25
Expectation of functions of Random Variables
26
Definition Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected value of g(X), E[g(X)] is defined to be: and if X is continuous with probability density function f(x)
27
Example: The Uniform distribution Suppose X has a uniform distribution from 0 to b. Then: Find the expected value of A = X 2. If X is the length of a side of a square (chosen at random form 0 to b) then A is the area of the square = 1/3 the maximum area of the square
28
Example: The Geometric distribution Suppose X (discrete) has a geometric distribution with parameter p. Then: Find the expected value of X A and the expected value of X 2.
29
Recall: The sum of a geometric Series Differentiating both sides with respect to r we get:
30
Thus This formula could also be developed by noting:
31
This formula can be used to calculate:
32
To compute the expected value of X 2. we need to find a formula for Note Differentiating with respect to r we get
33
Differentiating again with respect to r we get Thus
34
implies Thus
36
Moments of Random Variables
37
Definition Let X be a random variable (discrete or continuous), then the k th moment of X is defined to be: The first moment of X, = 1 = E(X) is the center of gravity of the distribution of X. The higher moments give different information regarding the distribution of X.
38
Definition Let X be a random variable (discrete or continuous), then the k th central moment of X is defined to be: where = 1 = E(X) = the first moment of X.
39
The central moments describe how the probability distribution is distributed about the centre of gravity, . and is denoted by the symbol var(X). = 2 nd central moment. depends on the spread of the probability distribution of X about . is called the variance of X.
40
is called the standard deviation of X and is denoted by the symbol . The third central moment contains information about the skewness of a distribution.
41
The third central moment contains information about the skewness of a distribution. Measure of skewness
42
Positively skewed distribution
43
Negatively skewed distribution
44
Symmetric distribution
45
The fourth central moment Also contains information about the shape of a distribution. The property of shape that is measured by the fourth central moment is called kurtosis The measure of kurtosis
46
Mesokurtic distribution
47
Platykurtic distribution
48
leptokurtic distribution
49
Example: The uniform distribution from 0 to 1 Finding the moments
50
Finding the central moments:
51
Thus The standard deviation The measure of skewness The measure of kurtosis
52
Rules for expectation
53
Rules: Proof The proof for discrete random variables is similar.
54
Proof The proof for discrete random variables is similar.
55
Proof The proof for discrete random variables is similar.
56
Proof
57
Moment generating functions
58
Definition Let X denote a random variable, Then the moment generating function of X, m X (t) is defined by: Recall
59
Examples The moment generating function of X, m X (t) is: 1.The Binomial distribution (parameters p, n)
60
The moment generating function of X, m X (t) is: 2.The Poisson distribution (parameter )
61
The moment generating function of X, m X (t) is: 3.The Exponential distribution (parameter )
62
The moment generating function of X, m X (t) is: 4.The Standard Normal distribution ( = 0, = 1)
63
We will now use the fact that We have completed the square This is 1
64
The moment generating function of X, m X (t) is: 4.The Gamma distribution (parameters , )
65
We use the fact Equal to 1
66
Properties of Moment Generating Functions
67
1. m X (0) = 1 Note: the moment generating functions of the following distributions satisfy the property m X (0) = 1
68
We use the expansion of the exponential function:
69
Now
70
Property 3 is very useful in determining the moments of a random variable X. Examples
72
To find the moments we set t = 0.
75
The moments for the exponential distribution can be calculated in an alternative way. This is note by expanding m X (t) in powers of t and equating the coefficients of t k to the coefficients in: Equating the coefficients of t k we get:
76
The moments for the standard normal distribution We use the expansion of e u. We now equate the coefficients t k in:
77
If k is odd: k = 0. For even 2k:
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.