Data Analysis
Data Analysis
Data Analysis
Session#12
(Properties)
E [ h ( X )] h ( x ) P ( x )
all x
26 27
2.3
3 4 5
0. A game of chance with an expected payoff of 0 is called a
The mean is also known as the expected value (or expectation) of a random fair game.
variable, because it is the value that is expected to occur, on average.
x P(x) xP(x)
The expected value of a discrete random 0 0.1 0.0
variable X is equal to the sum of each 1 0.2 0.2 x P(x) xP(x)
value of the random variable multiplied by 2 0.3 0.6
-1 0.5 -0.50
3 0.2 0.6
its probability. 4 0.1 0.4 1 0.5 0.50 -1
0
1
28 29
Example 3: Monthly sales of a certain Number Example 3: Monthly sales of a certain Number
product are believed to follow the given of items, x P(x) xP(x) h(x) h(x)P(x) product are believed to follow the given of items, x P(x) xP(x) h(x) h(x)P(x)
probability distribution. Suppose the 5000 0.2 1000 2000 400 probability distribution. Suppose the 5000 0.2 1000 2000 400
6000 0.3 1800 4000 1200 6000 0.3 1800 4000 1200
company has a fixed monthly production company has a fixed monthly production
7000 0.2 1400 6000 1200 7000 0.2 1400 6000 1200
cost of $8000 and that each item brings 8000 0.2 1600 8000 1600 cost of $8000 and that each item brings 8000 0.2 1600 8000 1600
$2. Find the expected monthly profit 9000 0.1 900 10000 1000 $2. Find the expected monthly profit 9000 0.1 900 10000 1000
h(X), from product sales. 1.0 6700 5400 h(X), from product sales. 1.0 6700 5400
E[ h( X )] h( x) P ( x) 5400 Note: h (X) = 2X – 8000 where X = # of items sold E[ h( X )] h( x) P ( x) 5400 Note: h (X) = 2X – 8000 where X = # of items sold
all x all x
The expected value of a linear function of a random variable is: The expected value of a linear function of a random variable is:
E(aX+b)=aE(X)+b E(aX+b)=aE(X)+b
In this case: E(2X-8000)=2E(X)-8000=(2)(6700)-8000=5400 In this case: E(2X-8000)=2E(X)-8000=(2)(6700)-8000=5400
30 31
Variance and Standard Deviation of Variance of a Linear Function of a
a Random Variable Random Variable
The variance of a linear function of a random variable is:
The variance of a random variable is the expected
V(a X b) a2V( X) a22
squared deviation from the mean:
Example 3
2
V ( X ) E [( X ) 2 ] a ll x
(x ) 2 P(x ) 2 V (X )
2 Number E ( X 2 ) [ E ( X )]2
E ( X 2 ) [ E ( X )] 2 x 2 P ( x ) x P ( x ) of items, x P(x) xP(x) x2 P(x)
2
32 33
For example: V(X) = 84 and V(Y) = 60 V(X+Y) = 144 V (a X a X ... a X ) a2V ( X ) a2V ( X ) ... a2V ( X )
1 1 2 2 k k 1 1 2 2 k k
34 35
36 37
1. The monthly sales at a shopping store have a mean $ 25000 and
standard deviation $ 4000. Profits are calculated by multiplying sales by
30% and subtracting a fixed cost of $ 6000. Find mean and standard
deviation of monthly profits.
38