Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Import the Getting To Know You Survey data, the following code might help. NoU =

ID: 3048800 • Letter: I

Question

Import the Getting To Know You Survey data, the following code might help.

NoU = read.csv("http://users.stat.umn.edu/~kinne174/Getting2NoUS18.csv", header=T) attach(NoU)

R problem 1:

SHOW ME ALL STEPS FOR THE R CODE THANK YOU!

(a) We are interested in the proportion of students at the U are originally from Minnesota. Let p be the true proportion of students at the U that are originally from Minnesota. Calculate and interpretbased on the survey data.

Hint: you can use the command below to find the count of people from Minnestoa:

table(from.MN)

(b) Suppose it is known that the U admits 60% from Minnesota every year.

(i) Calculate the mean and standard deviation of the sample proportion of students who are from Minnesota.

(ii) What is the shape of sampling proportion distribution?

Explanation / Answer

Solutiona:

dim to know obsetvarions and columns

view to view dataframe

NoU = read.csv("http://users.stat.umn.edu/~kinne174/Getting2NoUS18.csv", header=T)
View(NoU)
head(NoU,5)
dim(NoU)

477 33

there were 33 columns and 477 observations

table(NoU$from.MN)

No Yes
187 290

there were 290 students from MN

using prop.table we get the proportion of students from MN

prop.table(table(NoU$from.MN))

Output:

No Yes
0.3920335 0.6079665

p^=sample proportion of students at the U that are originally from Minnesota.

=0.6079665

Solutionbi:

290 are from Minnesota

290+187=477=total

mean of sample propotion of students who are from =p^=successess/total

=187/477=0.6079665

which we calculated earlier using

prop.table(table(NoU$from.MN))

standard deviation of the sample proportion of students who are from Minnesota.

=sqrt(p^(1-p^)/n

=sqrt( 0.6079665(1- 0.6079665)/477)

=0.022

Solutionbii

shape of sampling proportion distribution =normal

as sample size n>30

shape of sampling proportion distribution is normal according to central limit theorem.