assignment help

profileqwerty123654
ques.pdf

14.310x: Data Analysis for Social Scientists Special Distributions, the Sample Mean, and the Central Limit Theorem

Welcome to your sixth homework assignment! You will have about one week to work through the assignment. We encourage you to get an early start, particularly if you still feel you need more experience using R. We have provided this PDF copy of the assignment so that you can print and work through the assignment offline. You can also go online directly to complete the assignment. If you choose to work on the assignment using this PDF, please go back to the online platform to submit your answers based on the output produced. Some of the questions we are asking are not easily solvable using math so we recommend you to use your R knowledge and the content of previous homework assignments to find numeric solutions.

Good luck!

Suppose that 𝑋! 𝑖. 𝑖. 𝑑. 𝑈[0, 𝜃]. You want to build a 90% confidence interval for 𝜃. To do so, you will need an estimator for 𝜃 and you will need to know the estimator’s distribution. Let’s consider 𝜃, = "#$

" 𝑋("). (Remember that 𝑋(") is the nth order statistic). This estimator is a

variant on the MLE. We have used the 𝑛$% order statistic, which is the MLE, but multiplied it by "#$ "

to remove its bias. Its PDF is "!"#

("#$)! (!$#

)! for 𝑥 ∈ [0, "#$

" 𝜃] and 0 otherwise.

Question 1 Let a be a function of 𝑛 and 𝜃 such that 5% of the distribution of 𝜃% is to the left of a. a is then given by

𝑎 = √𝐴! 𝐵 𝐶 𝜃

What is the value of A? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.05

What is the value of B? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.05

What is the value of C? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.05

Question 2

Let b be a function of 𝑛 and 𝜃 such that 5% of the distribution of 𝜃% is to the right of b. b is then given by

𝑏 = √𝐴! 𝐵 𝐶 𝜃

What is the value of A? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.95

What is the value of B? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.95

What is the value of C? o 𝜃 o 𝑛 o 𝑛 + 1 o 0.95

Question 3 Using those values that you found above, what is a probability statement of the form 𝑃-𝑎 < 𝜃% < 𝑏1 = .90 as a function of 𝑛 and 𝜃?

o 𝑃 7√0.95 ! "#$" 𝜃 ≤ 𝜃 , ≤ √0.05 ! "#$" 𝜃 ; = .90

o 𝑃 7√0.95 ! ""#$𝜃 ≤ 𝜃 , ≤ √0.05 ! "#$" 𝜃 ; = .90

o 𝑃 7√0.05 ! ""#$𝜃 ≤ 𝜃 , ≤ √0.95 ! "#$" 𝜃 ; = .90

o 𝑃 7√0.05 ! "#$" 𝜃 ≤ 𝜃 , ≤ √0.95 ! "#$" 𝜃 ; = .90

Question 4 If you rearrange the quantities in the probability statement so that 𝜃 is alone in the middle, bracketed by functions of the random sample and known quantities, what would be this probability statement?

o 𝑃 7 ) *

√,../ ! " "#$

≤ 𝜃 ≤ ) *

√,.,/ ! "#$ "#"

; = .90

o 𝑃 7 ) *

√,../ ! " "#$

≤ 𝜃 ≤ ) *

√,.,/ ! " "#$

; = .90

o 𝑃 7 ) *

√,../ ! " "#$

≤ 𝜃 ≤ ) *

√,.,/ ! "#$ " ; = .90

o 𝑃 7 ) *

√,.,/ ! " "#$

≤ 𝜃 ≤ ) *

√,../ ! " "#$

; = .90 We are going to show this in R. We have provided you with this code that demonstrates this. Question 5 In the code, there are three symbols standing in for specific values: XXX, YYY, and ZZZ. Which of the following values correspond to XXX, YYY, and ZZZ?

o 𝑋𝑋𝑋 = 𝜃, 𝑌𝑌𝑌 = 1, 𝑍𝑍𝑍 = & o 𝑋𝑋𝑋 = 𝜃, 𝑌𝑌𝑌 = 1, 𝑍𝑍𝑍 = | o 𝑋𝑋𝑋 = 𝜃, 𝑌𝑌𝑌 = 2, 𝑍𝑍𝑍 = & o 𝑋𝑋𝑋 = 𝑛, 𝑌𝑌𝑌 = 2, 𝑍𝑍𝑍 = & o 𝑋𝑋𝑋 = 𝑛, 𝑌𝑌𝑌 = 2, 𝑍𝑍𝑍 = |

We invite you to run this code to see that it is true that in 90% of the simulated samples this confidence interval (CI) contains the real value of 𝜃. You can play with the code, changing both the value of 𝜃 and the sample size. Now suppose 𝑋& 𝑖. 𝑖. 𝑑. 𝑁(𝜇, 4) and 𝑛 = 25. We want to test 𝐻': 𝜇 = 0 𝑣𝑠. 𝐻(: 𝜇 ≠ 0. Question 6 Given the information above, what test statistic should you use?

o The minimum o The sample variance o The maximum o The sample mean

Question 7 Choose the figure below whose shaded region corresponds to the critical region.

o

o

o

o Question 8 Compute 𝛼 (the probability that we reject the null hypothesis when the null is true) as a function of the critical value(s). Note: A critical value is the boundary between the critical region and the rest of the sample space. In the example in class, we denoted the critical value k.

𝛼 = F1 − 𝛷 I 2𝑘 5 KL

𝛼 = 2F1 − 𝛷 I 5𝑘 2 KL

𝛼 = F1 − 𝛷 I 5𝑘 2 KL

𝛼 = 2F1 − 𝛷 I 2𝑘 5 KL

Question 9

Is there a connection between conducting a hypothesis test for 𝜇 = 𝜇' at a significance level 𝛼 and finding a (1 − 𝛼) confidence interval for a parameter 𝜇? Yes No