SlideShare a Scribd company logo
Visit: www.statisticsassignmenthelp.com
Email: support@statisticsassignmenthelp.com
Phone: +1 (315)-557-6473
Bayesian Inference and Maximum Likelihood
In this sample assignment, we explore a range of statistical problems to
illustrate the methods and techniques used in probability and estimation. This
exercise covers concepts such as the Method of Moments, Maximum
Likelihood Estimation (MLE), and Bayesian inference. The problems include
working with discrete random variables, geometric distributions, and
binomial distributions, highlighting their likelihood functions, parameter
estimation, and posterior distributions. Through these examples, the goal is to
showcase the practical application of statistical methods and the expertise of
StatisticsAssignmentHelp.com in solving complex assignments. Dive into
these challenges to gain a deeper understanding of advanced statistical
techniques.
Bayesian Inference and Maximum Likelihood
1. Problem 8.10.5
X is a descrete random varialbe with
P(X = 1) = θ and P(X = 2) = 1 − θ.
Three independent ovservations of X are made:
(a). Find the method of moments estimate of θ
(b). What is the likelihood function?
(c).The mle for θ is found by solving
(d). The uniform distribution has density
The posterior distribution has density
By inspection, the posterior density must be that of a Beta(a, b) distribution
with
a = 2 and b = 3.
2. Problem 8.10.7
Suppose that X follows a geometric distribution
Assume an i.i.d. sample of size n.
(a). Find the method of moments estimate of p.
The first moment of X is
(See Appendex A, page A1.)
Solving gives
(b). Find the mle of p. The mle of a sample x1, . . . , xn minimizes
The mle is the same as the mle for a sample of size from a
Bernoulli(p) distribution with n successes:
(same as the method-of-moments estimate)
(c) The asympotic variance of the mle is
where
(d). Let p have a uniform distribution on [0, 1]. The posterior distribution
of p has density
which can be recognized as a Beta(a∗, b∗) distribution with
The mean of the posterior distribution is the mean of the Beta(a∗, b∗)
distribution which is
(Note: the book solution is only for n = 1 and x1 = k)
3. Problem 8.10.32
The R code in Problem 8 10 32.html provides numerical solutions to (a),
(b), and (c).
(a). Reasonable guesses for the mean µ and variance σ2 are the mle for
µ and the unbaised sample variance for σ2.
(Alternates are reasonable if suggested, e.g., the mle for the variance.)
(b). Confidence intervals for µ :
Let CI.level (×100%) be the confidence level of the interval.
Set α = 1 − CI.level and define t ∗ = t(α/2, df = (n − 1)), the upper α/2
quantile of a t distribution with n − 1 degrees of freedom. Then the
confidence interval for µ is
Confidence intervals for σ2 :
Let CI.level (×100%) be the confidence level of the interval.
(c). To compute confidence intervals for σ rather than σ2 , just take the
square roots of the corresponding confidence intervals for sigma2 .
(d). To halve the confidence interval for µ, the sample size should increase
about 4 times. The standard deviation of the sample mean is σ/ n so this is
halved when the sample size is increased by a factor of 4. This argument
does not account for the fact that the critical value of the t distribution of a
given α/2 level is smaller the higher the degrees of freedom. So, the factor
of 4 is an upper bound on the the sample size increase required. Also, the
length of the confidence interval for µ is random. The previous comments
apply on average, but in any sample, the confidence interval will have
random length and could be arbitrarily large, albeit with very small
probability.
4. Problem 8.10.63
Suppose that 100 items are sampled from a manufacturing process and 3
are found to be defective. Let X = 3 be the outcome of a Binomial(n =
100,θ) random variable.
The likelihood of the data is
Consider a prior distribution for θ which is Beta(a, b), (with a > 0,b > 0).
The posterior distribution has density:
Which normalizes to a Beta(a ∗,b∗) distribution where
a = a +3, and b∗ = b + 97.
The mean of the posterior distribution is
E[θ | X] = a ∗/(a + b∗).
For a = b = 1 we have E[θ | X] =4/102 and
For a.5, and b = 5 we have E[θ | X] = 3.5/105.5.
The R code in P roblem 8 10 63.html plots the prior/posterior densities
and computes the posterior means.

More Related Content

Similar to Bayesian Inference and Maximum Likelihood (20)

PDF
An introduction to categorical data analysis
CollinsMusera1
 
PDF
An introduction to categorical data analysis
CollinsMusera1
 
PDF
Introduction to categorical data analysis
CollinsMusera1
 
PDF
An introduction to categorical data analysis
CollinsMusera1
 
PPTX
PRML Chapter 2
Sunwoo Kim
 
PDF
lec2_CS540_handouts.pdf
ZineddineALICHE1
 
PPTX
Probability and Statistics Exam Help
Statistics Exam Help
 
PPTX
Math Exam Help
Live Exam Helper
 
PPTX
Probability and Statistics Assignment Help
Statistics Assignment Help
 
PDF
Introduction to Evidential Neural Networks
Federico Cerutti
 
PDF
"reflections on the probability space induced by moment conditions with impli...
Christian Robert
 
PDF
Bayesian Statistics.pdf
MuhammadAnas742878
 
PDF
presentation4.pdf Intro to mcmc methodss
SergeyTsygankov6
 
PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PDF
5-Propability-2-87.pdf
elenashahriari
 
PPTX
Business Analytics _ Confidence Interval
Ravindra Nath Shukla
 
PDF
Statistics and Probability_Chapter 4_FTU
Foreign Trade University
 
PDF
MLE.pdf
appalondhe2
 
PDF
Questions file for a revision on probability and statistics
mamdouhbevnoty
 
PDF
Introduction to Bayesian Inference
Peter Chapman
 
An introduction to categorical data analysis
CollinsMusera1
 
An introduction to categorical data analysis
CollinsMusera1
 
Introduction to categorical data analysis
CollinsMusera1
 
An introduction to categorical data analysis
CollinsMusera1
 
PRML Chapter 2
Sunwoo Kim
 
lec2_CS540_handouts.pdf
ZineddineALICHE1
 
Probability and Statistics Exam Help
Statistics Exam Help
 
Math Exam Help
Live Exam Helper
 
Probability and Statistics Assignment Help
Statistics Assignment Help
 
Introduction to Evidential Neural Networks
Federico Cerutti
 
"reflections on the probability space induced by moment conditions with impli...
Christian Robert
 
Bayesian Statistics.pdf
MuhammadAnas742878
 
presentation4.pdf Intro to mcmc methodss
SergeyTsygankov6
 
Statistics Assignment Help
Statistics Assignment Help
 
5-Propability-2-87.pdf
elenashahriari
 
Business Analytics _ Confidence Interval
Ravindra Nath Shukla
 
Statistics and Probability_Chapter 4_FTU
Foreign Trade University
 
MLE.pdf
appalondhe2
 
Questions file for a revision on probability and statistics
mamdouhbevnoty
 
Introduction to Bayesian Inference
Peter Chapman
 

More from Statistics Assignment Help (20)

PPTX
Calculating Expected Values and Variances in Statistics
Statistics Assignment Help
 
PPTX
Method of Moments and Maximum Likelihood Estimation
Statistics Assignment Help
 
PPTX
Statistical Analysis of Corneal Thickness in Glaucoma Patients
Statistics Assignment Help
 
PPTX
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Statistics Assignment Help
 
PPTX
Pay For Statistics Assignment
Statistics Assignment Help
 
PPTX
Data Analysis Assignment Help
Statistics Assignment Help
 
PPTX
R Programming Assignment Help
Statistics Assignment Help
 
PPTX
Hypothesis Assignment Help
Statistics Assignment Help
 
PPTX
The Data of an Observational Study Designed to Compare the Effectiveness of a...
Statistics Assignment Help
 
PPTX
T- Test and ANOVA using SPSS Assignment Help
Statistics Assignment Help
 
PPT
Linear Regression Analysis assignment help.ppt
Statistics Assignment Help
 
PPTX
Stata Assignment Help
Statistics Assignment Help
 
PPTX
MyStataLab Assignment Help
Statistics Assignment Help
 
PPTX
Mathematical Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Statistics Assignment Help
Statistics Assignment Help
 
PPTX
Statistics Coursework Assignment Help
Statistics Assignment Help
 
PPTX
Advanced Statistics Assignment help
Statistics Assignment Help
 
PPTX
Statistics Coursework Help
Statistics Assignment Help
 
PPTX
Probabilistic systems assignment help
Statistics Assignment Help
 
PPTX
Probabilistic Systems Analysis Assignment Help
Statistics Assignment Help
 
Calculating Expected Values and Variances in Statistics
Statistics Assignment Help
 
Method of Moments and Maximum Likelihood Estimation
Statistics Assignment Help
 
Statistical Analysis of Corneal Thickness in Glaucoma Patients
Statistics Assignment Help
 
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Statistics Assignment Help
 
Pay For Statistics Assignment
Statistics Assignment Help
 
Data Analysis Assignment Help
Statistics Assignment Help
 
R Programming Assignment Help
Statistics Assignment Help
 
Hypothesis Assignment Help
Statistics Assignment Help
 
The Data of an Observational Study Designed to Compare the Effectiveness of a...
Statistics Assignment Help
 
T- Test and ANOVA using SPSS Assignment Help
Statistics Assignment Help
 
Linear Regression Analysis assignment help.ppt
Statistics Assignment Help
 
Stata Assignment Help
Statistics Assignment Help
 
MyStataLab Assignment Help
Statistics Assignment Help
 
Mathematical Statistics Assignment Help
Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment Help
 
Statistics Coursework Assignment Help
Statistics Assignment Help
 
Advanced Statistics Assignment help
Statistics Assignment Help
 
Statistics Coursework Help
Statistics Assignment Help
 
Probabilistic systems assignment help
Statistics Assignment Help
 
Probabilistic Systems Analysis Assignment Help
Statistics Assignment Help
 
Ad

Recently uploaded (20)

PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
PPTX
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
PPTX
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
Latest Features in Odoo 18 - Odoo slides
Celine George
 
PPTX
Presentation: Climate Citizenship Digital Education
Karl Donert
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PPTX
How to Manage Promotions in Odoo 18 Sales
Celine George
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PPTX
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
community health nursing question paper 2.pdf
Prince kumar
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
Explorando Recursos do Summer '25: Dicas Essenciais - 02
Mauricio Alexandre Silva
 
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
How to Configure Prepayments in Odoo 18 Sales
Celine George
 
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Latest Features in Odoo 18 - Odoo slides
Celine George
 
Presentation: Climate Citizenship Digital Education
Karl Donert
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
digestive system for Pharm d I year HAP
rekhapositivity
 
How to Manage Promotions in Odoo 18 Sales
Celine George
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
HEAD INJURY IN CHILDREN: NURSING MANAGEMENGT.pptx
PRADEEP ABOTHU
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
Ad

Bayesian Inference and Maximum Likelihood

  • 1. Visit: www.statisticsassignmenthelp.com Email: [email protected] Phone: +1 (315)-557-6473 Bayesian Inference and Maximum Likelihood
  • 2. In this sample assignment, we explore a range of statistical problems to illustrate the methods and techniques used in probability and estimation. This exercise covers concepts such as the Method of Moments, Maximum Likelihood Estimation (MLE), and Bayesian inference. The problems include working with discrete random variables, geometric distributions, and binomial distributions, highlighting their likelihood functions, parameter estimation, and posterior distributions. Through these examples, the goal is to showcase the practical application of statistical methods and the expertise of StatisticsAssignmentHelp.com in solving complex assignments. Dive into these challenges to gain a deeper understanding of advanced statistical techniques. Bayesian Inference and Maximum Likelihood
  • 3. 1. Problem 8.10.5 X is a descrete random varialbe with P(X = 1) = θ and P(X = 2) = 1 − θ. Three independent ovservations of X are made: (a). Find the method of moments estimate of θ
  • 4. (b). What is the likelihood function? (c).The mle for θ is found by solving (d). The uniform distribution has density
  • 5. The posterior distribution has density By inspection, the posterior density must be that of a Beta(a, b) distribution with a = 2 and b = 3.
  • 6. 2. Problem 8.10.7 Suppose that X follows a geometric distribution Assume an i.i.d. sample of size n. (a). Find the method of moments estimate of p. The first moment of X is
  • 7. (See Appendex A, page A1.) Solving gives (b). Find the mle of p. The mle of a sample x1, . . . , xn minimizes
  • 8. The mle is the same as the mle for a sample of size from a Bernoulli(p) distribution with n successes: (same as the method-of-moments estimate) (c) The asympotic variance of the mle is where
  • 9. (d). Let p have a uniform distribution on [0, 1]. The posterior distribution of p has density which can be recognized as a Beta(a∗, b∗) distribution with The mean of the posterior distribution is the mean of the Beta(a∗, b∗) distribution which is
  • 10. (Note: the book solution is only for n = 1 and x1 = k) 3. Problem 8.10.32 The R code in Problem 8 10 32.html provides numerical solutions to (a), (b), and (c). (a). Reasonable guesses for the mean µ and variance σ2 are the mle for µ and the unbaised sample variance for σ2. (Alternates are reasonable if suggested, e.g., the mle for the variance.)
  • 11. (b). Confidence intervals for µ : Let CI.level (×100%) be the confidence level of the interval. Set α = 1 − CI.level and define t ∗ = t(α/2, df = (n − 1)), the upper α/2 quantile of a t distribution with n − 1 degrees of freedom. Then the confidence interval for µ is Confidence intervals for σ2 : Let CI.level (×100%) be the confidence level of the interval.
  • 12. (c). To compute confidence intervals for σ rather than σ2 , just take the square roots of the corresponding confidence intervals for sigma2 .
  • 13. (d). To halve the confidence interval for µ, the sample size should increase about 4 times. The standard deviation of the sample mean is σ/ n so this is halved when the sample size is increased by a factor of 4. This argument does not account for the fact that the critical value of the t distribution of a given α/2 level is smaller the higher the degrees of freedom. So, the factor of 4 is an upper bound on the the sample size increase required. Also, the length of the confidence interval for µ is random. The previous comments apply on average, but in any sample, the confidence interval will have random length and could be arbitrarily large, albeit with very small probability.
  • 14. 4. Problem 8.10.63 Suppose that 100 items are sampled from a manufacturing process and 3 are found to be defective. Let X = 3 be the outcome of a Binomial(n = 100,θ) random variable. The likelihood of the data is Consider a prior distribution for θ which is Beta(a, b), (with a > 0,b > 0).
  • 15. The posterior distribution has density: Which normalizes to a Beta(a ∗,b∗) distribution where a = a +3, and b∗ = b + 97. The mean of the posterior distribution is E[θ | X] = a ∗/(a + b∗). For a = b = 1 we have E[θ | X] =4/102 and
  • 16. For a.5, and b = 5 we have E[θ | X] = 3.5/105.5. The R code in P roblem 8 10 63.html plots the prior/posterior densities and computes the posterior means.