COMP 170 L2 L18: Random Variables: Independence and Variance Page 1.

Slides:



Advertisements
Similar presentations
AP Statistics Section 6.2C Independent Events & The Multiplication Rule.
Advertisements

Lecture Discrete Probability. 5.3 Bayes’ Theorem We have seen that the following holds: We can write one conditional probability in terms of the.
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
Lecture (7) Random Variables and Distribution Functions.
Probability Basic Probability Concepts Probability Distributions Sampling Distributions.
Section 5.1 and 5.2 Probability
Chapter 4 Probability and Probability Distributions
Unit 32 STATISTICS.
Random Variables and Expectation. Random Variables A random variable X is a mapping from a sample space S to a target set T, usually N or R. Example:
AP Statistics Section 6.2 A Probability Models
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
April 2, 2015Applied Discrete Mathematics Week 8: Advanced Counting 1 Random Variables In some experiments, we would like to assign a numerical value to.
1. Variance of Probability Distribution 2. Spread 3. Standard Deviation 4. Unbiased Estimate 5. Sample Variance and Standard Deviation 6. Alternative Definitions.
Lec 18 Nov 12 Probability – definitions and simulation.
Probability theory Much inspired by the presentation of Kren and Samuelsson.
Probability and Statistics Review
COMP 170 L2 L16: Conditional Probability and Independence Page 1.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Introduction to Probability and Statistics Chapter 7 Sampling Distributions.
 The Law of Large Numbers – Read the preface to Chapter 7 on page 388 and be prepared to summarize the Law of Large Numbers.
Binomial Probability Distribution.
Normal and Sampling Distributions A normal distribution is uniquely determined by its mean, , and variance,  2 The random variable Z = (X-  /  is.
Expected Value (Mean), Variance, Independence Transformations of Random Variables Last Time:
Special Topics. Definitions Random (not haphazard): A phenomenon or trial is said to be random if individual outcomes are uncertain but the long-term.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Week71 Discrete Random Variables A random variable (r.v.) assigns a numerical value to the outcomes in the sample space of a random phenomenon. A discrete.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
 A number expressing the likelihood that a specific event will occur, expressed as the ratio of the number of actual occurrences.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Statistics 303 Chapter 4 and 1.3 Probability. The probability of an outcome is the proportion of times the outcome would occur if we repeated the procedure.
Day 2 Review Chapters 5 – 7 Probability, Random Variables, Sampling Distributions.
1 Lecture 4. 2 Random Variables (Discrete) Real-valued functions defined on a sample space are random vars. determined by outcome of experiment, we can.
Lecture Discrete Probability. 5.3 Bayes’ Theorem We have seen that the following holds: We can write one conditional probability in terms of the.
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
Lecture 03 Prof. Dr. M. Junaid Mughal Mathematical Statistics.
Bernoulli Trials Two Possible Outcomes –Success, with probability p –Failure, with probability q = 1  p Trials are independent.
The Mean of a Discrete RV The mean of a RV is the average value the RV takes over the long-run. –The mean of a RV is analogous to the mean of a large population.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
STA347 - week 51 More on Distribution Function The distribution of a random variable X can be determined directly from its cumulative distribution function.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
Chapter 16 Probability Models. Who Wants to Play?? $5 to play You draw a card: – if you get an Ace of Hearts, I pay you $100 – if you get any other Ace,
Probability Distributions: Binomial & Normal Ginger Holmes Rowell, PhD MSP Workshop June 2006.
12/7/20151 Probability Introduction to Probability, Conditional Probability and Random Variables.
Random Variables Ch. 6. Flip a fair coin 4 times. List all the possible outcomes. Let X be the number of heads. A probability model describes the possible.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 6: Random Variables Section 6.1 Discrete and Continuous Random Variables.
Lecture 7 Dustin Lueker. 2STA 291 Fall 2009 Lecture 7.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
1 Keep Life Simple! We live and work and dream, Each has his little scheme, Sometimes we laugh; sometimes we cry, And thus the days go by.
1 Sampling distributions The probability distribution of a statistic is called a sampling distribution. : the sampling distribution of the mean.
Introduction to Inference Sampling Distributions.
A random variable is a variable whose values are numerical outcomes of a random experiment. That is, we consider all the outcomes in a sample space S and.
Chapter 8: Probability: The Mathematics of Chance Probability Models and Rules 1 Probability Theory  The mathematical description of randomness.  Companies.
7.2 Means & Variances of Random Variables AP Statistics.
Independent and Dependent Events Lesson 6.6. Getting Started… You roll one die and then flip one coin. What is the probability of : P(3, tails) = 2. P(less.
Chapter 14 Week 5, Monday. Introductory Example Consider a fair coin: Question: If I flip this coin, what is the probability of observing heads? Answer:
Section 7.3. Why we need Bayes?  How to assess the probability that a particular event occurs on the basis of partial evidence.  The probability p(F)
Week 61 Poisson Processes Model for times of occurrences (“arrivals”) of rare phenomena where λ – average number of arrivals per time period. X – number.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Binomial Distribution
Business Statistics Topic 4
Sampling Distribution Models
Introduction to Probability & Statistics The Central Limit Theorem
Probability Key Questions
Binomial Distribution
The Geometric Distribution
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

COMP 170 L2 L18: Random Variables: Independence and Variance Page 1

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 2

COMP 170 L2 Distribution Functions of RVs l P(X=k) viewed as a function of k: The distribution function of X. l In general Page 3

COMP 170 L2 Probability Weight and Distribution Function Page 4

COMP 170 L2 Distribution Functions of RVs Page 5

COMP 170 L2 Distribution Functions of RVs Page 6 l For coin example n D(1, 9) = P(1 <= X <=9 ) ~= 1

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 7

COMP 170 L2 Independence Between Events l E is independent of F If P(E|F) = P(E) n The information that “Event F occurred” does not change the probability of E

COMP 170 L2 Random Variable and Event l Given a rand variable, we can define many difference events Page 9

COMP 170 L2 Independence between RVs Page 10

COMP 170 L2 Independence between RVs Page 11

COMP 170 L2 Independence between RVs Page 12 l No need to further check n P(X=0, Y=1) ?= P(X=0)P(Y=1) n P(X=1, Y=0) ? = P(X=1)P(Y=0) n P(X=1, Y=1) ?= P(X=1)P(Y=1)

COMP 170 L2 Independence between RVs l Draw two cards from a deck of 52 cards n X: number on first card n Y: number on second card n X and Y are independent when drawing with replacement n X and Y are not independent when drawing without replacement Page 13

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 14

COMP 170 L2 Independence and Expectation Page 15

COMP 170 L2 Independence and Expectation Page 16

COMP 170 L2 Page 17

COMP 170 L2 Page 18

COMP 170 L2 Illustrating Proof via Example Page 19

COMP 170 L2 Illustrating Proof via Example Page 20

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Sum of independent RVs n The Trend n Central limit theorem Page 21

COMP 170 L2 Variance of RVs l Probability starts with a process whose outcome is uncertain l Sample space: the set of all possible outcomes l A random variable (RV) is a function defined on the sample space l Different runs of the process might yield different outcomes l The RV might take different values in different runs n In other words, the value of RV varies across different runs l Some RVs vary more and some vary less n Number of heads in 1 coin flip n Number of heads in 10 coin flips n Number of heads in 100 coin flips Page 22

COMP 170 L2 Variance of RVs l Variance of an RV X n Measures how much it varies (across different runs of process) n Relative to the mean value Page 23

COMP 170 L2 Page 24

COMP 170 L2 Page 25

COMP 170 L2 Which RV vary the most? Flip fair coin l Number of heads in 1 flip l Number of heads in 10 flips l Number of heads in 100 flips Page 26 l Variance 1/4 10/4 100/4

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 27

COMP 170 L2 Calculating Variance Page 28

COMP 170 L2 Example 1: We have already seen l Number of heads in n flips n n=1 n n=10 (x1+X2+…+X10) n n=100 (X1+X2+…+X100) Page 29 l Variance 1/4 10/4 = 10 * 1/4 100/4 = 100 * 1/4 l Additivity is true here.

COMP 170 L2 Page 30 l Additivity is true here.

COMP 170 L2 Example 3 (Counter Example) Page 31

COMP 170 L2 Example 3 (Counter Example) Page 32

COMP 170 L2 Page 33

COMP 170 L2 Two Lemmas Page 34

COMP 170 L2 Page 35

COMP 170 L2 Page 36

COMP 170 L2 Page 37 An Application of Theorem 5.29

COMP 170 L2 A Corollary Page 38

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 39

COMP 170 L2 Standard Deviation l Standard deviation is another measure of how much a rv varies or how much a distribution spread out l It is the square root of variance. Page 40 l Next page l Shows several distributions, variances and standard deviations l Highlights the differences between variance and standard deviation

COMP 170 L2 Distributions, Variances, and Standard Deviations Page 41

COMP 170 L2 l The examples on the previous page show n Standard deviation is a natural measure of “spread” of distribution l Variance is easier to manipulate mathematically. Will see this in further study of probability theory and statistics. Page 42 Distributions, Variances, and Standard Deviations

COMP 170 L2 Outline l Independence of RVs n Distribution Functions of RVs n Independence between RVs n Expectation of product of independent RVs l Variance of RV n Definition and Examples n Additivity n Standard deviation l Central limit theorem Page 43

COMP 170 L2 A Pattern l If we flip of a coin a large number of times, n “The number of heads” has bell-shaped distribution. l This phenomenon is not unique to coin flipping Page 44

COMP 170 L2 Page 45 Test with.8 probability of getting correct answer

COMP 170 L2 Page 46

COMP 170 L2 Page 47

COMP 170 L2 Normal Distribution Page 48

COMP 170 L2 Page 49

COMP 170 L2 Page 50

COMP 170 L2 Recap:

COMP 170 L2 Recap: l E is independent of F If P(E|F) = P(E) n The information that “Event F occurred” does not change the probability of E

COMP 170 L2 Recap: Flip fair coin l Number of heads in 1 flip: Variance = 1/4 l Number of heads in 10 flips: Variance = 10/4 l Number of heads in 100 flips: Variance = 100/4

COMP 170 L2 Number of times until first success l Throw a fair die n How many times, on average, do you need to throw the die until you see a 1? n P(getting 1 at each throw) = 1/6 n Answer: 1/(1/6) = 6 Page 54

COMP 170 L2 Number of times until first success l Throw a fair die n How many times, on average, do you need to throw the die until you see a 2 and 3 in that order? n Expected number of throws to see 2: 6 n After that, expected number of throws to see 3: 6 n Answer: 6+6 = 12 Page 55

COMP 170 L2 Number of times until first success l Throw a fair die n How many times, on average, do you need to throw the die until you see a 2 and 3, where the order does not matter? n P( get 2 or 3 in one throw ) = 1/3 n Expected number throws until you see one of 2 or 3: 3 n After that, P( get the other number in each throw) = 1/6 n Expected number of throws until you see the other number: 6 n Answer: 3+6 = 9 Page 56

COMP 170 L2 Old Exam Question 1 Page 57 P( at least one copy of T1 in 20 weeks) = 1 – P( no copy of T1 in 20 weeks) = 1 – P ( no T1 in week1 AND no T1 in week 2 AND …) = 1- P(no T1 in week1) P(no T1 in week 2) … =

COMP 170 L2

l Can we do this? P(all 10 types of toys in 20 weeks) = P(copy of T1 in 20 weeks AND copy of T2 in 20 weeks AND …) = P(copy of T1 in 20 weeks) P(copy of T2 in 20 weeks)… NO, events not independent l Correct way Page 59 P(all 10 types of toys in 20 weeks) = 1 – P(A) Use inclusion-exclusion to calculate P(A)

COMP 170 L2

Page 61 Old Exam Question 2

COMP 170 L2