Write down your complete Student ID number. Your dataset for this problem will consist of 6 pieces of data, each represented by a digit
Write down your complete Student ID number. Your dataset for this problem will consist of 6 pieces of data, each represented by a digit at the end of your Student ID number. In particular, the first piece of data is the last digit of your ID number. The second piece of data is the second to last digit of your ID number. I.e., so if your ID number is P100184639, you would be working with the numbers 1, 8, 4, 6, 3, and 9. (Chapter 3 or the preceding chapters of Econometrics for Dummies might be helpful with this problem).labs代写
A)Find the sample mean, the sample standard deviation, and sample standard error of the sample mean for these 6 numbers. Then calculate a t-statistic for the null hypothesis that the true mean is 5. Construct a 95% confidence interval for the sample mean. (You can do sousing the shortcuts in the notes or do so more precisely if you prefer.). Please write out the formulas and some of the calculation (e.g. rather than doing it in Excel).
B)Assume that you use each of your six numbers 4 times each instead of once to create a dataset with 24 observations. For this dataset, find the new mean, standard deviation, standard error of the new mean, t-stat against a null that the new mean equals 7, and 95% confidence interval for the new mean. Again, write out the
2 and 3) Programming questions
Specifically, you need to analyze a dataset containing information about U.S. States. You will analyze summary statistics, create graphs, break the observations into groups, and run t-tests.
Program the following steps in R. Then, copy your commands into a document, comment on them (using #) and submit the document as the answer to question 2. Please email my TA the code (document with commands) at [email protected] with the phrase “4850 HW 1” in the subject heading.
Dataset notes: This is a dataset about the 50 U.S. states in the 1970’s. The variables can be described:
Population: population estimate (in 1,000’s) as of July 1, 1975
Income: per capita income (1974)
Illiteracy: illiteracy (1970, percent of population)
Life Exp: life expectancy in years (1969–71)
Murder: murder and non-negligent manslaughter rate per 100,000 population (1976)
HS Grad: percent high-school graduates (1970)
Frost: mean number of days with minimum temperature below freezing (1931–1960) in capital or large city
Area: land area in square miles