Question

A biologist is studying the behavior of snails. As a part of this study, the biologist...

A biologist is studying the behavior of snails. As a part of this study, the biologist and his students used snails from a natural population to measure the distances (in cm) that snails travel per day.

A sample (m1) of 30 measurements in cm that snails traveled per day is obtained.

Generate the sample using the R codes below:

set.seed(12345678)

Z = rexp(30,0.01)

m1 = round(Z,1)

State the sample (m1) that you obtained.

Use these data to answer the following questions.

(a) Find the mean (?̅) and standard deviation (s) for the sample.

(b) Plot a box plot for the sample. What is the shape of the distribution? Is the distribution symmetrical or skewed? Does the distribution have a large spread? Explain.

(c) Test the hypothesis that the distances that snails traveled per day come from an exponential distribution with rate ?, using 0.05 level of significance. Use 1/?̅ as an estimate of ?.

(i) Group the data into 5 classes, with equal probabilities for each class. Thus, the expected value for each class will be 6.0. Use a chi-square goodnessof-fit test to test the hypothesis above and state your conclusion.

ii) A non-parametric test called the Kolmogorov-Smirnov goodness-of-fit test can also be used to decide if a sample comes from a specific continuous distribution. Explain about this test and use this test to test the hypothesis above. State your conclusion.

(iii) Compare your conclusion in parts (i) and (ii), is there any difference? Explain

Homework Answers

Answer #1

set.seed(12345678)

Z = rexp(30,0.01)

m1 = round(Z,1)

a).
> mean(m1)
[1] 79.10333

> sd(m1)
[1] 77.58231

b). > boxplot(m1)

  • The distribution is left skewed
  • It is not symmetric
  • Yes, the spread is large as can also be seen from standard deviation value

c).

> t.test(1/m1,mu = 0,alternative = "two.sided",conf.level = 0.95)

   One Sample t-test

data: 1/m1
t = 1.6642, df = 29, p-value = 0.1068
alternative hypothesis: true mean is not equal to 0 ( is significant)
95 percent confidence interval:
-0.02098196 0.20425497
sample estimates:
mean of x
0.0916365

as = 1/mean, 1/m1 is the vector passed and mean of x = = 0.0092

Please rate my answer and comment for doubt.

Know the answer?
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
Similar Questions
A study was conducted to determine whether the mean braking distance of four-cylinder cars is greater...
A study was conducted to determine whether the mean braking distance of four-cylinder cars is greater than the mean braking distance of six-cylinder cars. A random sample of 20 four-cylinder cars and a random sample of 20 six-cylinder cars were obtained, and the braking distances were measured. (a) What would be the appropriate hypothesis test for this analysis? (i) t-test for two independent samples (ii) t-test for dependent samples (iii) z-test for population mean (iv) correlation (b) Explain the rationale...
A civil engineer has been studying the frequency of vehicle accidents on a certain stretch of...
A civil engineer has been studying the frequency of vehicle accidents on a certain stretch of interstate highway. Longterm history indicates that there has been an average of 1.74 accidents per day on this section of the interstate. Let r be a random variable that represents number of accidents per day. Let O represent the number of observed accidents per day based on local highway patrol reports. A random sample of 90 days gave the following information. r 0 1...
Canada found a mean thickness of 68 cm. A Colorado study had a random sample of...
Canada found a mean thickness of 68 cm. A Colorado study had a random sample of 12 avalanches in spring, which gave a sample mean thickness of 64.5 cm with a standard deviation of 7.9 cm. Assume the slab thickness has a normal distribution and use an α= 10% level of significance to test the claim that the mean slab thickness in the Colorado region is less than Canada’s slab thickness. show work. State the null and alternate hypotheses for...
During fiscal year 2004, the mean monthly benefit per person participating in the federal food-stamp program...
During fiscal year 2004, the mean monthly benefit per person participating in the federal food-stamp program in Nebraska was $79.52. Due to the poor economy, more people are using this support program to purchase eligible food. A random sample of 15 people using food stamps was obtained, the sample mean was $80.97 and the sample standard deviation was $4.50. Assume the distribution of monthly benefit per person is normal and use α=0.05. Is there any evidence the true mean monthly...
In a study of health behavior, a random sample of 500 subjects from a major city...
In a study of health behavior, a random sample of 500 subjects from a major city was surveyed. In this random sample, 310 responded that they had dinner mostly after 8 PM. At 5% level of significance, does the data support that more than 60% of the residents in this city had dinner after 8 PM? (Must state null and alternative hypotheses and use p-value to conclude the test. You can use Chi-square Goodness of fit test or Binomial test...
In a study of health behavior, a random sample of 500 subjects from a major city...
In a study of health behavior, a random sample of 500 subjects from a major city was surveyed. In this random sample, 310 responded that they had dinner mostly after 8 PM. At 5% level of significance, does the data support that more than 60% of the residents in this city had dinner after 8 PM? (Must state null and alternative hypotheses and use p-value to conclude the test. You can use Chi-square Goodness of fit test or Binomial test...
A nationwide study a few years ago showed that American women, ages 19-30, consume an average...
A nationwide study a few years ago showed that American women, ages 19-30, consume an average of 110 milligrams of caffeine per day. Recently a group of Stats students decided to test whether the average was more than that now. They obtained a random sample of 25 American women, ages 19-30, whose average daily consumption was 115 milligrams of caffeine per day. The standard deviation was s = 14, and a histogram was unimodal and nearly symmetric with no outliers....
A researcher is testing the effectiveness of a new herbal supplement that claims to improve memory...
A researcher is testing the effectiveness of a new herbal supplement that claims to improve memory performance.  A sample of n = 25 college students is obtained and each student takes the supplement daily for six week.  At the end of the 6-week period, each student is given a standardized memory test and the average score for the sample is M = 39.  For the general population of college students, the distribution of test scores is normal with a mean of µ =...
A professional employee in a large corporation receives an average of µ = 41.7 e-mails per...
A professional employee in a large corporation receives an average of µ = 41.7 e-mails per day. An anti-spam protection program was installed in the company's server and one month later a random sample of 45 employees showed that they were receiving an average of ?̅= 36.2 e-mails per day. Assume that ơ = 18.45. Use a 5% level of significance to test whether there has been a change (either way) in the average number of emails received per day...
A professional employee in a large corporation receives an average of µ = 41.7 e-mails per...
A professional employee in a large corporation receives an average of µ = 41.7 e-mails per day. An anti-spam protection program was installed in the company's server and one month later a random sample of 45 employees showed that they were receiving an average of ?̅= 36.2 e-mails per day. Assume that ơ = 18.45. Use a 5% level of significance to test whether there has been a change (either way) in the average number of emails received per day...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT