MATH1280 Statistics 1 Discussion forum UNIT2
Grades 9.87/0-10
INSTRUCTION
Factors are qualitative data that are associated with categorization or the description of an attribute. Factors are often (but not always) represented with words, like colors or names of things. On the other hand, numeric data are generated by numeric measurements. R can store values as factors or numbers, but sometimes you have a choice of how to represent values.
1) I have two apples, one banana, one cherry. Does it make sense to calculate the "average" of these things? Would you code that as a factor or a numeric value in R?
2) I have four quiz scores: 94, 93, 85, and 0. What is the mean (average) of my quiz scores? Would you code this as a factor or a numeric value in R?
3) In another class, I received these grades on my quizzes: two As, one B, and one F. What is the mean (average) of my grades? Would you code that as a factor or a numeric value in R?
4) How would you explain the difference in mean values obtained in #2 and #3 above?
There is no requirement to use sources from the Internet, but if you use an idea or a quotation from any source, it should be cited (such as putting the author and year at the end of the sentence and then adding a reference at the end to describe the source).
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Discussion Assignment
Factors are qualitative data that are associated with categorization or the description of an attribute. Factors are often (but not always) represented with words, like colors or names of things. On the other hand, numeric data are generated by numeric measurements. R can store values as factors or numbers, but sometimes you have a choice of how to represent values.
1) I have two apples, one banana, one cherry. Does it make sense to calculate the "average" of these things? Would you code that as a factor or a numeric value in R?
No. It does not make sense to calculate the "average" of these things.
Because apples, bananas, and cherries are not the same fruits. So I code each fruit as a factor, and their respective quantities (2, 1, 1) as a numeric value.
2) I have four quiz scores: 94, 93, 85, and 0. What is the mean (average) of my quiz scores? Would you code this as a factor or a numeric value in R?
68.
94 + 93 + 85 + 0 = 272
272 ÷ 4 = 68
I code 68 as a numeric value in R.
3) In another class, I received these grades on my quizzes: two As, one B, and one F. What is the mean (average) of my grades? Would you code that as a factor or a numeric value in R?
Letter grades such as B or F mean a range of numbers, so I can not calculate the average of the grade only with this information. I need actual point scores such as 90 or 70. I code these letters as a factor.
4) How would you explain the difference in mean values obtained in #2 and #3 above?
#2 is numerical but #3 is a factor. So I can not calculate the difference in average between #2 and #3.
Thank you guys. Have a good day!!
댓글