Question

***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in Preservative file below the question. I will also give "thumbs-up for correct R code" Thanks in advance.***

Chemical preservatives are often used to extend the shelf life of bakery products such as bread, muffins, buns, etc. There ar

(b) [1 point] Based on the interval calculated above, can we say that bread treated with the preservative potassium sorbate g

Here is the rest of the data from the Preservative file to solve the problem. Please solve using R. Thank you!

PS = c(5.3,5,4.8,4.2,5.9,5.6,4.4,5.1,5.3,5.2,5,5,5.2,4.3)
SB = c(5.4,5.8,5.6,5.6,5.6,5.4,5,5,5.6,5.7,5.2,5.3,5.8,5.9)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)

The R code for the required confidence interval for difference of means is done in 2 methods.

R code for first method:

PS = c(5.3,5,4.8,4.2,5.9,5.6,4.4,5.1,5.3,5.2,5,5,5.2,4.3)
SB = c(5.4,5.8,5.6,5.6,5.6,5.4,5,5,5.6,5.7,5.2,5.3,5.8,5.9)
t.test(PS,SB,conf.level = 0.98,var.equal=T)$conf

Output screen:

[1] -0.8403912 -0.1024659
attr(,"conf.level")
[1] 0.98

So using first method ,98% Confidence interval for the given mean difference is :

(-0.8404 , -0.1025). (upto 4 decimal places)

R code for second method:

PS = c(5.3,5,4.8,4.2,5.9,5.6,4.4,5.1,5.3,5.2,5,5,5.2,4.3)
SB = c(5.4,5.8,5.6,5.6,5.6,5.4,5,5,5.6,5.7,5.2,5.3,5.8,5.9)
a=mean(PS)-mean(SB)
b=(sqrt((13*var(PS)+13*var(SB))/26))*(sqrt((1/14)+(1/14)))
z=qt(.99,26)
a-b*z
a+b*z

Output Screen:

[1] -0.8403912
[1] -0.1024659

So using second method ,98% Confidence interval for the given mean difference is :

(-0.8404 , -0.1025). (upto 4 decimal places)

(b) Based on the confidence interval,we can say with 98% confidence that bread treated with the preservative Potassium Sorbet grows mold faster than bread treated with Sodium Benzoate, because both the lower limit and the upper limit of the CI is negative. Also because the average amount of time it takes for bread with the preservative Potassium Sorbet to grow mold is less than the average amount of time it takes for bread with the preservative Sodium Benzoate to grow mold.

Add a comment
Know the answer?
Add Answer to:
***This problem must be done using R so please provide the R code used to find...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • ***This problem must be done using R so please provide the R code used to find...

    ***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in fitbit.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** Here is the rest of the data needed to solve the problem. Please solve using R. Thank you! charge3= c(5.66,4.67,5.99,4.54,4.51,5.26,4.59, 5.1,5.46,4.57,4.41,5.58,5.39,5,5.22, 4.5,4.69,5.38,4.6,4.93) charge4= c(6.05,5.67,7.71,6.46,5.4,5.12,5.76, 4.96,6.22,5.45,4.76,4.45,7.03,5.88, 6.71,6.04,6.32,6.43,5.66,5.94) Fitbit, the maker of popular wearable activity trackers, has recently come out with the...

  • ***Please solve the problem below using R, and provide the R code you used in order...

    ***Please solve the problem below using R, and provide the R code you used in order to do so. Please show all work.*** A survey of 200 people found that 128 people stated that they were trying to avoid trans fats in their diets. a) Find the 95% confidence interval of the true proportion of people who are trying to avoid trans fats in their diets. b) A researcher claims that at least 60% of people are trying to avoid...

  • ***Please solve the problem below using R, and provide the R code you used in order...

    ***Please solve the problem below using R, and provide the R code you used in order to do so. Please show all work.*** A survey of 200 people found that 128 people stated that they were trying to avoid trans fats in their diets. a) Find the 95% confidence interval of the true proportion of people who are trying to avoid trans fats in their diets. b) A researcher claims that at least 60% of people are trying to avoid...

  • ***Please solve the problem below using R, and provide the R code you used in order...

    ***Please solve the problem below using R, and provide the R code you used in order to do so*** The mean undergraduate cost for tuition, fees, room, and board for four-year institutions was $26,489 for the 2004-2005 academic year. Suppose that the standard deviation of the distribution was $3204 and that 36 four-year institutions are randomly selected. Find the probability that the sample mean cost for these 36 schools is a. Less than $25,000 b. Greater than $26,000 c. Between...

  • The Book of R (Question 20.2) Please answer using R code. Continue using the survey data...

    The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...

  • Give at least two points that a working accountant will find useful (using complete sentences). THE...

    Give at least two points that a working accountant will find useful (using complete sentences). THE BOTTOM Changes to Revenue Recoqnition Requirements By Quinn R. Martin, Matthew J. Frazier and Michael J. Devereux Revenue is considered one of the most important financial statement measures. It is used to assess a company's past financial performance, fut ure growth potential and finan- cial well-being. This makes revenue recognition one of the accounting topics most scrutinized by business owners. The Accounting Standards Codification...

  • do the following problem from the text book. please use R software and oost the code along woth answes and any graphs that you are required to make, olease read both pictures 13-10. An article in...

    do the following problem from the text book. please use R software and oost the code along woth answes and any graphs that you are required to make, olease read both pictures 13-10. An article in Environment International [1992, Vol. 18(4)] described an experiment in which the amount of radon released in showers was investigated. Radon-enriched water was used in the experiment, and six different orifice diameters were tested in shower heads. The data from the experiment are shown in...

  • please see the problem and set it in the excel. please provide the formula in every cell in the excel so i understand how it is done. thank you very much. the last pic is what i did so far. so ple...

    please see the problem and set it in the excel. please provide the formula in every cell in the excel so i understand how it is done. thank you very much. the last pic is what i did so far. so please refer to the problem and complete it with all formulas provided for me( for every cell) thank you! 2. Medina werks, a manufacturing company headquartered in Canada, has a competitive advantage that will probably deteriorate over time. analyst...

  • Please, I need help with program c++. This is a chutes and ladders program. The code...

    Please, I need help with program c++. This is a chutes and ladders program. The code must be a novel code to the specifications of the problem statement. Thank you very much. Assignment Overview This program will implement a variation of the game “chutes and ladders” or “snakes and ladders:” https://en.wikipedia.org/wiki/Snakes_and_Ladders#Gameplay. Just like in the original game, landing on certain squares will jump the player ahead or behind. In this case, you are trying to reach to bottom of the...

  • please find the answers only in a time span of 12 hours or less thanks you there are 4 more parts only the answer is needed i put 2 of the same questions so dont worry about that 0 NEXT rt...

    please find the answers only in a time span of 12 hours or less thanks you there are 4 more parts only the answer is needed i put 2 of the same questions so dont worry about that 0 NEXT rt Time: 03:05 PMI financial numbers from other periods as a percent of statement a weight of 100%, and then express base period number multiply that amount by 100. using Dun and Bradstreet. of 12e in equal increments over ome...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT