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

Enter the following command in R to read a simple help page about the table () c

ID: 3220226 • Letter: E

Question

Enter the following command in R to read a simple help page about the table () command
?table
Now enter the following command and describe the output of the table () command. What does the first row of numbers in table () output represent? What does the second row of output represent?
x < - c(5, 8, 4, 1, 5, 6, 5, 9, 4, 2, 5, 7, 5, 3, 6, 4, 5, 3, 7, 6)
table(x)
Read section 1.5 in the Yakir textbook. If you were a teacher and had 30 students in your class and wanted to know the class average on the first quiz, would you use a parameter or a statistic? Why?
If you wanted to know how many people in your country recognize the name of your new company, would you use a parameter or a statistic? Why?

Explanation / Answer

R-Script

First row represents specifications i.e. discrete values

Second row represents frequencies of the corresponding discrete values

---------------------

If you were a teacher and had 30 students in your class and wanted to know the class average on the first quiz,

I have to use parameter since population size = N = 30, I collected all 30 students marks and calculate average of them. It is class mean or population mean. It is nothing but Parameter

-------------------

If you wanted to know how many people in your country recognize the name of your new company

In this situations, we have to use statistic since i draw some people in the country and ask them - are you know my company name? - Yes or no.

We get the information from sample So it is a statistic.

> x=c(5,8,4,1,5,6,5,9,4,2,5,7,5,3,6,4,5,3,7,6)
> table(x)
x
1 2 3 4 5 6 7 8 9
1 1 2 3 6 3 2 1 1