SlideShare a Scribd company logo
1 of 19
Introduction to Probability and Statistics
For any Statistics related queries, Call us at - +1 678 648 4277
You can mail us at - info@statisticsassignmenthelp.com, or
reach us at - https://www.statisticsassignmenthelp.com/
Statistics Assignment Help
Problem 1. ‘Boy or girl’ paradox.
The following pair of questions appeared in a column by Martin Gardner in Scientic
American in 1959.
(a) Mr. Jones has two children. The older child is a girl. What is the probability that both
children are girls?
(b) Mr. Smith has two children. At least one of them is a boy. What is the probability that
both children are boys?
Be sure to carefully justify your answers.
Solutions:
(a) Listing the gender of older child first, our sample space is {BB,BG,GB,GG} . The event
“the older child is a girl” is {GB,GG} and the event “both children are girls” is
{GG} . Thus the probability that both children are girls given the older child is a girl is 1/2 .
(b) The event “at least one child is a boy” is {BB,BG,GB} so the probability that both
children are boys is 1/3
.
Statistics Assignment Help
Problem 2. The blue taxi.
In a city with one hundred taxis, 1 is blue and 99 are green. A witness observes a hit-and-
run by a taxi at night and recalls that the taxi was blue, so the police arrest the blue taxi
driver who was on duty that night. The driver proclaims his innocence and hires you to
defend him in court. You hire a scientist to test the witness’ ability to distinguish blue and
green taxis under conditions similar to the night of accident. The data suggests that the
witness sees blue cars as blue 99% of the time and green cars as blue 2% of the time.
Write a speech for the jury to give them reasonable doubt about your client’s guilt. Your
speech need not be longer than the statement of this question. Keep in mind that most
jurors have not taken this course, so an illustrative table may be easier for them to
understand than fancy formulas.
Statistics Assignment Help
Solutions:
The defense will try to make the case that this is likely to be a case of random mis-
identification. So we look for the probability a random taxi the witness sees as blue is
actually blue.
This is a question of ‘inverting’ conditional probability. We know
P(the witness sees blue|the car is blue)
but we’d like to know
P(the car is blue|the witness sees blue).
Our first job is to translate this to symbols.
Let Wb = ‘witness sees a blue taxi’ and let Wg = ‘witness sees a green car’. Further, let Tb =
‘taxi is blue’ and let Tg = ‘taxi is green’. With this notation we want to find P(Tb|Wb). We
will compute this using Bayes’ formula
Statistics Assignment Help
All the pieces are represented in the following diagram.
We can determine each factor in the right side of Bayes’ formula:
We are given P(Tb) = .01 (and P(Tg) = .99).
We are given, P(Wb|Tb) = .99 and P(Wb|Tg) = .02.
We compute P(Wb) using the law of total probability:
P(Wb) = P(Wb|Tb)P(Tb) + P(Wb|Tg)P(Tg) = .99 × .01 + .02 × .99 = .99 × .03.
Putting all this in Bayes’ formula we get
Statistics Assignment Help
Ladies and gentlemen of the jury. The prosecutor tells you that the witness is nearly
flawless in his ability to distinguish whether a taxi is green or blue. He claims that this
implies that beyond a reasonable doubt the taxi involved in the hit and run was blue.
However probability theory shows without any doubt that the probability a random taxi
seen by the witness as blue is actually blue is only 1/3. This is considerably more than a
reasonable doubt. In fact it is more probable than not that the taxi involved in the accident
was green. If the probability doesn’t fit you must acquit!
Statistics Assignment Help
Problem 3. Trees of cards.
There are 8 cards in a hat:
{1♥, 1♠, 1♦, 1♣, 2♥, 2♠, 2♦, 2♣}
You draw one card at random. If its rank is 1 you draw one more card; if its rank is two you
draw two more cards. Let X be the sum of the ranks on the 2 or 3 cards drawn. Find E(X).
Statistics Assignment Help
Solution:
The following tree shows all the possible values for X (note, below each edge in the
tree is the conditional probability that edge).
At this point we have enough information to compute expectation.
Statistics Assignment Help
We can also give the probability distribution of X
Statistics Assignment Help
Problem 4. Dice.
There are four dice in a drawer: one tetrahedron (4 sides), one hexahedron (i.e., cube, 6-
sides), and two octahedra (8 sides). Your friend secretly grabs one of the four dice at
random. Let S be the number of sides on the chosen die.
(a)What is the pmf of S?
Now your friend rolls the chosen die and without showing it to you rolls it.. Let R be the
result of the roll.
(b)Use Bayes’ rule to find P (S = k | R = 3) for k = 4, 6, 8. Which die is most likely if
R = 3?
Terminology: You are computing the pmf of ‘S given R = 3’.
(c)Which die is most likely if R = 6? Hint: You can either repeat the computation in (b), or
you can reason based on your result in (b).
(d)Which die is most likely if R = 7?
No computations are needed!
Statistics Assignment Help
Solution:
(a)
(b) Bayes’ rule says
We summarize what we know in a tree. In the tree the notation S4 means the 4-sided die
(S = 4), likewise R3 means a 3 was rolled (R = 3). Because we only care about the case R =
3 the tree does not include other possible rolls.
We have the following probabilities (you should identify them in the tree):
P(R =3|S = 4) = 1/4,P(R =3|S = 6) = 1/6,P(R =3|S = 8) = 1/8.
The law of total probability gives (again, see how the tree tells us this):
P(R =3) = P(R =3|S = 4)P(S = 4)+ P(R =3|S = 6)P(S = 6)+ P(R =3|S = 8)P(S = 8)
Statistics Assignment Help
Hence,
(c) In a similar vein, we have
P(R =6|S = 4) = 0,P(R =6|S = 6) = 1/6,P(R =6|S = 8) = 1/8.
and
So,
Statistics Assignment Help
The eight-sided die is more likely. Note, the denominator is the same in each probability,
i.e. the total probability P(R = 6), so all we had to check was the numerator.
(d) The only way to get R = 7 is if we picked an octahedral die.
Statistics Assignment Help
Problem 5. Seating arrangement and relative height
A total of n people randomly take their seats around a circular table with n chairs. No two
people have the same height. What is the expected number of people who are shorter
than both of their immediate neighbors?
Solution:Label the seats 1 to n going clockwise around the table. Let Xi be the Bernoulli
random variable with value 1 if the person in seat i is shorter than his or her neighbors.
Then represents the total number of people who are shorter than both of their
neighbors, and
by linearity of expected value. Recall that this property of expected values holds even
when the Xi are dependent, as is the case here!
Among 3 random people the probability that the middle one is the shortest is 1/3.
Therefore Xi ∟ Bernoulli(1/3), which implies E(Xi)=1/3. Therefore the expected number
of people shorter than both their neighbors is
Statistics Assignment Help
Alternate (and more complicated) solution
Suppose we number the n people based on their height, from shortest to tallest (so person
1 is the shortest and person n is the tallest). For person k, there are n − k people who are
taller. In order for person k’s neighbors to be taller than person k, we can pick two
neighbors from these n − k in n−kn ways. Moreover, there are total ways to pick the
neighbor of person k. Thus, the probability that person k is seated between two people
taller than him/her is
This formula is valid for k =1, 2,...,n − 2 and for k = n − 1 and k = n, we let pk =0 (since there
is no way for the tallest person or the second tallest person to be sitting next to two
people taller than themselves).
We can define n Bernoulli random variables, X1,...,Xn, as follows:
Thus, E(Xk)= pk for k =1, 2, . . . , n. The total number of people who are seated next to
people taller than them is X = X1 +···+Xn−2, (again we ignore Xn−1 and Xn since they
have to be 0). So, we get, by linearity of expectation
Statistics Assignment Help
One can show (after a bit of algebra) that this sum is equal to n/3.
Had we ordered the people from tallest to shortest, then we would have
Statistics Assignment Help
Problem 6.
(a) Write down a random sequence of 50 flips (0 and 1).
(b) A run is a sequence of all 1’s or 0’s. How long is the longest run in your answer to part
(a)?
(c) We’ll use R to simulate 50 tosses of a fair coin. We’ll estimate the average length of
the longest run. The code below simulates one trial. You will need to use a ‘for loop’ to
run 10000 trials. In Friday Studio we will go over ‘for loops’. We will also post a tutorial
on both loops and the rle() function used in the code.
# R code to run one trial of 50 flips of a fair coin and find the longest run nflips = 50
trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5)
# rle stands for ‘run length encoding’. rle(trial)$lengths is a vector of the lengths of all
the different runs in trial.
maxRun = max(rle(trial)$lengths)
(d)A small modication of your code will let you estimate the probability of a run of 8 or
more in 50 flips. Do this with 10000 trials and report the result.
Statistics Assignment Help
Solutions:
(a) Any sequence of 50 0’s and 1’s is valid. However, most people do not put in any long
runs that parts (c) and (d) will show happen frequently.
(c) Here is my code with comments
nflips = 50 ntrials = 10000 total = 0 # We’ll keep a running total of all the trials’ longest runs
for (j in 1:ntrials)
{
# One trial consists of 50 flips trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5) #
rle() finds the lengths of all the runs in trials. We add the max to total
total = total + max(rle(trial)$lengths)
}
# The average maximum run is the total/ntrials
aveMax = total/ntrials print(aveMax)
My run of this code produced aveMax = 5.9645
(d) Instead of keeping a total we keep a count of the number of trials with a run of 8 or
more
nflips = 50 ntrials = 10000
# We’ll keep a running count of all the trials with a run of 8 or more
Statistics Assignment Help
count = 0 for (j in 1:ntrials)
{
trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5) count = count +
(max(rle(trial)$lengths) >= 8)
}
# The probability of a run of 8 or more is count/ntrials
prob8 = count/ntrials print(prob8)
My run of this code produced prob8 = 0.1618
Statistics Assignment Help

More Related Content

What's hot

Kr using rules
Kr using rulesKr using rules
Kr using rulesDeeksha Arya
 
Mergesort
MergesortMergesort
Mergesortluzenith_g
 
Storage organization and stack allocation of space
Storage organization and stack allocation of spaceStorage organization and stack allocation of space
Storage organization and stack allocation of spaceMuhammad Haroon
 
El caniche
El canicheEl caniche
El canichelenguacova
 
Associative Classification: Synopsis
Associative Classification: SynopsisAssociative Classification: Synopsis
Associative Classification: SynopsisJagdeep Singh Malhi
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing modelsishmecse13
 
Ann
Ann Ann
Ann vini89
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 
Predictive data analytics models and their applications
Predictive data analytics models and their applicationsPredictive data analytics models and their applications
Predictive data analytics models and their applicationsBharathi Raja Asoka Chakravarthi
 
sum of subset problem using Backtracking
sum of subset problem using Backtrackingsum of subset problem using Backtracking
sum of subset problem using BacktrackingAbhishek Singh
 
Presentation-Merge Sort
Presentation-Merge SortPresentation-Merge Sort
Presentation-Merge SortMd Showrov Ahmed
 
Open Addressing on Hash Tables
Open Addressing on Hash Tables Open Addressing on Hash Tables
Open Addressing on Hash Tables Nifras Ismail
 
Depth First Search, Breadth First Search and Best First Search
Depth First Search, Breadth First Search and Best First SearchDepth First Search, Breadth First Search and Best First Search
Depth First Search, Breadth First Search and Best First SearchAdri Jovin
 
1 2 solving multi-step equations
1 2 solving multi-step equations1 2 solving multi-step equations
1 2 solving multi-step equationshisema01
 
Storage Mediums and Fragmentation
Storage Mediums and FragmentationStorage Mediums and Fragmentation
Storage Mediums and FragmentationJonathan Reid
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 

What's hot (20)

Kr using rules
Kr using rulesKr using rules
Kr using rules
 
Sorting network
Sorting networkSorting network
Sorting network
 
Mergesort
MergesortMergesort
Mergesort
 
Storage organization and stack allocation of space
Storage organization and stack allocation of spaceStorage organization and stack allocation of space
Storage organization and stack allocation of space
 
El caniche
El canicheEl caniche
El caniche
 
Associative Classification: Synopsis
Associative Classification: SynopsisAssociative Classification: Synopsis
Associative Classification: Synopsis
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
Ann
Ann Ann
Ann
 
Descriptive Statistics in R.pptx
Descriptive Statistics in R.pptxDescriptive Statistics in R.pptx
Descriptive Statistics in R.pptx
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
A Gentle Introduction to the EM Algorithm
A Gentle Introduction to the EM AlgorithmA Gentle Introduction to the EM Algorithm
A Gentle Introduction to the EM Algorithm
 
Predictive data analytics models and their applications
Predictive data analytics models and their applicationsPredictive data analytics models and their applications
Predictive data analytics models and their applications
 
sum of subset problem using Backtracking
sum of subset problem using Backtrackingsum of subset problem using Backtracking
sum of subset problem using Backtracking
 
Presentation-Merge Sort
Presentation-Merge SortPresentation-Merge Sort
Presentation-Merge Sort
 
Open Addressing on Hash Tables
Open Addressing on Hash Tables Open Addressing on Hash Tables
Open Addressing on Hash Tables
 
Depth First Search, Breadth First Search and Best First Search
Depth First Search, Breadth First Search and Best First SearchDepth First Search, Breadth First Search and Best First Search
Depth First Search, Breadth First Search and Best First Search
 
1 2 solving multi-step equations
1 2 solving multi-step equations1 2 solving multi-step equations
1 2 solving multi-step equations
 
Storage Mediums and Fragmentation
Storage Mediums and FragmentationStorage Mediums and Fragmentation
Storage Mediums and Fragmentation
 
Multiplying Polynomials
Multiplying PolynomialsMultiplying Polynomials
Multiplying Polynomials
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 

Similar to Probability Assignment Help

Probability theory discrete probability distribution
Probability theory discrete probability distributionProbability theory discrete probability distribution
Probability theory discrete probability distributionsamarthpawar9890
 
1. The Central Intelligence Agency has specialists who analyze the f.pdf
1. The Central Intelligence Agency has specialists who analyze the f.pdf1. The Central Intelligence Agency has specialists who analyze the f.pdf
1. The Central Intelligence Agency has specialists who analyze the f.pdfakhilc61
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbeshahashenafe20
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbeshahashenafe20
 
Statistics Coursework Exam Help
Statistics Coursework Exam HelpStatistics Coursework Exam Help
Statistics Coursework Exam HelpStatistics Exam Help
 
Pure ch20
Pure ch20Pure ch20
Pure ch20arbi
 
STAB52 Lecture Notes (Week 2)
STAB52 Lecture Notes (Week 2)STAB52 Lecture Notes (Week 2)
STAB52 Lecture Notes (Week 2)Danny Cao
 
3 PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx
3  PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx3  PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx
3 PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docxtamicawaysmith
 
02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probabilityAndres Mendez-Vazquez
 
Basic Probability
Basic Probability Basic Probability
Basic Probability kaurab
 
Principles of Counting
Principles of CountingPrinciples of Counting
Principles of CountingAmelita Martinez
 

Similar to Probability Assignment Help (20)

Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
x13.pdf
x13.pdfx13.pdf
x13.pdf
 
Probability theory discrete probability distribution
Probability theory discrete probability distributionProbability theory discrete probability distribution
Probability theory discrete probability distribution
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
1. The Central Intelligence Agency has specialists who analyze the f.pdf
1. The Central Intelligence Agency has specialists who analyze the f.pdf1. The Central Intelligence Agency has specialists who analyze the f.pdf
1. The Central Intelligence Agency has specialists who analyze the f.pdf
 
Statistics Coursework Help
Statistics Coursework HelpStatistics Coursework Help
Statistics Coursework Help
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Mathematics Homework Help
Mathematics Homework HelpMathematics Homework Help
Mathematics Homework Help
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
Statistics Coursework Help
Statistics Coursework HelpStatistics Coursework Help
Statistics Coursework Help
 
Statistics Coursework Exam Help
Statistics Coursework Exam HelpStatistics Coursework Exam Help
Statistics Coursework Exam Help
 
Pure ch20
Pure ch20Pure ch20
Pure ch20
 
STAB52 Lecture Notes (Week 2)
STAB52 Lecture Notes (Week 2)STAB52 Lecture Notes (Week 2)
STAB52 Lecture Notes (Week 2)
 
Probability Homework Help
Probability Homework Help Probability Homework Help
Probability Homework Help
 
3 PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx
3  PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx3  PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx
3 PROBABILITY TOPICSFigure 3.1 Meteor showers are rare, .docx
 
02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability02 Machine Learning - Introduction probability
02 Machine Learning - Introduction probability
 
Basic Probability
Basic Probability Basic Probability
Basic Probability
 
Principles of Counting
Principles of CountingPrinciples of Counting
Principles of Counting
 

More from Statistics Assignment Help

Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!Statistics Assignment Help
 
The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...Statistics Assignment Help
 
T- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment HelpT- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment HelpStatistics Assignment Help
 
Linear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.pptLinear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.pptStatistics Assignment Help
 
Probability and Statistics Assignment Help
Probability and Statistics Assignment HelpProbability and Statistics Assignment Help
Probability and Statistics Assignment HelpStatistics Assignment Help
 
Probabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment HelpProbabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment HelpStatistics Assignment Help
 

More from Statistics Assignment Help (20)

Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
 
Pay For Statistics Assignment
Pay For Statistics AssignmentPay For Statistics Assignment
Pay For Statistics Assignment
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
Data Analysis Assignment Help
Data Analysis Assignment HelpData Analysis Assignment Help
Data Analysis Assignment Help
 
R Programming Assignment Help
R Programming Assignment HelpR Programming Assignment Help
R Programming Assignment Help
 
Hypothesis Assignment Help
Hypothesis Assignment HelpHypothesis Assignment Help
Hypothesis Assignment Help
 
The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...
 
T- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment HelpT- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment Help
 
Linear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.pptLinear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.ppt
 
Stata Assignment Help
Stata Assignment HelpStata Assignment Help
Stata Assignment Help
 
MyStataLab Assignment Help
MyStataLab Assignment HelpMyStataLab Assignment Help
MyStataLab Assignment Help
 
Probability and Statistics Assignment Help
Probability and Statistics Assignment HelpProbability and Statistics Assignment Help
Probability and Statistics Assignment Help
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
 
Statistics Coursework Assignment Help
Statistics Coursework Assignment HelpStatistics Coursework Assignment Help
Statistics Coursework Assignment Help
 
Advanced Statistics Assignment help
Advanced Statistics Assignment helpAdvanced Statistics Assignment help
Advanced Statistics Assignment help
 
Probabilistic systems assignment help
Probabilistic systems assignment helpProbabilistic systems assignment help
Probabilistic systems assignment help
 
Probabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment HelpProbabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment Help
 
Stochastic Process Assignment Help
Stochastic Process Assignment HelpStochastic Process Assignment Help
Stochastic Process Assignment Help
 

Recently uploaded

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
 
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
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
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
 
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
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
“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
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
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
 
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
 

Recently uploaded (20)

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
 
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
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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🔝
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
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
 
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...
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
“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...
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
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
 
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
 

Probability Assignment Help

  • 1. Introduction to Probability and Statistics For any Statistics related queries, Call us at - +1 678 648 4277 You can mail us at - info@statisticsassignmenthelp.com, or reach us at - https://www.statisticsassignmenthelp.com/ Statistics Assignment Help
  • 2. Problem 1. ‘Boy or girl’ paradox. The following pair of questions appeared in a column by Martin Gardner in Scientic American in 1959. (a) Mr. Jones has two children. The older child is a girl. What is the probability that both children are girls? (b) Mr. Smith has two children. At least one of them is a boy. What is the probability that both children are boys? Be sure to carefully justify your answers. Solutions: (a) Listing the gender of older child first, our sample space is {BB,BG,GB,GG} . The event “the older child is a girl” is {GB,GG} and the event “both children are girls” is {GG} . Thus the probability that both children are girls given the older child is a girl is 1/2 . (b) The event “at least one child is a boy” is {BB,BG,GB} so the probability that both children are boys is 1/3 . Statistics Assignment Help
  • 3. Problem 2. The blue taxi. In a city with one hundred taxis, 1 is blue and 99 are green. A witness observes a hit-and- run by a taxi at night and recalls that the taxi was blue, so the police arrest the blue taxi driver who was on duty that night. The driver proclaims his innocence and hires you to defend him in court. You hire a scientist to test the witness’ ability to distinguish blue and green taxis under conditions similar to the night of accident. The data suggests that the witness sees blue cars as blue 99% of the time and green cars as blue 2% of the time. Write a speech for the jury to give them reasonable doubt about your client’s guilt. Your speech need not be longer than the statement of this question. Keep in mind that most jurors have not taken this course, so an illustrative table may be easier for them to understand than fancy formulas. Statistics Assignment Help
  • 4. Solutions: The defense will try to make the case that this is likely to be a case of random mis- identification. So we look for the probability a random taxi the witness sees as blue is actually blue. This is a question of ‘inverting’ conditional probability. We know P(the witness sees blue|the car is blue) but we’d like to know P(the car is blue|the witness sees blue). Our first job is to translate this to symbols. Let Wb = ‘witness sees a blue taxi’ and let Wg = ‘witness sees a green car’. Further, let Tb = ‘taxi is blue’ and let Tg = ‘taxi is green’. With this notation we want to find P(Tb|Wb). We will compute this using Bayes’ formula Statistics Assignment Help
  • 5. All the pieces are represented in the following diagram. We can determine each factor in the right side of Bayes’ formula: We are given P(Tb) = .01 (and P(Tg) = .99). We are given, P(Wb|Tb) = .99 and P(Wb|Tg) = .02. We compute P(Wb) using the law of total probability: P(Wb) = P(Wb|Tb)P(Tb) + P(Wb|Tg)P(Tg) = .99 × .01 + .02 × .99 = .99 × .03. Putting all this in Bayes’ formula we get Statistics Assignment Help
  • 6. Ladies and gentlemen of the jury. The prosecutor tells you that the witness is nearly flawless in his ability to distinguish whether a taxi is green or blue. He claims that this implies that beyond a reasonable doubt the taxi involved in the hit and run was blue. However probability theory shows without any doubt that the probability a random taxi seen by the witness as blue is actually blue is only 1/3. This is considerably more than a reasonable doubt. In fact it is more probable than not that the taxi involved in the accident was green. If the probability doesn’t fit you must acquit! Statistics Assignment Help
  • 7. Problem 3. Trees of cards. There are 8 cards in a hat: {1♥, 1♠, 1♦, 1♣, 2♥, 2♠, 2♦, 2♣} You draw one card at random. If its rank is 1 you draw one more card; if its rank is two you draw two more cards. Let X be the sum of the ranks on the 2 or 3 cards drawn. Find E(X). Statistics Assignment Help
  • 8. Solution: The following tree shows all the possible values for X (note, below each edge in the tree is the conditional probability that edge). At this point we have enough information to compute expectation. Statistics Assignment Help
  • 9. We can also give the probability distribution of X Statistics Assignment Help
  • 10. Problem 4. Dice. There are four dice in a drawer: one tetrahedron (4 sides), one hexahedron (i.e., cube, 6- sides), and two octahedra (8 sides). Your friend secretly grabs one of the four dice at random. Let S be the number of sides on the chosen die. (a)What is the pmf of S? Now your friend rolls the chosen die and without showing it to you rolls it.. Let R be the result of the roll. (b)Use Bayes’ rule to nd P (S = k | R = 3) for k = 4, 6, 8. Which die is most likely if R = 3? Terminology: You are computing the pmf of ‘S given R = 3’. (c)Which die is most likely if R = 6? Hint: You can either repeat the computation in (b), or you can reason based on your result in (b). (d)Which die is most likely if R = 7? No computations are needed! Statistics Assignment Help
  • 11. Solution: (a) (b) Bayes’ rule says We summarize what we know in a tree. In the tree the notation S4 means the 4-sided die (S = 4), likewise R3 means a 3 was rolled (R = 3). Because we only care about the case R = 3 the tree does not include other possible rolls. We have the following probabilities (you should identify them in the tree): P(R =3|S = 4) = 1/4,P(R =3|S = 6) = 1/6,P(R =3|S = 8) = 1/8. The law of total probability gives (again, see how the tree tells us this): P(R =3) = P(R =3|S = 4)P(S = 4)+ P(R =3|S = 6)P(S = 6)+ P(R =3|S = 8)P(S = 8) Statistics Assignment Help
  • 12. Hence, (c) In a similar vein, we have P(R =6|S = 4) = 0,P(R =6|S = 6) = 1/6,P(R =6|S = 8) = 1/8. and So, Statistics Assignment Help
  • 13. The eight-sided die is more likely. Note, the denominator is the same in each probability, i.e. the total probability P(R = 6), so all we had to check was the numerator. (d) The only way to get R = 7 is if we picked an octahedral die. Statistics Assignment Help
  • 14. Problem 5. Seating arrangement and relative height A total of n people randomly take their seats around a circular table with n chairs. No two people have the same height. What is the expected number of people who are shorter than both of their immediate neighbors? Solution:Label the seats 1 to n going clockwise around the table. Let Xi be the Bernoulli random variable with value 1 if the person in seat i is shorter than his or her neighbors. Then represents the total number of people who are shorter than both of their neighbors, and by linearity of expected value. Recall that this property of expected values holds even when the Xi are dependent, as is the case here! Among 3 random people the probability that the middle one is the shortest is 1/3. Therefore Xi ∟ Bernoulli(1/3), which implies E(Xi)=1/3. Therefore the expected number of people shorter than both their neighbors is Statistics Assignment Help
  • 15. Alternate (and more complicated) solution Suppose we number the n people based on their height, from shortest to tallest (so person 1 is the shortest and person n is the tallest). For person k, there are n − k people who are taller. In order for person k’s neighbors to be taller than person k, we can pick two neighbors from these n − k in n−kn ways. Moreover, there are total ways to pick the neighbor of person k. Thus, the probability that person k is seated between two people taller than him/her is This formula is valid for k =1, 2,...,n − 2 and for k = n − 1 and k = n, we let pk =0 (since there is no way for the tallest person or the second tallest person to be sitting next to two people taller than themselves). We can define n Bernoulli random variables, X1,...,Xn, as follows: Thus, E(Xk)= pk for k =1, 2, . . . , n. The total number of people who are seated next to people taller than them is X = X1 +¡¡¡+Xn−2, (again we ignore Xn−1 and Xn since they have to be 0). So, we get, by linearity of expectation Statistics Assignment Help
  • 16. One can show (after a bit of algebra) that this sum is equal to n/3. Had we ordered the people from tallest to shortest, then we would have Statistics Assignment Help
  • 17. Problem 6. (a) Write down a random sequence of 50 flips (0 and 1). (b) A run is a sequence of all 1’s or 0’s. How long is the longest run in your answer to part (a)? (c) We’ll use R to simulate 50 tosses of a fair coin. We’ll estimate the average length of the longest run. The code below simulates one trial. You will need to use a ‘for loop’ to run 10000 trials. In Friday Studio we will go over ‘for loops’. We will also post a tutorial on both loops and the rle() function used in the code. # R code to run one trial of 50 flips of a fair coin and find the longest run nflips = 50 trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5) # rle stands for ‘run length encoding’. rle(trial)$lengths is a vector of the lengths of all the different runs in trial. maxRun = max(rle(trial)$lengths) (d)A small modication of your code will let you estimate the probability of a run of 8 or more in 50 flips. Do this with 10000 trials and report the result. Statistics Assignment Help
  • 18. Solutions: (a) Any sequence of 50 0’s and 1’s is valid. However, most people do not put in any long runs that parts (c) and (d) will show happen frequently. (c) Here is my code with comments nflips = 50 ntrials = 10000 total = 0 # We’ll keep a running total of all the trials’ longest runs for (j in 1:ntrials) { # One trial consists of 50 flips trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5) # rle() finds the lengths of all the runs in trials. We add the max to total total = total + max(rle(trial)$lengths) } # The average maximum run is the total/ntrials aveMax = total/ntrials print(aveMax) My run of this code produced aveMax = 5.9645 (d) Instead of keeping a total we keep a count of the number of trials with a run of 8 or more nflips = 50 ntrials = 10000 # We’ll keep a running count of all the trials with a run of 8 or more Statistics Assignment Help
  • 19. count = 0 for (j in 1:ntrials) { trial = rbinom(nflips, 1, .5) # binomial(1,.5) = bernoulli(.5) count = count + (max(rle(trial)$lengths) >= 8) } # The probability of a run of 8 or more is count/ntrials prob8 = count/ntrials print(prob8) My run of this code produced prob8 = 0.1618 Statistics Assignment Help