A-besvarelse i Econ240, våren 2022.
Besvarelsen er skrevet på norsk og svarer på følgende spørsmål:
Question 1: Numerical measures
Consider a random sample with the following data for two variables (X and Y):
X: 3, 2, 2, -1, 0, 3, 1
Y: -10, 2, 16, 3, 1, 10, -10
a. Calculate the mean, median, the first quantile, and the third quantile of X and Y.
b. Calculate the covariance between X and Y.
c. Calculate the correlation coefficient between
A-besvarelse i Econ240, våren 2022.
Besvarelsen er skrevet på norsk og svarer på følgende spørsmål:
Question 1: Numerical measures
Consider a random sample with the following data for two variables (X and Y):
X: 3, 2, 2, -1, 0, 3, 1
Y: -10, 2, 16, 3, 1, 10, -10
a. Calculate the mean, median, the first quantile, and the third quantile of X and Y.
b. Calculate the covariance between X and Y.
c. Calculate the correlation coefficient between X and Y. Hint: the standard deviation for Y is
9.569296
d. Interpret in 3-5 sentences the covariance and the correlation coefficient obtained in b) and
c).
Question 2: The magic confidence intervals
The Berghof sanatorium treated 12,348 tuberculosis patients before 1914. To evaluate their
methods, a study randomly sampled 100 patients from the sanatorium’s historical records. The
study found a mean of 51.75 years and standard deviation of 8.9 years for the age at death of the
randomly sampled patients.
a. Find the 90% confidence interval for the mean age at death among all 12,348 tuberculosis
patients. Assume that the population is normally distributed with a variance of 69.41.
Interpret the confidence interval.
b. Find the 90% confidence interval for the variance in age at death among all 12,348
tuberculosis patients. Assume that the population is normally distributed. Interpret the
confidence interval.
Later, the study collects information on 44 additional randomly sampled patients, such that the
number of observations in the study is now 144. The mean age at death is still 51.75 years, but the
standard deviation is now 7.9 years among the randomly sampled patients.
c. Re-calculate the 90% confidence interval for the mean age at death among all 12,348
tuberculosis patients. Assume that the population is normally distributed with a variance of
69.41.
d. Has the confidence interval changed with respect to a)? Explain why or why not in no more
than 5 sentences.
Question 3: Pride and Probability
Lizzie is not sure whether Mr. Darcy likes her or not. In their conversations, Mr. Darcy has told her
that he only likes 10% of people and that he does not like the rest. However, when Lizzie
organizes a ball in her country house, Mr. Darcy shows up and dances with Lizzie three times.
After the ball, Mr. Darcy gives Lizzie new information: the probability that he dances with a person
three times given that he likes this person is 95%. However, occasionally, Mr. Darcy may not like
a person but dance three times regardless. The probability that Mr. Darcy dances with a person
three times given that he does not like this person is 8%.
a. If Lizzie ignores the new information given to her after the ball, what is the probability that Mr.
Darcy does not like her?
b. What is the probability that Mr. Darcy likes a person (A) and dances with a person three
times (B)? Hint: you are asked to find P(A og B) .
c. What is the probability that Mr. Darcy does not like a person (Ikke A) and dances with a person
three times (B)? Hint: you are asked to find P(ikke A og B).
d. What is the probability that Mr. Darcy dances with a person three times?
e. If Lizzie updates her believes about Mr. Darcy using the new information given to her after
the ball, what is the probability that Mr. Darcy likes her?
Question 4: Regressing robots
US Robotics is launching a new robot model: the RB-34 (Herbie). The sales manager is asked
which price would maximize the market demand for this model. To answer this question, she
collects information on the price (in dollars) and the quantity of robots sold (in units) for a random
sample of 122 robot models which were previously in the market. A linear regression model is
used to analyze the relationship between prices and quantity sold. The results from this analysis in
STATA and Excel are presented below: (Her ligger det et bilde av statautskrift i dokumentet)
a. Write down the regression equation and interpret the main coefficients of intertest.
b. Complete the missing information in the table with respect to the t-statistic of the regression
slope for the null hypothesis of no relationship between the two variables.
c. Write down and test the hypothesis that there is a relationship between prices and quantity
sold. Use a 5% significance level for your test.
d. Write down and test the hypothesis that there is a relationship between prices and quantity
sold. Use a 1% significance level for your test.
e. Explain in 3-5 sentences the differences between the tests in b) and c) (if any), which one
would we prefer (if any), and what is the risk of using the test in b) instead of c) (if any).
f. Complete the missing information in the table with respect to the regression sum of squares
(SSR).
Question 5: Murder on the hypothesis testing
Detective Hercule Poirot advertises his services with the following slogan: “Hire me and I will
catch the murderer in less than 30 days!” A random sample of 10 of his cases reveal a mean of
23.4 and a standard deviation of 14.4 for the number of days until a murderer is caught. Assume
that the number of days until a murderer is caught in the population are normally distributed.
a. State the appropriate null and alternative hypotheses to test the Belgian detective’s slogan.
b. Test Hercule Poirot’s claim at the 10% significance level. Interpret the result of the test
statistic.
c. Test the null hypothesis that Poirot catches the murderer in exactly 30 days at the 10%
significance level.
Question 6: Rare publications
A hungry writer tries to publish articles in a newspaper in Christiania. It has been reported that only
1% of the articles get published in a year (i.e., a probability of 0.01). Consider a random sample of
500 of the writer’s articles.
a. Consider a variable measuring the number articles published in this random sample. Which
kind of distribution does this variable have? Use three measures to summarize the
probability distribution of this variable.
b. What is the probability that less than two articles in this sample will be published this year?
Use the Poisson approximation to the binomial. Hint: 0! = 1 og n! = n * (n - 1) * (n - 2) * ... * 1
c. Explain in 3-5 sentences if the probability calculated in b) using the exponential distribution is
a good approximation of the true probability. Why (why not)? Would your answer change if,
instead, we considered a random sample of 1,000 of the writer’s articles?

Du må være innlogget og ha kjøpt dette dokument for å kunne gi en omtale.