Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.

Slides:



Advertisements
Similar presentations
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Advertisements

Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Sampling: Final and Initial Sample Size Determination
The Bernoulli distribution Discrete distributions.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Sections.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Estimating a Population Proportion
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Discrete Random Variables and Probability Distributions
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Sections.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
5.5 Distributions for Counts  Binomial Distributions for Sample Counts  Finding Binomial Probabilities  Binomial Mean and Standard Deviation  Binomial.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel elena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Bernoulli Trials Two Possible Outcomes –Success, with probability p –Failure, with probability q = 1  p Trials are independent.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.1.
Stat 13 Lecture 19 discrete random variables, binomial A random variable is discrete if it takes values that have gaps : most often, integers Probability.
,  are some parameters of the population. In general, ,  are not known.Suppose we want to know  (say), we take samples and we will know and s So,
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Economics 173 Business Statistics Lecture 3 Fall, 2001 Professor J. Petry
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Sections.
Systematic Sampling Lecture 9 – Part 1 Sections 2.8 Wed, Jan 30, 2008.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Probability Generating Functions Suppose a RV X can take on values in the set of non-negative integers: {0, 1, 2, …}. Definition: The probability generating.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Sections.
Copyright © Cengage Learning. All rights reserved. 3 Discrete Random Variables and Probability Distributions.
CHAPTER 14: Binomial Distributions*
CHAPTER 10 Comparing Two Populations or Groups
One-Sample Inference for Proportions
Inference: Conclusion with Confidence
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
CHAPTER 10 Comparing Two Populations or Groups
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Independent Samples: Comparing Proportions
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Section 3: Estimating p in a binomial distribution
CHAPTER 10 Comparing Two Populations or Groups
Estimating the Value of a Parameter Using Confidence Intervals
Lectures prepared by: Elchanan Mossel Yelena Shvets
Unit 6 - Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Determining Which Method to use
Lectures prepared by: Elchanan Mossel Yelena Shvets
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Lectures prepared by: Elchanan Mossel Yelena Shvets
Lectures prepared by: Elchanan Mossel Yelena Shvets
Each Distribution for Random Variables Has:
Geometric Distribution
CHAPTER 10 Comparing Two Populations or Groups
Presentation transcript:

Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section 2.5

Sampling with replacement Suppose we have a population of size N with G good elements and B bad elements. We draw n times with replacement from this population. The number g of good elements in the sample will have a binomial(n,p) distribution with p=G/N and 1-p = B/N

Sampling with replacement If n is large, this will be well approximated by N(np, ). The proportion of good elements in the sample g/n will lie in the interval with probability 95%. If the p is not known, it can be estimated by the method of confidence intervals.

Confidence intervals

Conf Intervals

is called a 99.99% confidence interval.

Sampling without replacement Let’s now think about drawing without replacement. The sample size has to be restricted to n · N. Then number of possible orderings of n elements out of N is: (N) n = N(N-1)(N-2) … (N-n+1). (N) n is called N order n

Sampling without replacement Note that: So:

Sampling without replacement The chance of getting a specific sample with g good elements followed by b bad ones is: Since there are samples with g good and b bad elements all having the same probability, we obtain:

Sampling with and without replacement For sampling without replacement: For sampling with replacement:

Hypergeometric Distribution. The distribution of the number of good elements in a sample of –size n –without replacement From a population of –G good and –N-G = B bad elements Is called the hypergeometric distribution with parameters (n,N,G).

Sampling with and without replacement When N is large (N) n / N n ! 1. When B is large (B) b / B b ! 1 When G is large (G) g / G g ! 1 So for fixed b,g and n as B,G,N ! 1 the hypergeometric distribution can be approximated by a binomial(n,G/N).

Multinomial Distribution Suppose each trial can result in m possible categories c 1, c 2, …, c m with probabilities p 1, p 2, …,p m, where p 1 +p 2 +…+p m = 1. Suppose we make a sequence of n independent trials and let N i denote the number of results in the i th category c i.

Multinomial Distribution Then for every m-tuple of non-negative integers (n 1, n 2, …, n m) with n 1 +n 2 +…+n m = n Probability of any specific sequence Number of possible sequences with the given elements

1,3,5 and ‘even’ Suppose we roll a fair die 10 times and record the number of,, and even’s. Question: What’s the probability of seeing 1, 2, 3 and 4 even numbers?

1,3,5 and ‘even’ Using the multinomial distribution:

Hypergeometric Extension Consider also: this is the no. of ways to choose (g things from G) and (b bad things from B), out of all possible ways to choose n things from N. This way of counting lets us generalize to multiple subcategories easily. How many ways are there to choose g good from G and b bad from B and o ok’s from O and p passable from P out of all possible ways to choose n things from N?