For input data use the first column in the dataset, labelled x. Suppose that the observed data ₁,...,n follow a normal distribution N(u, o2), where o is assumed to be known and equal to 2. (a) Let the last two digits of your ID number be BC. As a prior distribution for u, take a normal distribution N(o, o). We want the prior mean to be B + 15 and the prior probability P(u ≤ C) to be 0.1. Find the prior parameters po and of that satisfy this. (b) Using this prior distribution, find the posterior distribution for μ. (You may use the formulas) (c) Calculate the posterior probability P(µ ≤ 2). (d) Calculate a 95% equal-tail credible interval for u. (e) Calculate a 95% HDP credible interval for μ X Y 14 43 O55 2.256 13 1.83 2.061 1.108 1.287 1.696 15 7 10 15 1.518 2 0.984 13 0.868 13 1.387 11 10 13 5 13 9 12 9 12 8 7 W 331

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
100%

for part a please show the method using example values for B and C

For input data use the first column in the dataset, labelled x. Suppose
that the observed data ₁,...,n follow a normal distribution N(μ, o2), where o is
assumed to be known and equal to 2.
(a) Let the last two digits of your ID number be BC.
As a prior distribution for µ, take a normal distribution N(o, o). We want the
prior mean to be B + 15 and the prior probability P(μ ≤ C) to be 0.1. Find the
prior parameters po and of that satisfy this.
(b) Using this prior distribution, find the posterior distribution for u. (You may use
the formulas)
(c) Calculate the posterior probability P(μ ≤ 2).
(d) Calculate a 95% equal-tail credible interval for μ.
(e) Calculate a 95% HDP credible interval for
X
у
2.256
14
1.83
13
2.061 7
1.108 10
1.287 15
15
1.696
1.518 2
0.984 13
0.868
13
1.387
055
WOHW w
11
10
13
SHOHOHON
5
13
9
12
9
12
8
7
Transcribed Image Text:For input data use the first column in the dataset, labelled x. Suppose that the observed data ₁,...,n follow a normal distribution N(μ, o2), where o is assumed to be known and equal to 2. (a) Let the last two digits of your ID number be BC. As a prior distribution for µ, take a normal distribution N(o, o). We want the prior mean to be B + 15 and the prior probability P(μ ≤ C) to be 0.1. Find the prior parameters po and of that satisfy this. (b) Using this prior distribution, find the posterior distribution for u. (You may use the formulas) (c) Calculate the posterior probability P(μ ≤ 2). (d) Calculate a 95% equal-tail credible interval for μ. (e) Calculate a 95% HDP credible interval for X у 2.256 14 1.83 13 2.061 7 1.108 10 1.287 15 15 1.696 1.518 2 0.984 13 0.868 13 1.387 055 WOHW w 11 10 13 SHOHOHON 5 13 9 12 9 12 8 7
Expert Solution
steps

Step by step

Solved in 6 steps with 12 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman