Question

In: Statistics and Probability

Use R studio. Bacteria in water are counted as colony-forming units (CFU’s) per milliliter.  Ten bottles of...

Use R studio.

Bacteria in water are counted as colony-forming units (CFU’s) per milliliter.  Ten bottles of water are randomly selected for sampling, with the intention of testing if two different labs produce the same results. Each bottle is divided into two parts, and then given to each of the two labs:

Bottle

1

2

3

4

5

6

7

8

9

10

Lab 1

875

959

475

589

925

1100

971

450

892

728

Lab 2

910

878

410

495

1021

980

1002

130

850

620

  1. Are the ten observations from lab 1 independent of those from lab 2? Why or why not?

Test the hypothesis that the average value from lab 1 higher than that of lab two (a = 0.05). Hint: you can read the data in as vectors, e.g.:

lab1 = c(875,959,475,589,925,1100,971,450,892,728)

  1. What are the null and alternative hypotheses?
  2. What is the test statistic and its p-value?
  3. What decision and conclusion should you make?

Solutions

Expert Solution

Part A

Yes

Since all ten bottles of water are selected randomly and then each bottle is divided into two parts which shows that both are equally likely to be tested in Lab 1 or lab 2 hance the ten observations from lab 1 are independent of lab 2.

Using R Studio

R Script

#Reading Obersvation of Lab1 and Lab2
lab1 = c(875,959,475,589,925,1100,971,450,892,728)
lab2 = c(910,878,410,495,1021,980,1002,130,850,620)#Null Hypothesis
#H0: mean_lab1_value = mean_lab2_value
#H1: Mean_lab2_value ≠ mean_lab2-value

#For Test Statistic and P- value we will use T test for two means

t_test = t.test(x = lab1,y = lab2,alternative = "greater")
t_test

t_test$statistic
t_test$p.value

R output

> #Reading Obersvation of Lab1 and Lab2
> lab1 = c(875,959,475,589,925,1100,971,450,892,728)
> lab2 = c(910,878,410,495,1021,980,1002,130,850,620)
>
> #Null Hypothesis
> #H0: mean_lab1_value = mean_lab2_value
> #H1: Mean_lab2_value ≠ mean_lab2-value
>
> #For Test Statistic and P- value we will use T test for two means
>
> t_test = t.test(x = lab1,y = lab2,alternative = "greater")
> t_test

   Welch Two Sample t-test

data: lab1 and lab2
t = 0.562, df = 16.611, p-value = 0.2908
alternative hypothesis: true difference in means is greater than 0
95 percent confidence interval:
-140.2514 Inf
sample estimates:
mean of x mean of y
796.4 729.6

>
> t_test$statistic
t
0.5619978
> t_test$p.value
[1] 0.2908111

Answer

What are the null and alternative hypotheses?

H0: The mean value of lab1 is equal to the mean value of lab2

H1: The mean value of lab1 is greater than the mean value of lab2

What are the test statistic and its p-value?

test statistic = 0.5619978
P-value = 0.2908111

What decision and conclusion should you make?

Since the p-value is greater than 0.05 hence there is not enough evidence to reject the null hypothesis.

Hence, we can conclude that the mean value of lab1 is equal to the mean value of lab2.


Related Solutions

Colony Forming units
Write the brief explanation of CFU (Colony Forming Unit) calculation with an example.
what is streak plate inoculation techniques what is importance of colony calculating forming unit and bacteria...
what is streak plate inoculation techniques what is importance of colony calculating forming unit and bacteria differentiation what is Grams staining what is gram positive and negative bacteria
The physician prescribed 5,000 units of a medication that is available in 10,000 units per milliliter....
The physician prescribed 5,000 units of a medication that is available in 10,000 units per milliliter. How many mL would the nurse administer? A. 0.5 MI B. 1 mL C. 1.5 mL D. 2 mL
Describe the categories of hematopoietic precursor cells, hematopoietic stem cells, hematopoietic progenitor cells, colony forming units,...
Describe the categories of hematopoietic precursor cells, hematopoietic stem cells, hematopoietic progenitor cells, colony forming units, and maturing cells, including proliferation and differentiation, and morphology (lineage).        (Make a flow chart)
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R...
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R STUDIO CODE WILL NOT SUFFICE. SOLVING WITHOUT THE USE OF R STUDIO IS NOT ACCEPTABLE. The previous question was: Annual salaries for a large company are approximately normally distributed with a mean of 49000 dollars and a standard deviation of 2000 dollars. One manager claims that all of his direct reports are paid "above the 75th percentile" for the company. What is the minimum...
Compare the solubility, in milligrams per milliliter, of silver iodide, AgI, in water that is 0.020M...
Compare the solubility, in milligrams per milliliter, of silver iodide, AgI, in water that is 0.020M in AgNO3 *******answer : 1.0x10^-12    but how do i arrive at this answer? can you show me the work?
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
Please use R and R studio A sample of 15 female collegiate golfers was selected and...
Please use R and R studio A sample of 15 female collegiate golfers was selected and the clubhead velocity (km/hr) while swinging a driver was determined for each one, resulting in the following data (“Hip Rotational Velocities During the Full Golf Swing,” J.of Sports Science and Medicine, 2009: 296–299): 69.0 69.7 72.7 80.3 81.0 85.0 86.0 86.3 86.7 87.7 89.3 90.7 91.0 92.5 93.0 The corresponding z percentiles are -1.83 -1.28 -0.97 -0.73 -0.52 -0.34 -0.17 0.0 0.17 0.34 0.52...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a phat of 0.48 is found. The same survey is repeated with 1000 students, and the same phat value is found. Compare the two 95% confidence intervals. What is the relationship between them? Is the margin of error for the second one four times smaller? If not, how much smaller is it?
Please use R and R studio The accompanying observations are precipitation values during March over a...
Please use R and R studio The accompanying observations are precipitation values during March over a 30-year period in Minneapolis-St. Paul. .77 1.20 3.00 1.62 2.81 2.48 1.74 .47 3.09 1.31 1.87 .96 .81 1.43 1.51 .32 1.18 1.89 1.20 3.37 2.10 .59 1.35 .90 1.95 2.20 .52 .81 4.75 2.05 a. Construct and interpret a normal probability plot for this data set. b. Calculate the square root of each value and then construct a normal probability plot based on...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT