Download presentation
Presentation is loading. Please wait.
Published byLeona Banks Modified over 9 years ago
1
COMP 170 L2 L17: Random Variables and Expectation Page 1
2
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties n Expectation and counting n Geometric distribution Page 2
3
COMP 170 L2 Functions on Sample Space l Probability starts with a process (test, experiment) whose outcome is uncertain l Sample space: the set of all possible outcomes l Sometimes, we want to define functions on the sample space l Example n Process: flip a coin n times n Sample space: set of sequences of n elements, each being H or T n Example: n=5, Function: “Number of heads” Page 3
4
COMP 170 L2 Random Variables l Probability starts with a process whose outcome is uncertain l Sample space: the set of all possible outcomes l Sometimes, we want to define functions on the sample space l Outcome of the process is uncertain l Function defined on the outcome is also uncertain l So, called random variable l A random variable is a function defined on the sample space l Example: “Number of heads” in n coin flips is a random variables Page 4
5
COMP 170 L2 Example 2 Page 5
6
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties n Expectation and counting n Geometric distribution Page 6
7
COMP 170 L2 Page 7
8
COMP 170 L2 Page 8
9
COMP 170 L2 Page 9
10
COMP 170 L2 Page 10
11
COMP 170 L2 Page 11
12
COMP 170 L2 Binomial Random Variable l n Bernoulli trials, each with probability of success at each trial being p l X: number of successes, l X: called Binomial random variable l P: Binomial probability distribution l Do the numbers sum to 1? Page 12
13
COMP 170 L2 Page 13
14
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties n Expectation and counting n Geometric distribution Page 14
15
COMP 170 L2 Expectation of Random Variables Page 15
16
COMP 170 L2 Expectation Example Page 16
17
COMP 170 L2 Expectation and Average l Expectation ~= Average over many runs of process Page 17 Expect the average
18
COMP 170 L2
19
Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties Proof of linearity Use of linearity n Expectation and counting n Geometric distribution Page 19
20
COMP 170 L2 Expectation from Sample space Page 20 l Get the same result from sample space
21
COMP 170 L2 Expectation from Sample space Page 21
22
COMP 170 L2 Page 22
23
COMP 170 L2 Page 23
24
COMP 170 L2 Page 24
25
COMP 170 L2 Page 25
26
COMP 170 L2 Page 26
27
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties Proof of linearity Use of linearity n Expectation and counting n Geometric distribution Page 27
28
COMP 170 L2 Page 28
29
COMP 170 L2 Page 29
30
COMP 170 L2 Page 30
31
COMP 170 L2 Page 31
32
COMP 170 L2 Page 32
33
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties n Expectation and counting n Geometric distribution Page 33
34
COMP 170 L2 Page 34
35
COMP 170 L2 Page 35
36
COMP 170 L2 Page 36
37
COMP 170 L2 Page 37
38
COMP 170 L2 Outline l Random Variables n The concept n Bernoulli/Binomial random variables l Expectation of Random Variables n The concept n Properties n Expectation and counting n Geometric distribution Page 38
39
COMP 170 L2 Repeating Bernoulli Trials Until Success Page 39
40
COMP 170 L2 Number of Trials until First Success Page 40
41
COMP 170 L2 l Let x = 1-p l Consider only 0 < p < 1 l Then, 0 < x <1 l Let n goes to infinity, LHS becomes Page 41
42
COMP 170 L2 Number of Trial until First Success Page 42
43
COMP 170 L2 Page 43
44
COMP 170 L2 Page 44
45
COMP 170 L2 Recap: 06-05-2010 l Probability starts with a process whose outcome is uncertain l Sample space: the set of all possible outcomes l A random variable is a function defined on the sample space n Uncertain because outcome of process is l Bernoulli RV: n Outcome of Bernoulli Trail (success of failure) l Binomial RV n # of successes in n independent Bernoulli trials
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.