Răspuns: Binomial (N 150, T) Distribution
Răspuns: Binomial (N 150, T) Distribution
(b) Use a uniform prior for T, the proportion of the target audience that has seen the
latest issue. What is the posterior distribution of T?
Când examinăm acea parte a formulei care arată forma posterioară ca funcție a lui T,
recunoaștem că aceasta este o distribuție beta (a, b), unde:
a = y + 1 și b=n – y + 1. Așadar, avem: a = 29+1=30 și b=150-29+1=122.
Deci, în acest caz, se obține cu ușurință distribuția posterioară. Tot ce este necesar este să
ne uităm la exponenții lui T și (1 - T). Nu a trebuit să facem integrarea.
Deci, răspunsul corect este beta (30,122).
8.2 A city is considering building a new museum. The local paper wishes to determine the
level of support for this project, and is going to conduct a poll of city residents. Out of the
sample of 120 people, 74 support the city building the museum.
(a) What is the distribution of y, the number who support the building the
(b) Use a uniform prior for T, the proportion of the target audience that museum support
the museum. What is the posterior distribution of T?
(a) What is the distribution of y, the number who support the building the
(b) Use a uniform prior for π , the proportion of the target audience that support the museum. What is
the posterior distribution of π ?
A ) n=120
y=74
f ( y|π ) = n π y ¿
() y
Raspuns :
f ( 74|π )= 120 π 74 ¿
( )
74
B ) n=120
y=74
a=y+1, b=n-y+1.
8.3 Sophie, the editor of the student newspaper, is going to conduct a survey of students to
determine the level of support for the current president of the students association. She
needs to determine her prior distribution for T, the proportion of students who support the
president. She decides her prior mean is .5, and her prior standard deviation is .15.
(a) Determine the beta(a, b) prior that matches her prior belief.
a
Prior mean este: m=
a+b
a
a și b sunt soluții simultane pentru m= =0,5
a+b
Avem beta(a, b) posterior, așadar, varianța posterioară este:
a×b
Var(π / y)= 2 =0,152
(a+ b) ×(a+ b+1)
a
=.5 => a=.5*(a+b) => a- .5a=.5b => 0,5a=0,5b => a=b
a+b
a×b
=.15 2 a2 a2 a2
2 => =0.0225 => =0,0225 => =0,0225
(a+ b) ×(a+ b+1) ( 2a )2 × (2 a+ 1 ) 2
4 a × ( 2a+ 1 ) 8 a3 ×4 a2
1
=> 8a+4= =>a=5,05 si b=5,05
0,0225
(b) What is the equivalent sample size of her prior?
Mărimea echivalentă a eșantionului este a + b + 1 = 5,05+5,05+1=11,11.
(c) Out of the 68 students that she polls, y = 21 support the current president.
Determine her posterior distribution.
Posterior distribution:
n=68
y=21
beta(a’,b’)
a’ = y + a și b’=n – y + a.
Așadar, avem: a’ = 21+5,05=26,05 și b’=68-21+5,05=52,05
Soluția este: beta (26.05,52.05)
8.4 You are going to take a random sample of voters in a city in order to estimate the
proportion T who support stopping the fluoridation of the municipal water supply. Before
you analyze the data, you need a prior distribution for T. You decide that your prior mean
is .4, and your prior standard deviation is .l .
(a) Determine the betu(a, b) prior that matches your prior belief.
(b) What is the equivalent sample size of your prior?
(c) Out of the 100 city voters polled, y = 21 support the removal of fluoridation from the
municipal water supply. Determine your posterior distribution.
Rezolvare :
a) Prior mean - .4
Std.dev.-.1
a 3a
=.4 => a=.4*(a+b) => a- .4a=.4b => b=
a+b 2
3 a2
a×b 2
2
=.12 => 2 =0.01 => a=9.2 si b=13.8
(a+ b) ×(a+ b+1) 5a 5 a+ 2
2 ( ) (
×
2 )
b) Sample size :
n eq=a+b+1=9.2+13.8+1=24
Unde :
a ' = y+ a = 30.2