Discussion 2 PDF

Title Discussion 2
Course Introduction to Statistics
Institution University of the People
Pages 1
File Size 33.1 KB
File Type PDF
Total Downloads 93
Total Views 153

Summary

Discussion Post for Math1280 unit 2...


Description

Discussion Post Unit 2 Math 1280 1. Does it make sense to calculate the “average” of these things? Would you code that as a factor or a numeric value in R? It does not make sense to calculate the average of two apples, one banana and one cherry because in R programming they are character type. They should be coded as a factor and not 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? The mean or average of the quiz score is 68. I would code this as a numeric value in R. The code can be seen below: > quizscores print(mean(quizscores)) Output [1] 68

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 numeric value in R? These grades two as, one B and one F are factor values and not numeric values. The grades for each of them can be assumed but no numeric value was provided for them so there is nothing that can be done. The average cannot be calculated without the numeric value attached to grades. 4. How would you explain the difference in mean values obtained in #2 and #3 above? The difference in the mean is that in question 2 numeric values were provided and these values were coded in the R program which gave an output; question three on the other hand had no numeric value only character type value. It is impossible to calculate the average using character type. The average can only be calculated if the numeric value attached to those grades/character types is provided then and only then can the R program give the average....


Similar Free PDFs