Question

In: Math

Please answer part a) through part d) of the question below. Thank you. Question 3 A...

Please answer part a) through part d) of the question below. Thank you.

Question 3

A tobacco refinery has four methods of measuring pH. To test the
four methods, a supervisor randomly assigns each of 32 tobacco
samples with known pH to one of the four methods, so that each
method is applied to exactly eight samples. The difference between
measured pH and the known pH is recorded, and the data is below.

Method Sample Response
A 1 -0.307
A 2 -0.294
A 3 0.009
A 4 -0.051
A 5 -0.136
A 6 -0.324
A 7 -0.324
A 8 -0.164
B 1 -0.110
B 2 0.125
B 3 -0.013
B 4 0.082
B 5 0.091
B 6 0.459
B 7 0.259
B 8 0.351
C 1 0.137
C 2 -0.063
C 3 0.24
C 4 -0.05
C 5 0.318
C 6 0.154
C 7 0.099
C 8 0.124
D 1 -0.042
D 2 0.69
D 3 0.201
D 4 0.166
D 5 0.219
D 6 0.407
D 7 0.505
D 8 0.311

a) Use R to calculate the means and standard deviations for the four
methods. Based only on these numbers, do the mean pH differences
seem to differ across the methods? Explain.


b) Do the ANOVA conditions hold? Be sure to include your R code,
output, appropriate graphs (boxplots, dotplots), and explanations.


c) Regardless of your answer to (b), run ANOVA with R. Set-up your
null and alternative hypotheses; provide your test statistic, p-value,
and conclusion.


d) Use the Bonferroni adjustment to make a confidence interval for
each of the 6 differences between treatment means, using an
experiment-wise confidence level of 95%.

Solutions

Expert Solution

#### R command

# Read the data

data=read.csv("data.csv", head=T, sep=",")

## The means and standard deviations for the four methods

aggregate(Response ~Method, data = data, function(x) c(mean = mean(x), sd = sd(x)))

## b)

boxplot(Response ~Method, data = data)


## c) ### ANOVA test

model=aov(Response ~factor(Method), data = data)
summary(model)

## Bonferroni adjustment to make a confidence interval

pairwise.t.test(data$Response, data$Method,
p.adjust.method = p.adjust.methods,
alternative = c("two.sided"))

### End the command

## Run

> # Read the data
>
> data=read.csv("data.csv", head=T, sep=",")
> ## The means and standard deviations for the four methods
>
> aggregate(Response ~Method, data = data, function(x) c(mean = mean(x), sd = sd(x)))
Method Response.mean Response.sd
1 A -0.1988750 0.1321800
2 B 0.1555000 0.1891409
3 C 0.1198750 0.1297772
4 D 0.3071250 0.2256960

## Comment: From the above table, we can conclude that at least the methods A and D may have a different mean.

> ## b)
>
> boxplot(Response ~Method, data = data)
>

From the above box-plots, we can conclude that the response at each method may follow the normal distribution and the median of method A may different from the remaining methods.

### ANOVA test

# Null hypothesis: All the means at different methods are the same.

# Alternative Hypothesis: At least one method has a significant mean.

> model=aov(Response ~factor(Method), data = data)
> summary(model)
Df Sum Sq Mean Sq F value Pr(>F)
factor(Method) 3 1.0851 0.3617 11.95 3.23e-05 ***
Residuals 28 0.8472 0.0303   
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

#Test statistic=11.95

#P-value= 11.95 3.23e-05 ***

#Conclusion: The p-value is less than 0.05 level of significance. Hence, we reject the null hypothesis and conclude that at least one method has significant mean. at the 0.05 level of significance.

> pairwise.t.test(data$Response, data$Method,
+ p.adjust.method = p.adjust.methods,
+ alternative = c("two.sided"))

Pairwise comparisons using t tests with pooled SD

data: data$Response and data$Method

A B C   
B 0.0017 - -   
C 0.0041 0.6852 -   
D 1.8e-05 0.1845 0.1202

P value adjustment method: holm

## Comment: From this test the method A has a significant mean difference with remaining methods. But methods B, C, and D do not have a significant mean differences.



Related Solutions

please answer question 3 and 4 based on the article below. thank you Questions What type...
please answer question 3 and 4 based on the article below. thank you Questions What type of international strategy would you say Inditex is following? Justify your answer. What is Zara’s business strategy? Explain. How is the international strategy of Inditex related to the business strategy of Zara? Explain. Why is it that no other fashion retailer can match Zara's performance? Inditex is a Spanish company started more than forty years ago, which owns Zara and other brands. The first...
Please answer this two part question. Thank you! For this assignment you must write the following...
Please answer this two part question. Thank you! For this assignment you must write the following functions in Scheme: 2.1 Write a recursive function called eval-poly that takes a list of numbers representing the coefficients of a polynomial and a value for ? and evaluates the polynomial for the given value of ?. The list of coefficients should start with the term of lowest degree and end with the term of highest degree. If any term of intermediate degree is...
Please answer this multi-part question. Thank you! For this assignment you must write the following function...
Please answer this multi-part question. Thank you! For this assignment you must write the following function in Scheme: 4 Write a recursive function called mergesort that sorts a list by doing the following: (a) Use split to split the list into two roughly equal-sized partitions. (b) Recursively sort both partitions. (c) Use merge to merge the sorted partitions together. Once again you will need two base cases, one for the empty list and the other for a single-element list. >...
Please answer this multi-part question. Thank you! For this assignment you must write the following functions...
Please answer this multi-part question. Thank you! For this assignment you must write the following functions in Scheme: 4 Write a recursive function called mergesort that sorts a list by doing the following: (a) Use split to split the list into two roughly equal-sized partitions. (b) Recursively sort both partitions. (c) Use merge to merge the sorted partitions together. Once again you will need two base cases, one for the empty list and the other for a single-element list. >...
This question has two parts. Please answer both, thank you! Part A.) On the first day...
This question has two parts. Please answer both, thank you! Part A.) On the first day of the fiscal year, a company issues a $8,200,000, 9%, 9-year bond that pays semiannual interest of $369,000 ($8,200,000 × 9% × ½), receiving cash of $6,868,206. Journalize the first interest payment and the amortization of the related bond discount. Round to the nearest dollar. If an amount box does not require an entry, leave it blank. Interest Expense Discount on Bonds Payable Cash...
Each question has 6-7 parts, depending on the work. Please answer every part. Thank you. -...
Each question has 6-7 parts, depending on the work. Please answer every part. Thank you. - What is the formula for the Average Propensity to Consume (APC)? Group of answer choices consumption divided by income the change in consumption divided by a change in income income divided by consumption the change in income to a change in consumption None of the above - How does the size of the Marginal Propensity to Consume (MPC) affect the size of the multiplier...
Each question has 8-9 parts, depending on the work. Please answer every part. Thank you. -...
Each question has 8-9 parts, depending on the work. Please answer every part. Thank you. - The government spending multiplier is Group of answer choices the ratio of the change in the equilibrium level of output to a change in government spending the difference between the new and old levels of government spending. the ratio of the change in government spending to the change in the equilibrium level of output the difference between the old level of equilibrium output and...
Please answer a statistic problem(please answer all subquestions). Thank you very much. NCbirths, cont' d. This...
Please answer a statistic problem(please answer all subquestions). Thank you very much. NCbirths, cont' d. This time we will use a subset of the dataset after removing premature birth (36 weeks or sooner) and continue to use MomRace as the explanatory variable to predict birth weight. To get NCbirths: install.packages("Stat2Data") library(Stat2Data) data("NCbirths") (a) Use the following R command to remove premature birth and create a dataset noPremie. noPremies<-subset(NCbirths, NCbirths$Premie==0) ##subset(dataName, condition) (b) Construct a side-by-side boxplot of birth weights separated...
Please show your work - the answer is d) but I'm not sure why. Thank you!...
Please show your work - the answer is d) but I'm not sure why. Thank you! The time it takes to complete a Sta220 term test is normally distributed with a mean of 100 minutes with standard deviation of 14 minutes. How much time should be allowed if we wish to ensure that at least 9 out of 10 students (on average) can complete it? (round to the nearest minute) A) 115 B) 116 C) 117 D) 118 E) 119
Please read through the article below and answer the question at the end of the article....
Please read through the article below and answer the question at the end of the article. Strategy as a Wicked Problem Over the past 15 years, I’ve been studying how companies create strategy—the most important responsibility of senior executives. Many corporations, I find, have replaced the annual top-down planning ritual, based on macroeconomic forecasts, with more sophisticated processes. They crunch vast amounts of consumer data, hold planning sessions frequently, and use techniques such as competency modeling and real-options analysis to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT