Question

In: Math

PLEASE USE R PROGRAMMING TO SOLVE THIS AND GIVE A COPYABLE CODE Professor David teach Math...

PLEASE USE R PROGRAMMING TO SOLVE THIS AND GIVE A COPYABLE CODE

Professor David teach Math 1054. In that course, there are 5 exams, 4 midterm exams, plus final exam. You are asked to help him to check whether there is significant difference among the difficulty level in these 5 exams. The data is stored in Math1054Exam.txt.

a). read in data (copy your R code)

b). Find averages for these exams. You can use mean(V) function, or summary(data) function.

c). Are these averages differ significantly? We need to use ANOVA. For this purpose, you need to use stack function to change the data format as two column, one is score, the

other is exam index.

d). Produce a boxplot for the five exams.

e). Conduct ANOVA test.

f). Copy your ANOVA table.

g). Make your conclusion.

------------------------------------------------------------------------------4

Math1054Exam.txt.

T1   T2   T3   T4   Final
90   69   62   65   92
67   59   78   63   43
76   73   66   41   71
80   92   46   92   70
98   79   60   84   99
82   80   69   83   94
69   45   47   70   37
83   90   54   66   50
93   94   90   94   99
66   67   50   52   32
45   71   55   58   83
76   92   65   72   95
73   92   84   70   77
81   68   30   53   34
60   58   43   50   36
92   90   86   89   95
62   54   52   60   88
85   80   65   82   88
69   80   81   67   75
71   88   43   61   89

Solutions

Expert Solution

data =read.table("../Documents/Tutoring/Software/random data/exam.txt",header =T)

#b
sapply(data, mean)
#c
sData<- stack(data)
model <- aov( values~ind , sData)
summary(model)

#d
boxplot(data)

b)

c)

p-value = 0.0414 < alpha (0.05)

hence we reject the null hypothesis

we conclude that there is significant difference

d)

e)

p-value = 0.0414 < alpha (0.05)

hence we reject the null hypothesis

we conclude that there is significant difference

f)

           Df Sum Sq Mean Sq F value Pr(>F)  
ind          4   3021   755.3   2.593 0.0414 *
Residuals   95  27672   291.3                 
---

g)

p-value = 0.0414 < alpha (0.05)

hence we reject the null hypothesis

we conclude that there is significant difference

Please rate


Related Solutions

PLEASE USE R PROGRAMMING TO SOLVE THIS AND PASTE A COPYABLE CODE Photoresist is a light-sensitive...
PLEASE USE R PROGRAMMING TO SOLVE THIS AND PASTE A COPYABLE CODE Photoresist is a light-sensitive material applied to semiconductor wafers so that the circuit pattern can be imaged on to the wafer. After application, the coated wafers are baked to remove the solvent in the photoresist mixture and to harden the resist. Here are measurements of photoresist thickness (in kA) for eight wafers baked at two different temperatures. We want to see whether different temperatures make difference. The data...
Please use C programming to write the code to solve the following problem. Also, please use...
Please use C programming to write the code to solve the following problem. Also, please use the instructions, functions, syntax and any other required part of the problem. Thanks in advance. Use these functions below especially: void inputStringFromUser(char *prompt, char *s, int arraySize); void songNameDuplicate(char *songName); void songNameFound(char *songName); void songNameNotFound(char *songName); void songNameDeleted(char *songName); void artistFound(char *artist); void artistNotFound(char *artist); void printMusicLibraryEmpty(void); void printMusicLibraryTitle(void); const int MAX_LENGTH = 1024; You will write a program that maintains information about your...
Use R programming to resolve this; can you please provide details on the code? A) Create...
Use R programming to resolve this; can you please provide details on the code? A) Create a dataframe – comparativeGenomeSize with the following vectors: > organism<-c("Human","Mouse","Fruit Fly", "Roundworm","Yeast") > genomeSizeBP<-c(3000000000,3000000000,135600000,97000000,12100000) > estGeneCount<-c(30000,30000,13061,19099,6034) B) Print the organism and estGeneCount for Human and fruitfly.(1) C) Add a column to this data frame calculating base pairs per gene. To do this, write a function “genedensity” that takes as arguments the genomesizeBP and estimatedGeneCount information, and calculates from this the estimated bp per gene....
Use R programming language to answer and please so show the code as well. A paper...
Use R programming language to answer and please so show the code as well. A paper manufacturer studied the effect of three vat pressures on the strength of one of its products. Three batches of cellulose were selected at random from the inventory. The company made two production runs for each pressure setting from each batch. As a result, each batch produced a total of six production runs. The data follow. Perform the appropriate analysis. Table is below Batch Pressure...
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all...
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all six faces appear exactly once in six tosses of fair dice.
*****************PLEASE GIVE THE CODE IN RACKET PROGRAMMING ONLY AND MAKE SURE THE CODE RUNS ON WESCHEME...
*****************PLEASE GIVE THE CODE IN RACKET PROGRAMMING ONLY AND MAKE SURE THE CODE RUNS ON WESCHEME IDE*************** Write a recursive Racket function "keep-short-rec" that takes an integer and a list of strings as parameters and evaluates to a list of strings. The resulting list should be all of the strings from the original list, maintaining their relative order, whose string length is less than the integer parameter. For example, (keep-short-rec 3 '("abc" "ab" "a")) should evaluate to '("ab" "a") because...
*****************PLEASE GIVE THE CODE IN RACKET PROGRAMMING ONLY AND MAKE SURE THE CODE RUNS ON WESCHEME...
*****************PLEASE GIVE THE CODE IN RACKET PROGRAMMING ONLY AND MAKE SURE THE CODE RUNS ON WESCHEME IDE*************** Write a recursive Racket function "sum-diff" that takes two lists of integers that are the same length and evaluates to an integer. The resulting integer should be the sum of the absolute value of the differences between each pair of integers with the same index in the two lists. For example (sum-diff '(-1 -2 -3) '(1 2 3)) should evaluate to 12 because...
Does anyone know the code to use in R programming to create a scatter plot?
Does anyone know the code to use in R programming to create a scatter plot?
Does anyone know the code to use in R programming to create a box plot?
Does anyone know the code to use in R programming to create a box plot?
Discuss how to use R programming to solve the following problem. You’re not just writing the...
Discuss how to use R programming to solve the following problem. You’re not just writing the R code, you are also discussing the process. Given a person’s full name in the format of firstName middleName lastName such as Michael Carlos Dumas, write R code(s) to convert it to the format of lastName, middleInitial, firstName. In the case of Michael Carlos Dumas, the converted name is Dumas, C. Michael. Your solution should work with any names that comply with the format....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT