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 fitbit.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.***

Fitbit, the maker of popular wearable activity trackers, has recently come out with the Charge 4, the successor to the Charge

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)

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

The r- codes are provided below along with output, we check the normality condition and it is fullfill so we can use t test.

> 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)
> shapiro.test(charge3)

   Shapiro-Wilk normality test

data: charge3
W = 0.91872, p-value = 0.09361

> shapiro.test(charge4)

   Shapiro-Wilk normality test

data: charge4
W = 0.98844, p-value = 0.9955

> t.test(charge4,charge3,var.equal=T)

   Two Sample t-test

data: charge4 and charge3
t = 4.4117, df = 38, p-value = 8.178e-05
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
0.4862048 1.3107952
sample estimates:
mean of x mean of y
   5.9010    5.0025

a) The 95 % confidence interval for mu(charge4)-mu(charge3) is given by,

95 percent confidence interval:
( 0.4862048, 1.3107952)

b) Here the value zero does not lies in the interval, hence we conclude that the charge4 hold a charge significantly longer than the charge3.

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 Preservative file below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** 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) Chemical preservatives are often used to extend the shelf life of bakery...

  • ***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...

  • Solve using R and show R code Instruction: Please submit your R code along with a...

    Solve using R and show R code Instruction: Please submit your R code along with a brief write-up of the solutions. Some of the questions below can be answered with very little or no programming. However, write code that outputs the final answer and dos not ryuira uper calceulatioms. Q.N. 1) The mammals data set in the MASS package records brain size and body size of 62 different mammals a) Fit a regresion model to describe the relation between brain...

  • ***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...

  • Solve these problems using R and report the results in a single PDF. The R code should be submitt...

    Solve these problems using R and report the results in a single PDF. The R code should be submitted separately 1. A microbiologist is investigating the growth of algae in acetic acid. She suspects that the pH level, temperature, and size of vessel in which the algae is grown influences the growth of algae. She decided to use a 5 × 5 Graeco-Latin square design to isolate the variations due to other sources. The Greek letters represent temperature at five...

  • Use R to do the following. please provide the code Import the data set `UScereal`, create...

    Use R to do the following. please provide the code Import the data set `UScereal`, create a scatter plot of `calories` modeled by `sugars` using the `shelf` variable to create different plot characters. Add a legend to indicate the shelf number. Is there any patterns? (Use base R plotting for this problem.)

  • Data is being encoded using a certain line code with r=2 and a data rate of...

    Data is being encoded using a certain line code with r=2 and a data rate of 17Mbps. Assume the channel bandwidth is to be scaled by a factor of (1/4) and a different line code is to be used where the new r=3. What is the new data rate in Mbps? (Assume c=1/2)

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

  • Please write the R code to solve the question. Problem (2). In an effort to link...

    Please write the R code to solve the question. Problem (2). In an effort to link cold environments with hypertension in humans, a preliminary experiment was conducted to investigate the effect of cold on hypertension in rats. Two random samples of 6 rats each were exposed to different environments. One sample of rats were held in a normal environment at 26°C. The other sample was held in a cold 5°C environment. Blood pressures and heart rates were measured for rats...

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