Question

In: Advanced Math

a. Assuming a low-informative prior probability distribution, find the posterior distribution of left-handed students in the...

a. Assuming a low-informative prior probability distribution, find the posterior distribution of left-handed students in the population. Summarize your results with an estimation of the mean, median, mode, and a 95% credible interval. Plot your posterior probability distribution.
b. According to the literature, 5 to 20% of people are left-handed. Take this information into account in your prior probability and calculate a new posterior probability distribution. Summarize your results with an estimation of the mean, median, mode, and a 95% credible interval. Plot your posterior probability distribution.
b. According to the literature, 5 to 20% of people are left-handed. Take this information into account in your prior probability and calculate a new posterior probability distribution. Summarize your results with an estimation of the mean, median, mode, and a 95% credible interval. Plot your posterior probability distribution.

Solutions

Expert Solution

PART A

This is the case of Binomial Likelihood and if the prior and posterior are in the same family then they are called conjugate distributions.

Now, given Binomial Prior the conjugate would be beta distribution. The posterior beta distribution is

Beta(y+alpha,N-y+beta)

where y is the no. of left handed students, N is the sample size, alpha & beta are the parameters of Beta distribution.

Here, y = 2 and N = 18 so, Prior is Uniform(0,1)which is Beta(1,1) and hence, Posterior is Beta(y+alpha,N-y+beta) =  Beta(3,17)

Posterior mean = (y+alpha)/(N+alpha+beta) = 0.15

Posterior Median =(y+alpha-1/3)/(N+alpha+beta-2/3) = 0.137931

Posterior Mode = (y+alpha-1)/(N+alpha+beta-2) = 0.11111

R-Script for Part A

> #---Part A
> a<-1
> b<-1
> y<-2
> N<-18
> mean <-(y+a)/(N+a+b)
> mean
[1] 0.15
> median<-(y+a-(1/3))/(N+a+b-(2/3))
> median
[1] 0.137931
> mode<-(y+a-1)/(N+a+b-2)
> mode
[1] 0.1111111
> p = seq(0,1, length=500)
> plot(p, dbeta(p, 3,17), ylab="density", type ="l", col=4,main = "Beta(3,17)")

Part B

Now, let the prior beta distribution has mean equal to 0.125 which is the mean of 0.05 and .20. For choosing new alpha & beta parameters with mean 0.125 let the pseudo sample size be n, so the alpha and beta parameters become n*0.125,n*(1-0.125). Let us suppose n=1000 so alpha and beta are 125 and 875 respectively.

Posterior is Beta(y+alpha,N-y+beta) =  Beta(127,891)

Posterior mean = (y+alpha)/(N+alpha+beta) = 0.1247544

Posterior Median =(y+alpha-1/3)/(N+alpha+beta-2/3) = 0.1245085

Posterior Mode = (y+alpha-1)/(N+alpha+beta-2) = 0.1417323

R-Script for Part B

> #---Part B
> aa<-127
> bb<-891
> amean<-aa/(aa+bb)
> amean
[1] 0.1247544
> amedian<-(aa-(1/3))/(aa+bb-(2/3))
> amedian
[1] 0.1245085
> amode<-(aa-1)/(bb-2)
> amode
[1] 0.1417323
> p = seq(0,1, length=500)
> plot(p, dbeta(p, 127,891), ylab="density", type ="l", col=4,main = "Beta(127,891)")


Related Solutions

In a group of students, there are 2 out of 18 that are left-handed. a. Assuming...
In a group of students, there are 2 out of 18 that are left-handed. a. Assuming a low-informative prior probability distribution, find the posterior distribution of left-handed students in the population. Summarize your results with an estimation of the mean, median, mode, and a 95% credible interval. Plot your posterior probability distribution. b. According to the literature, 5 to 20% of people are left-handed. Take this information into account in your prior probability and calculate a new posterior probability distribution....
Based on prior studies, about 10% of Californians are left-handed. Find the minimum sample size needed...
Based on prior studies, about 10% of Californians are left-handed. Find the minimum sample size needed to estimate the percentage of California residents who are left-handed. Use a margin of error of two percentage points, and use a confidence level of 95%.
The probability that a randomly selected person is left-handed is 0.1. Suppose we are to randomly...
The probability that a randomly selected person is left-handed is 0.1. Suppose we are to randomly select 10 people. Let X be the number of people selected out of the 10 that are left-handed. Find the following probabilities: (a) P(X = 2) = (b) P(X ≤ 2) = (c) P(X > 2) =
The probability that a person is left-handed is 17%. You randomly select three people. What is...
The probability that a person is left-handed is 17%. You randomly select three people. What is the probability that: a) all three are left handed b) none of them are left handed c) at least one of them is left-handed
1. Given a population in where the probability of someone being left handed is 0.3, people...
1. Given a population in where the probability of someone being left handed is 0.3, people is taken then... Calculate the probability the proportion of left-h
Suppose that researchers study a sample of 50 people and find that 10 are left-handed. (a)...
Suppose that researchers study a sample of 50 people and find that 10 are left-handed. (a) Find a 95% confidence interval for the population proportion that is left-handed. (b) What would the confidence interval be if the researchers used the Wilson value ~p instead? (c) Suppose that an investigator tests the null hypothesis that the population proportion is 18% against the alternative that it is less than that. If = 0:05 then nd the critical value ^pc. Using ^p as...
Suppose that researchers study a sample of 50 people and find that 10 are left-handed. (a)...
Suppose that researchers study a sample of 50 people and find that 10 are left-handed. (a) Find a 95% confidence interval for the population proportion that is left-handed. (b) What would the confidence interval be if the researchers used the Wilson value ̃p instead? (c) Suppose that an investigator tests the null hypothesis that the population proportion is 18% against the alternative that it is less than that. If α = 0.05 then find the critical value ˆpc. Using ˆp...
Assume that 73% of people are left-handed. If we select 5 people at random, find the...
Assume that 73% of people are left-handed. If we select 5 people at random, find the probability of each outcome described below, rounded to four decimal places: a. There are some lefties (≥ 1) among the 5 people. b. There are exactly 3 lefties in the group. c. There are at least 4 lefties in the group. d. There are no more than 2 lefties in the group. e. How many lefties do you expect? f. With what standard deviation?
Find the sample size needed to estimate the percentage of California residents who are left handed....
Find the sample size needed to estimate the percentage of California residents who are left handed. Use a margin of error of three percentage points and use a confidence level of 99%. Assume that p and q are unknown.
Assume that 37% of people are left-handed. If we select 5 people at random, find the...
Assume that 37% of people are left-handed. If we select 5 people at random, find the probability of each outcome described below, rounded to four decimal places: a. There are some lefties ( ≥ 1) among the 5 people. b. There are exactly 3 lefties in the group. c. There are at least 4 lefties in the group. d. There are no more than 2 lefties in the group. e. How many lefties do you expect? f. With what standard...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT