Question

In: Statistics and Probability

A study presents data on widths and lengths of the native butter clam. Here is a...

A study presents data on widths and lengths of the native butter clam. Here is a small random sample of dimensions for four of these clams that we will use to test whether, in general, the clams are longer than they are wide.

Width Length
3.2
4.4
4.8
5.8
4.1
5.6
6.6
7.0

(a) Use software to carry out a paired t test to see if the mean of differences, width minus length, is negative for the larger population of clams from which the sample was taken: first report the t statistic using software. (Round your answer to two decimal places.)
t =  

(b) Next report the P-value using software. (Round your answer to three decimal places.)


(c) Is there evidence at the 5% level that the population mean is negative?

Yes

No     


(d) To see how choice of test procedure can play a role in conclusions, carry out a two-sample t test to see if the difference between population means is negative. (This is not the appropriate procedure, because the samples of widths and lengths are not independent, but paired together.) Report the t statistic for this test using software. (Round your answer to two decimal places.)
t =  

(e) Report the P-value using software. (Round your answer to three decimal places.)


(f) Would the two-sample test provide evidence at the 5% level that the population mean is negative?

Yes

No     

Solutions

Expert Solution

R-code :

Paired t-test

> w<-c(3.2,4.4,4.8,5.8)
> h<-c(4.1,5.6,6.6,7)
> d<-w-h
> d
[1] -0.9 -1.2 -1.8 -1.2
> mean(d)
[1] -1.275
> sd(d)
[1] 0.3774917

Function for doing lower tailed t-test :

t_lt<-function(mu0,xbar,sigma,n,alpha)
{
z_t<-(xbar-mu0)*sqrt(n)/(sigma)
z_c<-qt(alpha,df=n-1)
pvalue <- pt(z_t,df=n-1)
conc<-ifelse(pvalue>alpha,"Fail to reject H0","Reject H0")
cint<-c("- \U221E",xbar+abs(z_c)*(sigma/sqrt(n)))
op<-c(z_t,z_c,conc,pvalue,cint)
op
}

> t_lt(0,-1.275,0.377,4,0.05)
[1] "-6.76392572944297" "-2.35336343480183" "Reject H0" "0.00330129528999329"
[5] "- ∞" "-0.831390992539856"

Two-sample unequal variance t-test :

> mean(w)
[1] 4.55
> mean(h)
[1] 5.825
> sd(w)
[1] 1.075484
> sd(h)
[1] 1.291962

Function for computing t-test :

twosamuneq <- function(xbar1,xbar2,s1,s2,n1,n2,alpha)
{
t1<-s1^2/n1
t2<-s2^2/n2
nr<-(t1+t2)^2
t3<-(t1^2)/(n1-1)
t4<-(t2^2)/(n2-1)
dr<-t3+t4
d<-nr/dr
s<-(t1+t2)^0.5
z_t<-(xbar1-xbar2)/s
z_c<-qt(1-(0.5*alpha),df=d)
pvalue <- 2*(1-pt(abs(z_t),df=d))
conc<-ifelse(pvalue>alpha,"Fail to reject H0","Reject H0")
cint<-c(xbar1-xbar2-z_c*s,xbar1-xbar2+z_c*s)
moe<-z_c*s
op<-c(z_t,z_c,conc,pvalue,cint,d,s,moe)
op
}

p-value :

> 1-pt(-1.517,df=6)
[1] 0.9099711


Related Solutions

A curtain manufacturer receives three orders for curtain material with widths and lengths as follows: Order...
A curtain manufacturer receives three orders for curtain material with widths and lengths as follows: Order number: 1 2 3 Width (m) : 2.5 3.8 4.9 Length (number of rolls) : 30 50 10 1 2.5 30 2 3.8 50 3 4.9 10 Rolls of curtain material are produced in two standard widths, 5 and 10 m. These can be cut to the sizes specified by the order. There is no practical length limitation as rolls can be joined together....
. A 58-year old Native American presents in the Mercy emergency room with headache, irritability, generalized...
. A 58-year old Native American presents in the Mercy emergency room with headache, irritability, generalized muscle pain and uncontrollable back spasms. He has become very restless and worried because he has had the back spasms all through his court case that afternoon and they became extremely painful. In his history, the patient states that he has a very busy life. He is on medication for high blood pressure (beta blocker) and has mild asthma. He injured himself about 10...
If the true data generating process is normal, how will the bin widths of Scott's rule...
If the true data generating process is normal, how will the bin widths of Scott's rule and Freedman-Diaconis compare?
Table 2 below presents the output for sample data relating the number of study hours spent...
Table 2 below presents the output for sample data relating the number of study hours spent by students outside of class during a three week period for a course in Business Statistics and their score in an examination given at the end of that period. Table :2 SUMMARY OUTPUT Regression Statistics Multiple R 0.862108943 R Square 0.74323183 Adjusted R Square 0.700437135 Standard Error 6.157605036 Observations 8 ANOVA df SS MS F Significance F Regression 1 658.5034 658.5034 17.36738 0.005895 Residual...
Great white sharks are big and hungry. Here are the lengths in feet of 44 great...
Great white sharks are big and hungry. Here are the lengths in feet of 44 great whites. 18.6 16.3 13.3 19.0 12.5 16.5 15.7 16.4 18.5 17.8 14.1 23.0 16.6 16.1 16.8 16.6 15.6 12.7 9.3 13.7 18.4 18.0 18.3 13.4 14.4 13.7 13.3 15.8 15.7 12.1 13.7 19.5 14.8 15.3 15.4 18.6 17.6 14.8 15.9 13.2 12.1 12.5 13.4 16.9 (a) Examine these data for shape, center, spread and outliers. The distribution is reasonably Normal except for one outlier...
HW1. Consider the data set below. Customer Items Bought Ayabakan bread, butter, soap Geng milk, butter...
HW1. Consider the data set below. Customer Items Bought Ayabakan bread, butter, soap Geng milk, butter Goyal peas, milk, soap Raman bread, peas, butter, soap Phan bread, peas, milk, soap Lamba bread, butter, soap Salinas-Ruiz peas, butter, soap Wang bread, peas, milk McGregor bread, milk, butter, soap Vo bread, peas, soap (a) For a minimum support threshold of 30%, apply the concept of the apriori algorithm and identify all the frequent itemsets. Show your analysis steps. (b) Now, for a...
In a study of a parasite in humans and animals. Researchers measured the lengths (in mm)...
In a study of a parasite in humans and animals. Researchers measured the lengths (in mm) of 90 individual parasites of certain species from the blood of a mouse. The measures are shown in the following table: Length 19 20 21 22 23 24 25 26 27 28 29 Frequency 1 2 11 9 13 15 13 12 10 2 2 a. Find the sample median and quartiles. b. Compute the sample mean and sample standard deviation. c. Compute the...
The following data show the lengths of boats moored in a marina. The data are ordered...
The following data show the lengths of boats moored in a marina. The data are ordered from smallest to largest. 16; 17; 19; 20; 20; 21; 22; 23; 24; 24; 24; 25; 25; 26; 26; 26; 27; 28; 29; 32; 33; 33; 34; 35; 37; 39; 40 g. What percent of people surveyed visited a store at least 3 times? h. Find the 40th percentile. i. Construct a histogram of the data. j. Find the percentile of data point 29....
2. The following data show the lengths of boats moored in a marina. The data are...
2. The following data show the lengths of boats moored in a marina. The data are ordered from smallest to largest. 16; 17; 19; 20; 20; 21; 22; 23; 24; 24; 24; 25; 25; 26; 26; 26; 27; 28; 29; 32; 33; 33; 34; 35; 37; 39; 40 a. Find the sample mean ?̅. b. Find the mode. c. Find the first quartile. d. Find the median. e. Find the third quartile. f. Construct a box plot. g. What percent...
The following data show the lengths of boats moored in a marina. The data are ordered...
The following data show the lengths of boats moored in a marina. The data are ordered from smallest to largest. 16; 17; 19; 20; 20; 21; 22; 23; 24; 24; 24; 25; 25; 26; 26; 26; 27; 28; 29; 32; 33; 33; 34; 35; 37; 39; 40 a. Find the sample mean ?̅. b. Find the mode. c. Find the first quartile. d. Find the median. e. Find the third quartile. f. Construct a box plot. g. What percent of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT