SlideShare a Scribd company logo
1 of 27
Discrete Random Variables:
The Binomial Distribution
Bernoulli’s trials
 J. Bernoulli (1654-1705) analyzed the idea
of repeated independent trials for discrete
random variables that had two possible
outcomes: success or failure
 In his notation he wrote that the probability
of success is denoted by p and the
probability of failure is denoted by q or 1-p
Binomial distribution
 The binomial distribution is just n
independent individual (Bernoulli) trials
added up.
 It is the number of “successes” in n trials.
 The sum of the probabilities of all the
independent trials totals 1.
 We can define a ‘success’ as a ‘1’, and a
failure as a ‘0’.
Binomial distribution
 “x” is a binomial distribution if its probability function is:
 Examples (note – success/failure could be switched!):



−
=
p
p
x
10
1 probability
of success
probability
of failure
Situation x=1
(success)
x=0
(failure)
Coin toss to get
heads
Turns up heads Turns up tails
Rolling dice to get 1 Lands on 1 Lands on anything
but 1
While testing a
product, how many
are found defective
Product is defective Product is not
defective
Binomial distribution
 The binomial distribution is just n
independent ‘Bernoulli trials’ added up
It requires that the trials be done “with
replacement” ex. testing bulbs for defects:
•Let’s say you make many light bulbs
•Pick one at random, test for defect, put it back
•Repeat several times
•If there are many light bulbs, you do not have to
replace (it won’t make a significant difference)
•The result will be the binomial probability of a
defective bulb (#defective total sample).÷
Binomial distribution - formula
 Let’s figure out a binomial random
variable’s probability function or formula
 Suppose we are looking at a binomial with
n=3 (ex. 3 coin flips; ‘heads’ is a ‘success’)
 We will start with ‘all tails’ P(x=0):
Can happen only one way: 000
Which is: (1-p)(1-p)(1-p)
Simplified: (1-p)3
Binomial distribution - formula
 Let’s figure out a binomial probability
function (for n = 3)
 This time we want 1 success plus 2
failures (ex. 1 heads + 2 tails, or P(x=1)):
 This can happen three ways: 100, 010, 001
 Which is: p(1-p)(1-p)+(1-p)p(1-p)+(1-p)(1-p)p
 Simplified: 3p(1-p)2
Binomial distribution - formula
 Let’s figure out a binomial probability
function (for n = 3)
 We want 2 ‘successes’ P(x=2):
 Can happen three ways: 110, 011, 101, or…
 pp(1-p)+(1-p)pp+p(1-p)p, which simplifies to..
 3p2
(1-p)
Binomial distribution - formula
 Let’s figure out a binomial probability
function (n = 3)
 We want all 3 ‘successes’ P(x=3):
 This can happen only one way: 111
 Which we represent as: ppp
 Which simplifies to: p3
Binomial distribution - formula
 Let’s figure out a binomial probability
function – in summary, for n = 3, we have:
P(x)
(Where x is the number of successes; ex. # of heads)
( )
( )
( )







−
−
−
=
3
2
2
3
3
132
131
10
p
pp
pp
p
x
The sum of these
expressions is the
binomial distribution
for n=3. The resulting
equation is an
example of the
Binomial Theorem.
Binomial distribution - formula
 A quick review of the Binomial Theorem:
 If we use q for (1 – p), then…
 p3
+ 3p2
q +3pq2
+ q3
= (p + q)3
 which is an example of the formula:
(a + b)n
= ____________________
(if you forget it, check it in your text)
Binomial distribution - formula
 Let’s figure out a binomial r.v.’s probability
function (the quick way to compute the
sum of the terms on the previous slide) -
now here’s the formula…
In general, for a binomial:
( ) ( ) ( ) xnx
ppxP
−
−= 1nscombinatioof#
(the # of x successes with probability p in n trials)
Binomial distribution - formula
 Which can be written as:
( )
( )
( ) xnx
pp
xnx
n
xP
−
−
−
= 1
!!
!
or P(x) = nCx px
(1 – p)n-x
 This formula is often called the general
term of the binomial distribution.
Expected Value
 The expected value of a binomial distribu-
tion equals the probability of success (p)
for n trials:
( ) npXE =
 E(X) also equals the sum of the
probabilities in the binomial distribution.
Binomial distribution - Graph
 Typical shape of a binomial distribution:
Symmetric, with total P(x) = 1
x
P
Note: this is a
theoretical graph
– how would an
experimental one
be different?
Binomial distribution - example
 A realtor claims that he ‘closes the deal’
on a house sale 40% of the time.
 This month, he closed 1 out of 10 deals.
 How likely is his claim of 40% if he only
completed 1/10 of his deals this month?
Binomial distribution - example
 By using the binomial distribution function,
it’s possible to check if his assessment of
his abilities (i.e. 40% ‘closes’) is likely:
( )
( )
( ) ( ) ( )( )
( )
( )
( )( ) ( )( )
( )
( )
( ) ( ) ( )( )( )
( )( )
( )( ) 251.00467.00256.0
234
78910
6.04.0
!6!4
!10
4
040.0010.04.0106.04.0
!9!1
!10
1
006.0006.0116.04.0
!10!0
!10
0
64
9
100
===
===
===
P
P
PP(0 deals)=
Binomial distribution - example
 So it seems pretty unlikely that his assess-
ment of his abilities is right:
The probability of closing 1 or fewer
deals out of 10 if (as he claims) he
closes deals 40% of the time is less
than 5% or less than 1/20.
 What % of ‘closes’ do you think would
have the highest probability in this
distribution, if his claim was right?
Binomial distribution - example
 Now see if you can determine the
expected number of closings if he had 12
deals this month, assuming 40% success.
 We need the values of n (= ___) and
of p (= ____).
 E(X) = np = ______ - this means that we
would expect him to close about _____
deals, if his claim is correct. [End of first example.]
Binomial Distribution – ex. 2
 Alex Rios has a batting average of 0.310
for the season. In last night’s game, he
had 4 at bats. What are the chances he
had 2 hits?
 You try this one! First ask 3 questions…
Binomial Distribution – ex. 2
 Is each time at bat an independent event?
 Is ‘getting a hit’ a discrete random variable?
 Is this a Bernoulli trial? How would you
define a “success” and a “failure”?
 If you can answer ‘yes’ to the three
questions above, then you can use the
binomial distribution formula to answer
the problem.
Binomial Distribution – ex. 2
 First determine the following values:
The number of trials (Alex is at bat __ times) –
this is the value of n
The probability of success (Alex’s average is
___) – this is p
The probability of ‘failure’: 1 – p = ___
The # of successes asked for (his chances of
getting ___ hits) – this is x
 Now you can use the formula:
Binomial Distribution – ex. 2
( )
( )
( ) xnx
pp
xnx
n
xP
−
−
−
= 1
!!
!
 Put in the values from the previous
screen, and discuss your answers. [pause here]
 Did you get P(2) = 0.275?
 Is 2 the most likely number of hits
for Alex last night? How about 1 or 3?
 P(0 or 1 or 2 or 3 or 4 hits) = _____?
Hypergeometric distribution
 What happens if you have a situation in
which the trials are not independent (this
most often happens due to not replacing a
selected item).
 Each trial must result in success or failure,
but the probability of success changes
with each trial.
Hypergeometric distribution
 Consider taking a sample from a
population, and testing each member of
the sample for defects.
 Do this sampling without replacement.
 As long as the sample is small compared
to the population, this is close to binomial.
 But if the sample is large compared to the
population, this is a hypergeometric dist.
Hypergeometric dist. - formula
 A hypergeometric distribution differs from
binomial ones since it has dependent
trials.
 Probability of x successes in r dependent
trials, with number of successes a out of
a total of n possible outcomes:
rn
xranx
C
CC
xP
−−×
=
a
)(
Hypergeometric dist. - formula
 Expected Value – the average probability of a
success is the ratio of success overall (a/n)
times r trials:
( )
n
ra
XE =
( )
( )
( )
( ) ( )
( ) 





−






+−−−
−






−
=
!!
!
!!
!
!!
!
rnr
n
xranxn
an
xax
a
xP
 The full version of this formula is:

More Related Content

What's hot

Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsBabasab Patil
 
Hypergeometric Distribution
Hypergeometric DistributionHypergeometric Distribution
Hypergeometric Distributionmathscontent
 
Central limit theorem
Central limit theoremCentral limit theorem
Central limit theoremNadeem Uddin
 
Poisson Distribution
Poisson DistributionPoisson Distribution
Poisson DistributionHuda Seyam
 
Poisson probability distribution
Poisson probability distributionPoisson probability distribution
Poisson probability distributionNadeem Uddin
 
Poisson distribution
Poisson distributionPoisson distribution
Poisson distributionStudent
 
Poisson Distribution
Poisson Distribution Poisson Distribution
Poisson Distribution ali khan
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distributionNadeem Uddin
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation Remyagharishs
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distributionnumanmunir01
 
Probability Distribution
Probability DistributionProbability Distribution
Probability DistributionSagar Khairnar
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statisticsRabea Jamal
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' TheoremLong Beach City College
 
Probability Distribution
Probability DistributionProbability Distribution
Probability DistributionSarabjeet Kaur
 
APPLICATION OF POISSON DISTRIBUTION
APPLICATION OF POISSON DISTRIBUTIONAPPLICATION OF POISSON DISTRIBUTION
APPLICATION OF POISSON DISTRIBUTIONfurqi1
 

What's hot (20)

Box and Whisker Plot in Biostatic
Box and Whisker Plot in BiostaticBox and Whisker Plot in Biostatic
Box and Whisker Plot in Biostatic
 
Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec doms
 
Hypergeometric Distribution
Hypergeometric DistributionHypergeometric Distribution
Hypergeometric Distribution
 
Measures of dispersions
Measures of dispersionsMeasures of dispersions
Measures of dispersions
 
Central limit theorem
Central limit theoremCentral limit theorem
Central limit theorem
 
Poisson Distribution
Poisson DistributionPoisson Distribution
Poisson Distribution
 
Poisson probability distribution
Poisson probability distributionPoisson probability distribution
Poisson probability distribution
 
Statistics & probability
Statistics & probabilityStatistics & probability
Statistics & probability
 
The Central Limit Theorem
The Central Limit TheoremThe Central Limit Theorem
The Central Limit Theorem
 
Poisson distribution
Poisson distributionPoisson distribution
Poisson distribution
 
Poisson Distribution
Poisson Distribution Poisson Distribution
Poisson Distribution
 
Bernoulli distribution
Bernoulli distributionBernoulli distribution
Bernoulli distribution
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distribution
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
APPLICATION OF POISSON DISTRIBUTION
APPLICATION OF POISSON DISTRIBUTIONAPPLICATION OF POISSON DISTRIBUTION
APPLICATION OF POISSON DISTRIBUTION
 

Similar to 1630 the binomial distribution

Probability distribution for Dummies
Probability distribution for DummiesProbability distribution for Dummies
Probability distribution for DummiesBalaji P
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsRai University
 
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Daniel Katz
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Vijay Hemmadi
 
Principles of Actuarial Science Chapter 2
Principles of Actuarial Science Chapter 2Principles of Actuarial Science Chapter 2
Principles of Actuarial Science Chapter 2ssuser8226b2
 
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionQ Dauh Q Alam
 
Discrete probability distributions
Discrete probability distributionsDiscrete probability distributions
Discrete probability distributionsNadeem Uddin
 
binomialprobabilitydistribution-200508182110 (1).pdf
binomialprobabilitydistribution-200508182110 (1).pdfbinomialprobabilitydistribution-200508182110 (1).pdf
binomialprobabilitydistribution-200508182110 (1).pdfHafizsamiullah1791
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.WeihanKhor2
 
Moment generating function & bernoulli experiment
Moment generating function & bernoulli experimentMoment generating function & bernoulli experiment
Moment generating function & bernoulli experimentGhanashyam Prajapati
 
Probability distribution 2
Probability distribution 2Probability distribution 2
Probability distribution 2Nilanjan Bhaumik
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionDataminingTools Inc
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial Distributionmathscontent
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributionsmandalina landy
 
Probability distribution
Probability distributionProbability distribution
Probability distributionRanjan Kumar
 

Similar to 1630 the binomial distribution (20)

Prob distros
Prob distrosProb distros
Prob distros
 
Probability distribution for Dummies
Probability distribution for DummiesProbability distribution for Dummies
Probability distribution for Dummies
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
 
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis
 
Binomia ex 2
Binomia ex 2Binomia ex 2
Binomia ex 2
 
Binomial probability distributions
Binomial probability distributions  Binomial probability distributions
Binomial probability distributions
 
Principles of Actuarial Science Chapter 2
Principles of Actuarial Science Chapter 2Principles of Actuarial Science Chapter 2
Principles of Actuarial Science Chapter 2
 
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson Distribution
 
Discrete probability distributions
Discrete probability distributionsDiscrete probability distributions
Discrete probability distributions
 
binomialprobabilitydistribution-200508182110 (1).pdf
binomialprobabilitydistribution-200508182110 (1).pdfbinomialprobabilitydistribution-200508182110 (1).pdf
binomialprobabilitydistribution-200508182110 (1).pdf
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.
 
lecture4.ppt
lecture4.pptlecture4.ppt
lecture4.ppt
 
Moment generating function & bernoulli experiment
Moment generating function & bernoulli experimentMoment generating function & bernoulli experiment
Moment generating function & bernoulli experiment
 
Probability distribution 2
Probability distribution 2Probability distribution 2
Probability distribution 2
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial Distribution
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial Distribution
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributions
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 

More from Dr Fereidoun Dejahang

27 j20 my news punch -dr f dejahang 27-01-2020
27 j20 my news punch -dr f dejahang  27-01-202027 j20 my news punch -dr f dejahang  27-01-2020
27 j20 my news punch -dr f dejahang 27-01-2020Dr Fereidoun Dejahang
 
028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrunDr Fereidoun Dejahang
 
026 fast react-productivity improvement
026 fast react-productivity improvement026 fast react-productivity improvement
026 fast react-productivity improvementDr Fereidoun Dejahang
 
022 b construction productivity-write
022 b construction productivity-write022 b construction productivity-write
022 b construction productivity-writeDr Fereidoun Dejahang
 
016 communication in construction sector
016 communication in construction sector016 communication in construction sector
016 communication in construction sectorDr Fereidoun Dejahang
 
014 changes-cost overrun measurement
014 changes-cost overrun measurement014 changes-cost overrun measurement
014 changes-cost overrun measurementDr Fereidoun Dejahang
 
013 changes in construction projects
013 changes in construction projects013 changes in construction projects
013 changes in construction projectsDr Fereidoun Dejahang
 

More from Dr Fereidoun Dejahang (20)

27 j20 my news punch -dr f dejahang 27-01-2020
27 j20 my news punch -dr f dejahang  27-01-202027 j20 my news punch -dr f dejahang  27-01-2020
27 j20 my news punch -dr f dejahang 27-01-2020
 
28 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-201928 dej my news punch rev 28-12-2019
28 dej my news punch rev 28-12-2019
 
16 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-201916 fd my news punch rev 16-12-2019
16 fd my news punch rev 16-12-2019
 
029 fast-tracking projects
029 fast-tracking projects029 fast-tracking projects
029 fast-tracking projects
 
028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun028 fast-tracking projects & cost overrun
028 fast-tracking projects & cost overrun
 
027 fast-tracked projects-materials
027 fast-tracked projects-materials027 fast-tracked projects-materials
027 fast-tracked projects-materials
 
026 fast react-productivity improvement
026 fast react-productivity improvement026 fast react-productivity improvement
026 fast react-productivity improvement
 
025 enterprise resources management
025 enterprise resources management025 enterprise resources management
025 enterprise resources management
 
022 b construction productivity-write
022 b construction productivity-write022 b construction productivity-write
022 b construction productivity-write
 
022 a construction productivity (2)
022 a construction productivity (2)022 a construction productivity (2)
022 a construction productivity (2)
 
021 construction productivity (1)
021 construction productivity (1)021 construction productivity (1)
021 construction productivity (1)
 
019 competencies-managers
019 competencies-managers019 competencies-managers
019 competencies-managers
 
018 company productivity
018 company productivity018 company productivity
018 company productivity
 
017 communication
017 communication017 communication
017 communication
 
016 communication in construction sector
016 communication in construction sector016 communication in construction sector
016 communication in construction sector
 
015 changes-process model
015 changes-process model015 changes-process model
015 changes-process model
 
014 changes-cost overrun measurement
014 changes-cost overrun measurement014 changes-cost overrun measurement
014 changes-cost overrun measurement
 
013 changes in construction projects
013 changes in construction projects013 changes in construction projects
013 changes in construction projects
 
012 bussiness planning process
012 bussiness planning process012 bussiness planning process
012 bussiness planning process
 
011 business performance management
011 business performance management011 business performance management
011 business performance management
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 

Recently uploaded (20)

OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 

1630 the binomial distribution

  • 1. Discrete Random Variables: The Binomial Distribution
  • 2. Bernoulli’s trials  J. Bernoulli (1654-1705) analyzed the idea of repeated independent trials for discrete random variables that had two possible outcomes: success or failure  In his notation he wrote that the probability of success is denoted by p and the probability of failure is denoted by q or 1-p
  • 3. Binomial distribution  The binomial distribution is just n independent individual (Bernoulli) trials added up.  It is the number of “successes” in n trials.  The sum of the probabilities of all the independent trials totals 1.  We can define a ‘success’ as a ‘1’, and a failure as a ‘0’.
  • 4. Binomial distribution  “x” is a binomial distribution if its probability function is:  Examples (note – success/failure could be switched!):    − = p p x 10 1 probability of success probability of failure Situation x=1 (success) x=0 (failure) Coin toss to get heads Turns up heads Turns up tails Rolling dice to get 1 Lands on 1 Lands on anything but 1 While testing a product, how many are found defective Product is defective Product is not defective
  • 5. Binomial distribution  The binomial distribution is just n independent ‘Bernoulli trials’ added up It requires that the trials be done “with replacement” ex. testing bulbs for defects: •Let’s say you make many light bulbs •Pick one at random, test for defect, put it back •Repeat several times •If there are many light bulbs, you do not have to replace (it won’t make a significant difference) •The result will be the binomial probability of a defective bulb (#defective total sample).÷
  • 6. Binomial distribution - formula  Let’s figure out a binomial random variable’s probability function or formula  Suppose we are looking at a binomial with n=3 (ex. 3 coin flips; ‘heads’ is a ‘success’)  We will start with ‘all tails’ P(x=0): Can happen only one way: 000 Which is: (1-p)(1-p)(1-p) Simplified: (1-p)3
  • 7. Binomial distribution - formula  Let’s figure out a binomial probability function (for n = 3)  This time we want 1 success plus 2 failures (ex. 1 heads + 2 tails, or P(x=1)):  This can happen three ways: 100, 010, 001  Which is: p(1-p)(1-p)+(1-p)p(1-p)+(1-p)(1-p)p  Simplified: 3p(1-p)2
  • 8. Binomial distribution - formula  Let’s figure out a binomial probability function (for n = 3)  We want 2 ‘successes’ P(x=2):  Can happen three ways: 110, 011, 101, or…  pp(1-p)+(1-p)pp+p(1-p)p, which simplifies to..  3p2 (1-p)
  • 9. Binomial distribution - formula  Let’s figure out a binomial probability function (n = 3)  We want all 3 ‘successes’ P(x=3):  This can happen only one way: 111  Which we represent as: ppp  Which simplifies to: p3
  • 10. Binomial distribution - formula  Let’s figure out a binomial probability function – in summary, for n = 3, we have: P(x) (Where x is the number of successes; ex. # of heads) ( ) ( ) ( )        − − − = 3 2 2 3 3 132 131 10 p pp pp p x The sum of these expressions is the binomial distribution for n=3. The resulting equation is an example of the Binomial Theorem.
  • 11. Binomial distribution - formula  A quick review of the Binomial Theorem:  If we use q for (1 – p), then…  p3 + 3p2 q +3pq2 + q3 = (p + q)3  which is an example of the formula: (a + b)n = ____________________ (if you forget it, check it in your text)
  • 12. Binomial distribution - formula  Let’s figure out a binomial r.v.’s probability function (the quick way to compute the sum of the terms on the previous slide) - now here’s the formula… In general, for a binomial: ( ) ( ) ( ) xnx ppxP − −= 1nscombinatioof# (the # of x successes with probability p in n trials)
  • 13. Binomial distribution - formula  Which can be written as: ( ) ( ) ( ) xnx pp xnx n xP − − − = 1 !! ! or P(x) = nCx px (1 – p)n-x  This formula is often called the general term of the binomial distribution.
  • 14. Expected Value  The expected value of a binomial distribu- tion equals the probability of success (p) for n trials: ( ) npXE =  E(X) also equals the sum of the probabilities in the binomial distribution.
  • 15. Binomial distribution - Graph  Typical shape of a binomial distribution: Symmetric, with total P(x) = 1 x P Note: this is a theoretical graph – how would an experimental one be different?
  • 16. Binomial distribution - example  A realtor claims that he ‘closes the deal’ on a house sale 40% of the time.  This month, he closed 1 out of 10 deals.  How likely is his claim of 40% if he only completed 1/10 of his deals this month?
  • 17. Binomial distribution - example  By using the binomial distribution function, it’s possible to check if his assessment of his abilities (i.e. 40% ‘closes’) is likely: ( ) ( ) ( ) ( ) ( )( ) ( ) ( ) ( )( ) ( )( ) ( ) ( ) ( ) ( ) ( )( )( ) ( )( ) ( )( ) 251.00467.00256.0 234 78910 6.04.0 !6!4 !10 4 040.0010.04.0106.04.0 !9!1 !10 1 006.0006.0116.04.0 !10!0 !10 0 64 9 100 === === === P P PP(0 deals)=
  • 18. Binomial distribution - example  So it seems pretty unlikely that his assess- ment of his abilities is right: The probability of closing 1 or fewer deals out of 10 if (as he claims) he closes deals 40% of the time is less than 5% or less than 1/20.  What % of ‘closes’ do you think would have the highest probability in this distribution, if his claim was right?
  • 19. Binomial distribution - example  Now see if you can determine the expected number of closings if he had 12 deals this month, assuming 40% success.  We need the values of n (= ___) and of p (= ____).  E(X) = np = ______ - this means that we would expect him to close about _____ deals, if his claim is correct. [End of first example.]
  • 20. Binomial Distribution – ex. 2  Alex Rios has a batting average of 0.310 for the season. In last night’s game, he had 4 at bats. What are the chances he had 2 hits?  You try this one! First ask 3 questions…
  • 21. Binomial Distribution – ex. 2  Is each time at bat an independent event?  Is ‘getting a hit’ a discrete random variable?  Is this a Bernoulli trial? How would you define a “success” and a “failure”?  If you can answer ‘yes’ to the three questions above, then you can use the binomial distribution formula to answer the problem.
  • 22. Binomial Distribution – ex. 2  First determine the following values: The number of trials (Alex is at bat __ times) – this is the value of n The probability of success (Alex’s average is ___) – this is p The probability of ‘failure’: 1 – p = ___ The # of successes asked for (his chances of getting ___ hits) – this is x  Now you can use the formula:
  • 23. Binomial Distribution – ex. 2 ( ) ( ) ( ) xnx pp xnx n xP − − − = 1 !! !  Put in the values from the previous screen, and discuss your answers. [pause here]  Did you get P(2) = 0.275?  Is 2 the most likely number of hits for Alex last night? How about 1 or 3?  P(0 or 1 or 2 or 3 or 4 hits) = _____?
  • 24. Hypergeometric distribution  What happens if you have a situation in which the trials are not independent (this most often happens due to not replacing a selected item).  Each trial must result in success or failure, but the probability of success changes with each trial.
  • 25. Hypergeometric distribution  Consider taking a sample from a population, and testing each member of the sample for defects.  Do this sampling without replacement.  As long as the sample is small compared to the population, this is close to binomial.  But if the sample is large compared to the population, this is a hypergeometric dist.
  • 26. Hypergeometric dist. - formula  A hypergeometric distribution differs from binomial ones since it has dependent trials.  Probability of x successes in r dependent trials, with number of successes a out of a total of n possible outcomes: rn xranx C CC xP −−× = a )(
  • 27. Hypergeometric dist. - formula  Expected Value – the average probability of a success is the ratio of success overall (a/n) times r trials: ( ) n ra XE = ( ) ( ) ( ) ( ) ( ) ( )       −       +−−− −       − = !! ! !! ! !! ! rnr n xranxn an xax a xP  The full version of this formula is: