Question

Factors are qualitative data that are associated with categorization or the description of an attribute. Factors...

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).

Homework Answers

Answer #1

Answer:------------

1). No, we cannot make average on two apples, one banana, one cherry, because they are different kind of fruits, not number.
Then, I would code Fruit as factors, since fruit is qualitative not quantitative.

2). I use R to find out the mean (average), the result is following:
===> x <= c (94, 93, 85, 0)
====> mean(x)
So, mean (average) = (94+93+85+0) / 4 = 68
Then, I have coded the four quiz scores (94, 93, 85, and 0) as numeric value in R.

3). No, average is not possible here, because the letter grades are not numbers.
I would code the grades (letters) as factors in R.


4). We cannot make different between #2 and #3 above, since #2 is numeric whereas #3 is factor. We should convert factor to numeric first, before doing subtraction operation.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1) I have two apples, one banana, one cherry.  Does it make sense to calculate the "average"...
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,...
we will be taking data in as a file. you cannot use the data values in...
we will be taking data in as a file. you cannot use the data values in your source file but you must read in everything into variables and use it from there. First we need to include <fstream> at the top of our file. We will need to create an input file stream to work and ifstream. ifstream is a datatype. Create a variable with the datatype being ifstream. Variable is drfine by using the member accessor operator to call...
How to make the last element of an array null?(c++)So for my data structures class, we...
How to make the last element of an array null?(c++)So for my data structures class, we are working in c++. We are supposed to create a function that takes in an array, shifts everything to the left and leaves the original final element as null. Now I haven't found any simple way to convert them to null so I was just converting them to "0".I was seeking help on how to modify my code such to make the final element...
Topics Arrays Accessing Arrays Description Write a C++ program that will display a number of statistics...
Topics Arrays Accessing Arrays Description Write a C++ program that will display a number of statistics relating to data supplied by the user. The program will ask the user to enter the number of items making up the data. It will then ask the user to enter data items one by one. It will store the data items in a double array. Then it will perform a number of statistical operations on the data. Finally, it will display a report...
The Data A central tenet to being a good instructor, I believe, is to be a...
The Data A central tenet to being a good instructor, I believe, is to be a reflective practitioner of your craft. From time to time I find it to be necessary to review and reflect on my work as an instructor from a grade perspective. On our moodle page you will find a link to a second word document titled “300 Grades”. This data sheet contains both the alphanumeric grade (page 1) and the numerical equivalent (page 2) for every...
Data needs to be analyzed For this assignment I have to analyze the regression (relationship between...
Data needs to be analyzed For this assignment I have to analyze the regression (relationship between 2 independent variables and 1 dependent variable). Below is all of my data and values. I need help answering the questions that are at the bottom. Questions regarding the strength of the relationship   Sum of X1 = 184.6 Sum of X2 = 21307.03 Sum of Y = 2569.1 Mean X1 = 3.6196 Mean X2 = 417.7849 Mean Y = 50.3745 Sum of squares (SSX1)...
Data For Tasks 1-8, consider the following data: 7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5,...
Data For Tasks 1-8, consider the following data: 7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5, 13.0, 3.2, -1.1, 7.0, 0.5, 3.9, 2.1, 4.1, 6.5 In Tasks 1-8 you are asked to conduct some computations regarding this data. The computation should be carried out manually. All the steps that go into the computation should be presented and explained. (You may use R in order to verify your computation, but not as a substitute for conducting the manual computations.) A Random...
Problem Description Many recipes tend to be rather small, producing the fewest number of servings that...
Problem Description Many recipes tend to be rather small, producing the fewest number of servings that are really possible with the included ingredients. Sometimes one will want to be able to scale those recipes upwards for serving larger groups. This program's task is to determine how much of each ingredient in a recipe will be required for a target party size. The first inputs to the program will be the recipe itself. Here is an example recipe that comes from...
The answers to the practice quiz are below I need to understand why the answers are...
The answers to the practice quiz are below I need to understand why the answers are correct. Consider the One-Way ANOVA table (some values are intentionally left blank) for the pizza delivery times of 20 randomly assigned deliveries at four pizza franchises(A, B, C, D) (5 observations per franchise or Group). H0:MeanA=MeanB=MeanC=MeanD         H1: At least one mean is different. Please answer questions 1, 2, 3, and 4, based on the following table. ANOVA Source of Variation SS df MS F...
Wenton Powersports produces dune buggies. They have three assembly lines, “Razor,” “Blazer,” and “Tracer,” named after...
Wenton Powersports produces dune buggies. They have three assembly lines, “Razor,” “Blazer,” and “Tracer,” named after the particular dune buggy models produced on those lines. Each assembly line was originally designed using the same target production rate. However, over the years, various changes have been made to the lines. Accordingly, management wishes to determine whether the assembly lines are still operating at the same average hourly production rate. Razor Blazer Tracer 11 10 9 10 8 9 8 9 10...