(a) Generate n 10 realizations from a simple linear model where i has a normal d
ID: 3306362 • Letter: #
Question
(a) Generate n 10 realizations from a simple linear model where i has a normal distribution with mean 0 and standard deviation 2. Let 2. Let Bo 3 3 the line corresponding to the true model, and the fitted regression line. Use the confint tool to obtain a 95% confidence interval for A and report this interval. (b) Repeat part (a) 100 times, generating new data (and hence a new confidence interval) for each iteration. Report the percentage of CI's which contain the true value (I recommend using a for-loop to do this. You can store and access the output from confint by doing something like ciOutExplanation / Answer
Rolling a single die
1) probability of rolling divisors of 6 :
Since its a single die, the possible outcomes are 1,2,3,4,5,6. All have equal probability(1/6) since its a fair die
Out of these divisors of 6 are 1,2,3,6. So P(divisors of 6) = 1/6*1/6*1/6*1/6 = 1/1296 = 0.0008
2) probability of rolling a multiple of 1: Since all(1,2,3,4,5,6) are multiples of 6 = 1/6*1/6*1/6*1/6*1/6*1/6= 1/46656 = 0.00002
3) probability of rolling an even number : There are 3 even numbers between 1-6 i.e. 2,4,6
Hence probability of rolling an even number = 1/6*1/6*1/6 = 1/216 =0.0046
4) List of all possible outcomes of rolling a single die ={1,2,3,4,5,6}
5) probability of rolling factors of 3 : Factors of 3 are 1,3
Hence probability of rolling factors of 3 = 1/6*1/6 = 1/36 = 0.0278
6) probability of rolling a 3 or smaller : 3 or smaller are 1,2,3. Hence the probability = 1/6*1/6*1/6 = 1/216 = 0.0046
7) probability of rolling a prime number: Prime numbers between 1-6 are 2,3,5 hence probability = 1/6*1/6*1/6=1/216=0.0046
8) probability of rolling factors of 4 : Factors of 4 are 1,2,4 hence the probability = 1/6*1/6*1/6 = 1/216 =0.0046
9) probability of rolling divisors of 30 : Divisors of 30 are 1,2,3,5,6 = 1/6*1/6*1/6*1/6*1/6 = 1/7776 = 0.0001
10) probability of rolling factors of 24: Factors of 24 are 1,2,3,4,6 = 1/6*1/6*1/6*1/6*1/6=1/7776=0.0001
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.