Last Time Administrative Matters – Blackboard … Random Variables –Abstract concept Probability distribution Function –Summarizes probability structure.

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

M15- Binomial Distribution 1  Department of ISM, University of Alabama, Lesson Objectives  Learn when to use the Binomial distribution.  Learn.
Lecture (7) Random Variables and Distribution Functions.
1 Some more probability Samuel Marateck © Another way of calculating card probabilities. What’s the probability of choosing a hand of cards with.
CHAPTER 13: Binomial Distributions
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Problems Problems 4.17, 4.36, 4.40, (TRY: 4.43). 4. Random Variables A random variable is a way of recording a quantitative variable of a random experiment.
Stat 155, Section 2, Last Time Producing Data: How to Sample? –Placebos –Double Blind Experiment –Random Sampling Statistical Inference –Population “parameters”,,
The Binomial Distribution. In Statistics we often talk about trials. e.g. A seed is sown and the flower is either yellow or not yellow. We mean an experiment,
1 Binomial Probability Distribution Here we study a special discrete PD (PD will stand for Probability Distribution) known as the Binomial PD.
1 Binomial Probability Distribution Here we study a special discrete PD (PD will stand for Probability Distribution) known as the Binomial PD.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Chapter 5 Discrete Probability Distributions
Binomial & Geometric Random Variables
“Teach A Level Maths” Statistics 1
Discrete Random Variables: The Binomial Distribution
Discrete and Continuous Probability Distributions.
Binomial Probability Distribution.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Discrete Distributions Chapter 5.
Binomial Distribution. Recall that for a binomial distribution, we must have: Two possible outcomes, called success and failure Constant probability Independent.
Problem A newly married couple plans to have four children and would like to have three girls and a boy. What are the chances (probability) their desire.
Discrete Probability Distributions
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Copyright © Cengage Learning. All rights reserved. 5 Probability Distributions (Discrete Variables)
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Statistics Lesson: ST-5 The Binomial Distribution The Binomial Distribution Learning Outcome.
Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics Statistics & Econometrics.
5.5 Distributions for Counts  Binomial Distributions for Sample Counts  Finding Binomial Probabilities  Binomial Mean and Standard Deviation  Binomial.
Chapter 11 Data Descriptions and Probability Distributions
Statistics and Modelling Course Probability Distributions (cont.) Achievement Standard Solve Probability Distribution Models to solve straightforward.
AP Statistics: Section 8.2 Geometric Probability.
1 Chapter 5 Sampling Distributions. 2 The Distribution of a Sample Statistic Examples  Take random sample of students and compute average GPA in sample.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
A Challenging Example Male Pelvis –Bladder – Prostate – Rectum.
Bernoulli Trials Two Possible Outcomes –Success, with probability p –Failure, with probability q = 1  p Trials are independent.
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.
CHAPTER Discrete Models  G eneral distributions  C lassical: Binomial, Poisson, etc Continuous Models  G eneral distributions 
Binomial Formulas Target Goal: I can calculate the mean and standard deviation of a binomial function. 6.3b h.w: pg 404: 75, 77,
You are familiar with the term “average”, as in arithmetical average of a set of numbers (test scores for example) – we used the symbol to stand for this.
Binomial Probability Distribution
Chapter 4. Discrete Random Variables A random variable is a way of recording a quantitative variable of a random experiment. A variable which can take.
Stat 155, Section 2, Last Time Binomial Distribution –Normal Approximation –Continuity Correction –Proportions (different scale from “counts”) Distribution.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
Stat 155, Section 2, Last Time Interpreted Midterm Results Variance of Random Variables –From Probability Table –Properties: Ignores shift Multiples comes.
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Statistics Lesson: ST-5 The Binomial Distribution The Binomial Distribution Learning Outcome.
Object Orie’d Data Analysis, Last Time SiZer Analysis –Zooming version, -- Dependent version –Mass flux data, -- Cell cycle data Image Analysis –1 st Generation.
Sample Means & Proportions
At the end of the lesson, students can: Recognize and describe the 4 attributes of a binomial distribution. Use binompdf and binomcdf commands Determine.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 6 Random Variables 6.3 Binomial and Geometric.
Administrative Matters Midterm II Results Take max of two midterm scores:
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Stat 31, Section 1, Last Time Big Rules of Probability –The not rule –The or rule –The and rule P{A & B} = P{A|B}P{B} = P{B|A}P{A} Bayes Rule (turn around.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
A statistic from a random sample or randomized experiment is a random variable. The probability distribution of this random variable is called its sampling.
Binomial Distribution. First we review Bernoulli trials--these trial all have three characteristics in common. There must be: Two possible outcomes, called.
Section 6.3 Day 1 Binomial Distributions. A Gaggle of Girls Let’s use simulation to find the probability that a couple who has three children has all.
+ Binomial and Geometric Random Variables Textbook Section 6.3.
Starter - Combinations Once the first digit has been decided upon, how many options are there left for the second digit?
INTRODUCTION TO ECONOMIC STATISTICS Topic 5 Discrete Random Variables These slides are copyright © 2010 by Tavis Barr. This work is licensed under a Creative.
6.3 Binomial and Geometric Random Variables
Last Time Proportions Continuous Random Variables Probabilities
Lesson Objectives At the end of the lesson, students can:
A Useful Probability Model: Binomial Random Variables
LESSON 9: BINOMIAL DISTRIBUTION
Random Variables Binomial Distributions
Binomial Distributions
Presentation transcript:

Last Time Administrative Matters – Blackboard … Random Variables –Abstract concept Probability distribution Function –Summarizes probability structure –Sum to get any prob. Binomial Distribution

Reading In Textbook Approximate Reading for Today’s Material: Pages , , Approximate Reading for Next Class: Pages , ,

Binomial Distribution Setting: n independent trials of an experiment with outcomes “Success” and “Failure”, with P{S} = p.

Binomial Distribution Setting: n independent trials of an experiment with outcomes “Success” and “Failure”, with P{S} = p. Say X = #S’s has a “Binomial(n,p) distribution”, and write “X ~ Bi(n,p)”

Binomial Distribution Setting: n independent trials of an experiment with outcomes “Success” and “Failure”, with P{S} = p. Say X = #S’s has a “Binomial(n,p) distribution”, and write “X ~ Bi(n,p)” Called “parameters” (really a family of distrib’ns, indexed by n & p)

Binomial Distribution E.g. Sampling with replacement “Experiment” is “draw a sample member” “S” is “vote for Candidate A” “p” is proportion in population for A (note unknown, and goal of poll) Independent? (since with replacement)

Binomial Distribution E.g. Sampling with replacement “Experiment” is “draw a sample member” “S” is “vote for Candidate A” “p” is proportion in population for A (note unknown, and goal of poll) Independent? (since with replacement) X = #(for A) has a Binomial(n,p) dist’n

Binomial Distribution E.g. Sampling without replacement Draws are dependent Result of 1 st draw changes probs of 2 nd draw P(S) on 2 nd draw is no longer p (again depends on 1 st draw) X = #(for A) is NOT Binomial

Binomial Distribution E.g. Sampling without replacement Draws are dependent Result of 1 st draw changes probs of 2 nd draw P(S) on 2 nd draw is no longer p (again depends on 1 st draw) X = #(for A) is NOT Binomial (although approximately true for large pop’n)

Binomial Distribution Models much more than political polls: E.g. Coin tossing (recall saw “independence” was good) E.g. Shooting free throws (in basketball) Is p always the same? Really independent? (turns out to be OK)

Binomial Prob. Dist’n Func. Summarize all prob’s for X ~ Bi(n,p)

Binomial Prob. Dist’n Func. Summarize all prob’s for X ~ Bi(n,p) By function:

Binomial Prob. Dist’n Func. Summarize all prob’s for X ~ Bi(n,p) By function: Recall: Sum over this for any prob. about X

Binomial Prob. Dist’n Func. Summarize all prob’s for X ~ Bi(n,p) By function: Recall: Sum over this for any prob. about X Avoids doing complicated calculation each time want a prob.

Binomial Prob. Dist’n Func. Repeat “experiment” (S or F) n times

Binomial Prob. Dist’n Func. Repeat “experiment” (S or F) n times Outcomes “Success” or “Failure”

Binomial Prob. Dist’n Func. Repeat “experiment” (S or F) n times Outcomes “Success” or “Failure” Independent repetitions Let X = # of S’s (count S’s)

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = Desired probability distribution function

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = Depends on particular draws, So expand in those terms, and use Big Rules of Probability

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] For “S on 1 st draw”, “S on x-th draw”, …

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] For “S on 1 st draw”, “S on x-th draw”, … One possible ordering of S,…,S,F,…,F where:x of these n-x of these

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] For “S on 1 st draw”, “S on x-th draw”, … One possible ordering of S,…,S,F,…,F This includes all other orderings (very many, but we can think of them)

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] Next decompose with and – or – not Rules of Probability

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … Disjoint OR rule [“or”  add]

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … Disjoint OR rule [“or”  add] (recall “no overlap”)

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … = P(S 1 )…P(S x )P(F x+1 )…P(F n ) + … Independent AND rule [“and”  mult.]

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … = P(S 1 )…P(S x )P(F x+1 )…P(F n ) + … = since p = P[S] since (1-p) = P[F]

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … = P(S 1 )…P(S x )P(F x+1 )…P(F n ) + … = since x = #S’s since (n-x) = #F’s

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = P[(S 1 &…&S x &F x+1 &…&F n ) or …] = = P[(S 1 &…&S x &F x+1 &…&F n )] + … = P(S 1 )…P(S x )P(F x+1 )…P(F n ) + … = = #(terms) since all of these are the same, just count

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) # ways to order S …S F …F

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) # ways to order S …S F …F Approach: have “n slots”

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) # ways to order S …S F …F Approach: have “n slots” “choose x of them to in which to put S”

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) # ways to order S …S F …F Approach: have “n slots” “choose x of them to in which to put S” thus have #(terms) =

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) = general formula that works for all n, p, x

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s P[X = x] = #(terms) = Binomial Probability Distribution Function (for any n and p)

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s More complete representation

Binomial Prob. Dist’n Func. Repeat (S or F) n times (ind.), let X = # of S’s More complete representation But generally assume is understood, & write

Binomial Prob. Dist’n Func. Application of: For X ~ Bi(n,p) Compute any probability for X By summing over appropriate values

Application of Bi. Pro. Dist. Fun. Application of: E.g.: A system fails if any 3 of 5 independent components fail

Application of Bi. Pro. Dist. Fun. Application of: E.g.: A system fails if any 3 of 5 independent components fail Common setup in Reliability Theory

Application of Bi. Pro. Dist. Fun. Application of: E.g.: A system fails if any 3 of 5 independent components fail Common setup in Reliability Theory Used when things “really need to work” E.g. aircraft components

Application of Bi. Pro. Dist. Fun. Application of: E.g.: A system fails if any 3 of 5 independent components fail If each component works 99% of time,

Application of Bi. Pro. Dist. Fun. Application of: E.g.: A system fails if any 3 of 5 independent components fail If each component works 99% of time, how likely is the system to break down?

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down?

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01) Recall n = # of trials (repeats of experim’t)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01) Components assumed independent

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01) Recall p = P(“S”), on each trial (works 99%, so fails 1%)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01) Note S can in fact be “Failure of comp’t” (opposite of usual intuition)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? Let X = #F’s, model X ~ Bi(5,0.01) Note S can in fact be “Failure of comp’t” (it is just one outcome of exp’t)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? P[system breaks down] = P[X ≥ 3] recall X~Bi(5,0.01) counts failures

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? P[system breaks down] = P[X ≥ 3] = (sum of prob. dist. func. over x ≥ 3)

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? P[system breaks down] = P[X ≥ 3] =

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? P[system breaks down] = P[X ≥ 3] =

Application of Bi. Pro. Dist. Fun. Application of: E.g.: Sys. F if 3 of 5 F, each works 99% time, how likely is the system to break down? P[system breaks down] = P[X ≥ 3] = Shows: great reliability

Application of Bi. Pro. Dist. Fun. HW: C 12: A factory makes 10% defective items & items are independently defective. (maybe not great assumption, because many causes of defects will give string of defects)

Application of Bi. Pro. Dist. Fun. HW: C 12: A factory makes 10% defective items & items are independently defective. (maybe not great assumption, because many causes of defects will give string of defects) (but can call this an “approximate model”)

Application of Bi. Pro. Dist. Fun. HW: C 12: A factory makes 10% defective items & items are independently defective. Find P{9 or more good items in 10} a.Using X = # good items, and Binomial probability distribution function. (0.736) (Hint: consider “not” rule)

Application of Bi. Pro. Dist. Fun. HW: C 12: A factory makes 10% defective items & items are independently defective. Find P{9 or more good items in 10} a.Using X = # good items, and Binomial probability distribution function. (0.736) b.Using X = # bad items, and Binomial probability distribution function. (0.736)

Application of Bi. Pro. Dist. Fun. HW: C 12: A factory makes 10% defective items & items are independently defective. Find P{9 or more good items in 10} a.Using X = # good items, and Binomial probability distribution function. (0.736) b.Using X = # bad items, and Binomial probability distribution function. (0.736) Note: will soon see easier way to do this, but please use Bi. P. D. F. here

Research Corner Medical Imaging – A Challenging Example

Research Corner Medical Imaging – A Challenging Example Male Pelvis Bladder – Prostate – Rectum

Research Corner Medical Imaging – A Challenging Example Male Pelvis Bladder – Prostate – Rectum How do they move over time (days)? Critical to Radiation Treatment (e.g. Prostate Cancer)

Research Corner Medical Imaging – A Challenging Example Male Pelvis Bladder – Prostate – Rectum How do they move over time (days)? Critical to Radiation Treatment Work with 3-d CT (“Computed Tomography”) (3d version of Xray)

Research Corner Medical Imaging – A Challenging Example Male Pelvis Bladder – Prostate – Rectum How do they move over time (days)? Critical to Radiation Treatment Wo Work with 3-d CT Very Challenging to “Segment” Find boundary of each object? Represent each Object?

Research Corner Medical Imaging – A Challenging Example Male Pelvis Bladder – Prostate – Rectum How do they move over time (days)? Critical to Radiation Treatment Wo Work with 3-d CT Very Challenging to “Segment” Find boundary of each object? Represent each Object?

Male Pelvis – Raw Data One CT Slice (in 3d image) Coccyx (Tail Bone) Rectum Bladder

Male Pelvis – Raw Data Bladder: manual segmenta tion Slice by slice Reassembled

Male Pelvis – Raw Data Bladder: Slices: Reassembled in 3d How to represent? Thanks: Ja-Yeon Jeong

3-d m-reps Bladder – Prostate – Rectum (multiple objects, J. Y. Jeong) Medial Atoms provide “skeleton” Implied Boundary from “spokes”  “surface”

Research Corner How to understand “population level variation”?

Research Corner How to understand “population level variation”? Approach: Principal Geodesic Analysis Focus on “modes of variation”Focus on “modes of variation”

Research Corner How to understand “population level variation”? Approach: Principal Geodesic Analysis Focus on “modes of variation”Focus on “modes of variation” Ordered by “magnitude of variation”Ordered by “magnitude of variation”

Research Corner How to understand “population level variation”? Approach: Principal Geodesic Analysis Focus on “modes of variation”Focus on “modes of variation” Ordered by “magnitude of variation”Ordered by “magnitude of variation” Need to “independent of each other”Need to “independent of each other”

Research Corner How to understand “population level variation”? Approach: Principal Geodesic Analysis Focus on “modes of variation”Focus on “modes of variation” Ordered by “magnitude of variation”Ordered by “magnitude of variation” Need to “independent of each other”Need to “independent of each other” (question for us: how to quantify?)

PGA for m-reps, Bladder- Prostate-Rectum Bladder – Prostate – Rectum, 1 person, 17 days PG 1 PG 2 PG 3 (analysis by Ja Yeon Jeong)

PGA for m-reps, Bladder- Prostate-Rectum Bladder – Prostate – Rectum, 1 person, 17 days PG 1 PG 2 PG 3 (analysis by Ja Yeon Jeong)

PGA for m-reps, Bladder- Prostate-Rectum Bladder – Prostate – Rectum, 1 person, 17 days PG 1 PG 2 PG 3 (analysis by Ja Yeon Jeong)

Binomial Distribution Useful in many applications

Binomial Distribution Useful in many applications Have powerful method of calculation Use Binomial probability dist’n function & sum over needed values

Binomial Distribution Useful in many applications Have powerful method of calculation But a little painful to calculate formula is involved (not easy hand calculation) maybe very many terms (e.g. political polls)

Binomial Distribution Useful in many applications Have powerful method of calculation But a little painful to calculate How about summaries?

Binomial Distribution Useful in many applications Have powerful method of calculation But a little painful to calculate How about summaries? Old Approach: Tables

Binomial Distribution Old Approach: Tables Idea: somebody else calculates “many Binomial probabilities”, and stores results you can look up:

Binomial Distribution Old Approach: Tables In our Text: Table C

Binomial Distribution Old Approach: Tables In our Text: Table C Note: Indexed by n p (recall Binomial is indexed family of dist’ns)

Binomial Distribution Old Approach: Tables In our Text: Table C Note: Indexed by n p and can input k (x) values then read off P[X≤k]

Historical Note Tables were constructed well before modern computers (1910s – 1930s)

Historical Note Tables were constructed well before modern computers (1910s – 1930s) How was it done?

Historical Note Tables were constructed well before modern computers (1910s – 1930s) How was it done? Main Tool: mechanical calculator (hand powered) (did repeated addition)

Historical Note What was a “computer” in the early 1900s?

Historical Note What was a “computer” in the early 1900s? (the term did exist!)

Historical Note What was a “computer” in the early 1900s? (the term did exist!) A (human) job title!

Historical Note What was a “computer” in the early 1900s? (the term did exist!) A (human) job title! Tables made by (carefully organized) rooms full of people, all using mechanical hand calculators

Historical Note What was a “computer” in the early 1900s? (the term did exist!) A (human) job title! Tables made by (carefully organized) rooms full of people, all using mechanical hand calculators Deep math was used for allocating resources

Binomial Distribution Useful in many applications Have powerful method of calculation But a little painful to calculate How about summaries? Modern Approach: Computers (electronic)

Binomial Distribution Useful in many applications Have powerful method of calculation But a little painful to calculate How about summaries? Modern Approach: Computers In Excel: BINOMDIST function

Binomial Distribution Excel function: BINOMDIST

Binomial Distribution Excel function: BINOMDIST Access methods:

Binomial Distribution Excel function: BINOMDIST Access methods: Generally in Excel: Many ways to access things

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar –Click f x button

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar –Click f x button –Pulls up function menu

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar –Click f x button –Pulls up function menu –Choose “statistical”

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar –Click f x button –Pulls up function menu –Choose “statistical” –And BINOMDIST

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar –Click f x button –Pulls up function menu –Choose “statistical” –And BINOMDIST –Gives BINOMDIST menu

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar 2.Formula Tab

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar 2.Formula Tab –More Functions

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar 2.Formula Tab –More Functions –Statistical

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar 2.Formula Tab –More Functions –Statistical –BINOMDIST

Binomial Distribution Excel function: BINOMDIST Access methods: 1.Tool bar 2.Formula Tab –More Functions –Statistical –BINOMDIST Gets to same menu (as above)

Binomial Distribution Excel function: BINOMDIST Try these out, Class Example 2:

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p):

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): Caution: Completely different notation

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): x

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): x n

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): x n p

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): Cumulative: P{X=x}: false

Binomial Probs in EXCEL To compute P{X=x}, for X ~ Bi(n,p): Cumulative: P{X=x}: false P{X<=x}: true (will illustrate soon)

Binomial Distribution Excel function: BINOMDIST Now check out specific problems, Class Example 2:

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads:

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads: (a)"prob. of a Head" = = P{X = 1}

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads: (a)"prob. of a Head" = = P{X = 1} =

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads: (a)"prob. of a Head" = = P{X = 1} = = 0.5

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads: (a)"prob. of a Head" = P{X = 1} = 0.5 Note: could also just type formula in:

Binomial Distribution Class Example 2.1: For X ~ Bi(1,0.5), i.e. toss a fair coin once, count the number of Heads: (a)"prob. of a Tail" = = P{X = 0} = = 0.5

Binomial Distribution Class Example 2.2: For X ~ Bi(2,0.5), i.e. toss a fair coin twice, count the number of Heads:

Binomial Distribution Class Example 2.2: For X ~ Bi(2,0.5), i.e. toss a fair coin twice, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} =

Binomial Distribution Class Example 2.2: For X ~ Bi(2,0.5), i.e. toss a fair coin twice, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} =

Binomial Distribution Class Example 2.2: For X ~ Bi(2,0.5), i.e. toss a fair coin twice, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} = = P{T 1 and T 2 } = P{T 1 }*P{T 2 } = 0.25

Binomial Distribution Class Example 2.2: For X ~ Bi(2,0.5), i.e. toss a fair coin twice, count the number of Heads: (b) "prob. of one Head" = = P{X = 1} = (harder calculation)

Binomial Distribution Class Example 2.3: For X ~ Bi(2,0.3), i.e. toss an unbalanced coin twice, count the number of Heads:

Binomial Distribution Class Example 2.3: For X ~ Bi(2,0.3), i.e. toss an unbalanced coin twice, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} = = P{T 1 and T 2 } = = P{T 1 }*P{T 2 } = 0.49

Binomial Distribution Class Example 2.3: For X ~ Bi(2,0.3), i.e. toss an unbalanced coin twice, count the number of Heads: (b) "prob. of one Head" = = P{X = 1} =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads:

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} = =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (a)"prob. of no Heads" = = P{X = 0} = = Check: 0.7^20 =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (c) "prob. of six Heads" = = P{X = 6} =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6}

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add them up

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add them up =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add, =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add, = Solution 2: Use Cumulative

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add, = Solution 2: Use Cumulative

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3), i.e. toss an unbalanced coin 20 times, count the number of Heads: (d) "prob. of at most 6 Heads" = = P{X ≤ 6} Solution 1: Add, = Solution 2: Use Cumulative Same answer

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6}

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} Caution: cumulative works "other way", so need to put in Excel usable form

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} = = 1 - P{not X ≥ 6} =

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} = = 1 - P{not X ≥ 6} = = 1 - P{X < 6}

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} = = 1 - P{not X ≥ 6} = = 1 - P{X < 6} = 1 - P{X ≤ 5} (since counting numbers)

Binomial Distribution Class Example 2.4: For X ~ Bi(20,0.3) : (e)"prob. of at least 6 Heads" = P{X ≥ 6} = = 1 - P{not X ≥ 6} = = 1 - P{X < 6} = 1 - P{X ≤ 5} Now use BINOMDIST & Cumulative = true