1 Binomial Random Variables Lecture 5  Many experiments are like tossing a coin a fixed number of times and recording the up-face.  The two possible.

Slides:



Advertisements
Similar presentations
Lesson Objective Be able to calculate probabilities for Binomial situations Begin to recognise the conditions necessary for a Random variable to have a.
Advertisements

Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
QBM117 Business Statistics Probability Distributions Binomial Distribution 1.
CHAPTER 13: Binomial Distributions
Section 9.1 ~ Fundamentals of Hypothesis Testing Introduction to Probability and Statistics Ms. Young.
How can you tell which is experimental and which is theoretical probability? You tossed a coin 10 times and recorded a head 3 times, a tail 7 times.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Overview of Lecture Independent and Dependent Variables Between and Within Designs.
Statistics for the Social Sciences Psychology 340 Spring 2005 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 6 Chicago School of Professional Psychology.
Binomial Probability Distribution.
AM Recitation 2/10/11.
Fundamentals of Hypothesis Testing: One-Sample Tests
Tests of significance & hypothesis testing Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
Chapter 5 Sampling Distributions
Let’s flip a coin. Making Data-Based Decisions We’re going to flip a coin 10 times. What results do you think we will get?
Inference for a Single Population Proportion (p).
1 Lecture 5 Binomial Random Variables Many experiments are like tossing a coin a fixed number of times and recording the up-face. * The two possible outcomes.
Exam 1 Median: 74 Quartiles: 68, 84 Interquartile range: 16 Mean: 74.9 Standard deviation: 12.5 z = -1: 62.4 z = -1: 87.4 z = -1z = +1 Worst Question:
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 6 Random Variables 6.3 Binomial and Geometric.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
Hypothesis Testing. The 2 nd type of formal statistical inference Our goal is to assess the evidence provided by data from a sample about some claim concerning.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Rejecting Chance – Testing Hypotheses in Research Thought Questions 1. Want to test a claim about the proportion of a population who have a certain trait.
Welcome to MM570 Psychological Statistics
1 Discrete Random Variables – Outline 1.Two kinds of random variables – Discrete – Continuous 2. Describing a DRV 3. Expected value of a DRV 4. Variance.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 6 Random Variables 6.3 Binomial and Geometric.
Dan Piett STAT West Virginia University Lecture 12.
Outline Lecture 6 1. Two kinds of random variables a. Discrete random variables b. Continuous random variables 2. Symmetric distributions 3. Normal distributions.
Probability Distributions, Discrete Random Variables
Warm up Decide if the following represent permutations or combinations. Then calculate the desired results. 1. How many different four digit numbers can.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 7A PROBABILITY DISTRIBUTIONS FOR RANDOM VARIABLES (BINOMIAL DISTRIBUTION)
Binomial Distribution and Applications. Binomial Probability Distribution A binomial random variable X is defined to the number of “successes” in n independent.
MATH 256 Probability and Random Processes Yrd. Doç. Dr. Didem Kivanc Tureli 14/10/2011Lecture 3 OKAN UNIVERSITY.
Section 10.2: Tests of Significance Hypothesis Testing Null and Alternative Hypothesis P-value Statistically Significant.
1 Lecture 6 Outline 1. Two kinds of random variables a. Discrete random variables b. Continuous random variables 2. Symmetric distributions 3. Normal distributions.
1 Outline 1. Hypothesis Tests – Introduction 2. Technical vocabulary Null Hypothesis Alternative Hypothesis α (alpha) β (beta) 3. Hypothesis Tests – Format.
6.3 Binomial and Geometric Random Variables
1 Outline 1.Count data 2.Properties of the multinomial experiment 3.Testing the null hypothesis 4.Examples.
PROBABILITY! Let’s learn about probability and chance!
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Probability Distributions ( 확률분포 ) Chapter 5. 2 모든 가능한 ( 확률 ) 변수의 값에 대해 확률을 할당하는 체계 X 가 1, 2, …, 6 의 값을 가진다면 이 6 개 변수 값에 확률을 할당하는 함수 Definition.
Inference for a Single Population Proportion (p)
Introduction to Hypothesis Testing: The Binomial Test
9.3 Hypothesis Tests for Population Proportions
CHAPTER 6 Random Variables
Binomial and Geometric Random Variables
Hypothesis Testing: One Sample Cases
CHAPTER 14: Binomial Distributions*
What Is a Test of Significance?
Introduction to Hypothesis Testing: The Binomial Test
Chapter 5 Sampling Distributions
Elementary Statistics
Experimental Probability Vs. Theoretical Probability
Making Data-Based Decisions
Stand Quietly.
The Binomial and Geometric Distributions
Random Variables Binomial Distributions
Chapter 5 Sampling Distributions
Experimental Probability Vs. Theoretical Probability
What do you know about probability?
Experimental Probability Vs. Theoretical Probability
Experimental Probability Vs. Theoretical Probability
Presentation transcript:

1 Binomial Random Variables Lecture 5  Many experiments are like tossing a coin a fixed number of times and recording the up-face.  The two possible outcomes are Heads and Tails.  Each outcome has an associated probability.  For a fair coin, P(Heads) = P(Tails) =.50  X = # of Heads (or Tails) in n trials.  X constitutes a Binomial Random Variable

2 Binomial Random Variables Lecture 5  X is binomial because there are only two possible outcomes.  In a coin toss, these outcomes are Heads, Tails.  X is random because the outcome is not predictable in advance (at least in practice)  X is a variable: the outcome of interest (e.g., the # of Heads in n tosses) varies from one set of n tosses to the next set of n tosses.

3 Binomial Random Variables Lecture 5  The logic on the previous slide works with experiments similar to a series of coin tosses.  Here, the Binomial Random Variable is the # of times an outcome of interest occurs.  Example: we ask a sample of UWO students whether they favor canceling all midterms.  The BRV would be X, the number of students in favor out of n students in the sample.

4 Necessary Conditions for a BRV Lecture 5 1. The experiment consists of n identical trials 2. There are only 2 possible outcomes, called success (S) & failure (F) (labels are arbitrary) 3. P(S) = p. P(F) = q = (1-p). P and q are constant across trials. 4. Trials are independent of each other (because p and q are constant across trials) 5. BRV X = # of successes in n trials.

5 3 ways to compute a binomial probability Lecture 5  It is often of interest to know the probability of obtaining X successes in n trials of a binomial experiment. There are 3 ways to determine that probability. 1. Table look-up 2. Binomial expansion formula 3. Normal approximation to the Binomial

6 BRV – Method #1 Lecture 5  Our preferred method of determining a binomial probability is to look it up in the Binomial Probability Table, found in Table II, Appendix A, in the text.  Table II contains cumulative probabilities – that is, for any X, the table gives the probability of observing X or fewer successes in n trials.

7 BRV – Method #2 Lecture 5  Expansion Formula: P(X) = ( ) p x q (n-x) (X = 0, 1, 2, … n)  p = probability of success on a single trial  q = 1 – p  n = number of trials observed  x = # of successes in those n trials n x

8 BRV – Method #2 Lecture 5  Why use this ugly expansion formula instead of a table?  Table II applies only for values of n = 5, 6, 7, 8, 9, 10, 15, 20, 25, and for a particular set of p values.  In other cases:  When n is small, use the expansion formula.  When n is large, use the normal approximation to the binomial (discussed later this term).

9 BRV – Example 1 Lecture 5  Air Canada keeps telling us that arrival and departure times at Pearson International are improving. Right now, the statistics show that 60% of the Air Canada planes coming into Pearson do arrive on time. (This actually is an improvement over 10 years ago when only 42% of the Air Canada planes arrived on time at Pearson.) The problem is that when a plane arrives on time, it often has to circle the airport because there’s still a plane in its gate (a plane which didn’t leave on time). Statistics also show that 50% of the planes that arrive on time have to circle at least once, while only 35% of the planes that arrive late have to circle at least once.

10 BRV – Example 1 Lecture 5  a). Of the next 15 Air Canada planes that arrive at Pearson, what’s the probability that fewer than 5 of them arrive late?  P(late) =.40 (because P(on time) =.60)  P(X < 5) = P(X ≤ 4) =.217 (from Table for n=15)

11 BRV – Example 1 Lecture 5  b) Of the next 8 Air Canada planes that arrive late at Pearson, what’s the probability that no more than 6 of them can land without having to circle at least once?  P(Land │ Late) =.65  P(X ≤ 6) = 1 – P(X > 6)  = 1 – P(X = 7 or X = 8)  = 1 – 8 (.65) 7 (.35) – 8 (.65) 8 (.35) 0  7 8 ()()

12 BRV – Example 1 Lecture 5  P (X ≤ 6) =  =.8308

13 Introduction to Hypothesis Testing Lecture 5  As scientists, we often want to make inferences from what is true of a sample to what is true of the population it came from.  Logic of this approach: 1. Make a hypothesis (“X”) about a population 2. Say, if “X” (the hypothesis) is true in the population, then something very much like “X” should be true in the sample

14 Introduction to Hypothesis Testing Lecture 5  Logic of this approach (continued): 3. Measure the sample and find out if “X” is true in the sample. This gives you a FACT. 4. Make a decision as to whether “X” is true in the population. This is a CONCLUSION.  Note the distinction between FACT and CONCLUSION.

15 Hypothesis Testing Example Lecture 5  A bag contains 100 marbles. Each marble is either red or blue. One of two conditions exists with respect to the numbers of red and blue marbles.  H O : There are equal numbers of red & blue marbles  H A : 60% of the marbles are blue.

16 Hypothesis Testing Example Lecture 5  H O : There are equal numbers of red & blue marbles  We call this hypothesis the Null Hypothesis. H O is the hypothesis of no effect, no difference.  In this example, no difference in # of red vs. # of blue marbles in the bag.  Real-life application: we administer a new therapy to patient group A and a placebo to group B. H O says that the two groups are not different in the severity of their disorder afterwards – that is, the therapy has no effect.

17 Hypothesis Testing Example Lecture 5  H A : 60% of the marbles are blue.  H A – the Alternative Hypothesis – says that there is a difference (in this case, the difference is specified)  In this example, a difference between the # of red and the # of blue marbles in the bag.  Real-life application: H A predicts a difference in disorder severity between group that got new therapy and group that got placebo.

18 Hypothesis Testing Example Lecture 5  Which hypothesis is true (H O or H A )?  You do an experiment:  you randomly select 10 marbles one at a time, with replacement, and record X = the # of blue marbles.  You have a decision rule:  You decide that if 7 or more of the 10 marbles are blue, you will conclude that H A is true.

19 Hypothesis Testing Example Lecture 5  Again, note this decision rule:  You decide that if 7 or more of the 10 marbles are blue, you will conclude that H A is true.  That is, if X ≥ 7, you conclude that H A is true.  Our conclusion depends upon a number (an observation).

20 Hypothesis Testing Example Lecture 5 a. Suppose that H O is true. What is the probability that you WRONGLY conclude that H A is true?  H O : P(Blue) =.5  H A : P(Blue) >.5 (note: sometimes we specify H A )  What is P(X ≥ 7 │ P(Blue) =.5)? (What is X?)  We call that value α (“Alpha”) – the probability of falsely rejecting H O.

21 Hypothesis Testing Example Lecture 5  Notice what we’re doing here. Suppose that – unbeknownst to us – H O is true.  We take 10 marbles out of the bag. Even though red and blue marbles are equal in number, we might by bad luck get more blue ones than red ones. We might even get 7 or more blue ones. What is the probability that we do that?

22 Hypothesis Testing Example Lecture 5  P ( X ≥ 7 │ P(Blue)=.5 ) = 1 – P(X ≤ 6)  = (from Table)  =.172

23 Hypothesis Testing Example Lecture 5  A bag contains 100 marbles. Each marble is either red or blue. One of two conditions exists with respect to the numbers of red and blue marbles.  H O : There are equal numbers of red & blue marbles  H A : 60% of the marbles are blue.

24 Hypothesis Testing Example Lecture 5  b. If, in fact, H A is true, what is the probability that you WRONGLY conclude that H O is true?  This value is called β (“Beta”)  β is the probability that you fail to reject H O when you should in fact reject it.  You will reject H O if fewer than 7 of the 10 marbles taken from the bag are blue.  P ( X ≤ 6 │ P(Blue)=.6 )=.618 (from Table) Why is p =.6 here?

25 BRV – Example 3 Lecture 5  Records for the last 5 years at UWO show that only 20% of students taking an Honors degree in Psychology fail to get a full time job within 6 months of graduating. a) I send out a survey to 4 randomly selected Honors Psychology graduates from last year. What is the probability that all are employed full time? b) In a random sample of 15 previous graduates, what is the probability that more than 5 are not employed full time?

26 BRV – Example 3 Lecture 5 a. n and x are small, so use Expansion Formula  n = 4 and x = 4, so:  4! (.8) 4 (2) 0 =.4096  4! 0! 

27 BRV – Example 3 Lecture 5  b. Here, n = 15, and the question is, what is the probability that X > 5? P(X > 5) = P(X ≥ 6) = 1- P(X ≤ 5)  We’re told that p =.20 We remember that Table II gives cumulative probabilities, so…  P(X > 5)= (from Table II)  =.061

28 BRV – Example 4 Lecture 5  There’s a new game in Las Vegas in which a customer is handed a fair coin and allowed to flip it 25 times. If she gets 15 or more heads, she wins. You are hired by the Las Vegas Police to check out this game.  You watch the game in the morning. Only 8 people played, and they all lost. What is the probability that this happened by chance?

29 BRV – Example 4 Lecture 5  In answering this question, keep in mind the following distinctions: A. 1 flip of the coin B. 1 play of the game (= 1 experiment) C. How you win when you play this game

Lecture 5 One flip of the coin 25 flips = 1 play (1 trial of the experiment) 8 people play the game once each

31 BRV – Example 4 Lecture 5  To answer this question, we need: 1. The probability of getting heads when you flip the coin once. 2. The probability of one person getting 14 or fewer heads when they flip the coin 25 times (and thus losing). 3. The probability that 8 out of 8 people get 14 or fewer heads when they each flip the coin 25 times.

32 BRV – Example 4 Lecture 5  1. P(Heads) on any flip =.5 (if coin is fair).  2. With 25 flips, from Table II, P(X ≤ 14) = P(losing game) =.788  Therefore, P(losing) for any one person is.788

33 What is p that 8 out of 8 players lose? Lecture 5  What is the probability that 8 out of 8 customers lose? (We define “success” as losing here.)  P(X = 8) = ( ) ( ) ( ) =.1487  So, you might be suspicious that the game is fixed – because it’s very unlikely that 8 out of 8 players would lose. (Not impossible, but unlikely). 8 8 What’s this? Why 0?

Lecture 5 P(Heads) =.5 P(losing) =.788 P(8 out 8 people lose) =.1487