Question

2) Now read the following data into R. Use R for all statistical procedures. Sample Sample...

2) Now read the following data into R. Use R for all statistical procedures. Sample Sample A B 0.7969 1.4731 1.2669 3.2137 1.5856 2.2486 0.4959 1.1156 0.5022 10.6207 0.5524 1.9835 10.3060 31.2243 0.6244 3.7984 1.9789 1.4710 1.6788 9.0351 (a) Make q-q plots of both samples. (b) Perform a t-test (unequal variances). (c) Perform a MWU test. (d) Which test gave you the better p-value now? Why? (e) What is a “better” p-value? Why? 3) You measure the length of 5 radish seedlings at 7 days and 10 days and get the following results in mm (do NOT use R except for part (d)): seedling #: 1 2 3 4 5 ¯y s 5 days: 30 20 38 49 32 33.8 10.686 7 days: 35 27 46 58 34 40 12.145 difference: -5 -7 -8 -9 -2 -6.2 2.775 (a) Is there a difference in length? (b) Repeat (a), but now use a regular (unpaired) t-test. (c) What happened in (b)? (d) Verify the normal distribution assumption for the paired t-test you did in (a). (You may use R for this part). 4) Here are data on the lengths of male and female roaches (in mm). Your job is to find out if there is a difference between male and female roaches. males 15.4 13.9 12.7 9.6 6.6 10.7 9.9 13.3 16.2 9.0 11.4 16.6 12.2 females 16.7 16.3 12.8 16.9 15.1 12.8 18.7 18.3 8.6 13.6 15.3 16.2 13.4 It's up to you to figure out what the best procedure is, what kind of hypotheses to use, which α to use, what test to use, and so on. Make sure you follow all the steps. You should probably use R as you’ll get done much quicker. Remember to very clearly state your results in writing. Never turn in just an R printout. Hint: how do you decide which test to use? What kind of distributions do the data have? 5) You want to determine the effect of soap on bacterial colonies. In order to make sure that the environment does not affect your experiment, you divide 12 different petri dishes in half - one side is exposed to soap, the other is a control. You measure the number of colonies that grow in each petri dish and come up with the following results: petri dish 1 2 3 4 5 6 7 8 9 10 11 12 soap 11 5 4 10 14 7 13 12 17 8 11 9 control 20 17 11 17 26 18 21 25 24 17 17 17 Perform a complete hypothesis test to see if there is a difference in bacterial colonies between the soap and control dishes.

Homework Answers

Answer #1

2)

the R code is below for the problem

samples=c(0.7969, 1.4731, 1.2669, 3.2137 ,1.5856 ,2.2486, 0.4959 ,1.1156, 0.5022
,10.6207, 0.5524 ,1.9835, 10.3060 ,31.2243, 0.6244 ,3.7984 ,1.9789 ,
1.4710 ,1.6788, 9.0351)
length(samples)
A=samples[seq(1,20,2)]
B=samples[seq(2,20,2)]
#part a
qqplot(A,rnorm(10),main="qqplot of A")
qqline(A)


qqplot(B,rnorm(10),main="qqplot of B")
qqline(B)
#part b and c
t.test(A,B,var.equal=F) #p-value=0.1598
wilcox.test(A,B) #p-value=0.01469

#part d
here we much high p-value in case of t-test compared to wilcox test.
this is because we have used non-parametric method for wilcox.
the wilcox is more appropriate since the data is not normal isfollowed from qqplot.

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
consider the data of pretest and post test scores X1 (pre) X2(post) 2 5 3 7...
consider the data of pretest and post test scores X1 (pre) X2(post) 2 5 3 7 6 11 5 9 perform a related-samples t-test on above data. a) Conducting a two tailed hypothesis test at the alpha = 0.01 what is the critical t value?    b) what is the obtained t value that you calculated from the above dataset?    c) given the obtained t and critical t values, is the mean of the difference scores statistically significant why...
Now suppose a larger sample (30 pairs vs 10 pairs) was collected and a paired t...
Now suppose a larger sample (30 pairs vs 10 pairs) was collected and a paired t test was used to analyze the data. The output is shown below. Paired Samples Statistics Mean N Std. Deviation Std. Error Mean Pair 1 Female salaries 6773.33 30 782.099 142.791 Male salaries 7213.33 30 875.227 159.794 Paired Samples Correlations N Correlation Sig. Pair 1 Female salaries & Male salaries 30 .881 .000 Paired Samples Test Paired Differences t df Sig. (2-tailed) Mean Std. Deviation...
In what follows use any of the following tests/procedures: Regression, confidence intervals, one-sided t-test, or two-sided...
In what follows use any of the following tests/procedures: Regression, confidence intervals, one-sided t-test, or two-sided t-test. All the procedures should be done with 5% P-value or 95% confidence interval. Use the same MathCreditsSalary data. SETUP: Is it reasonable to claim that people who took more than 10 math credits will have average salary of 41000 or more? 5. What test/procedure did you perform? a. One-sided t-test b. Two-sided t-test c. Regression d. Confidence interval 6. What is the P-value/margin...
Use the data below to run a regression in R Studio and answer the following question....
Use the data below to run a regression in R Studio and answer the following question. You are given the following information about x and y. x                          y Independent    Dependent Variable            Variable 15                       5 12                       7 10                       9 7                         11 The least squares estimate of b1 equals _____. Group of answer choices a. 16.412 b. –0.13 c. 21.4 d. –0.7647
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
1 of 2 Geoff is the proud owner of a restaurant. He is interested in determining...
1 of 2 Geoff is the proud owner of a restaurant. He is interested in determining whether his Wagyu beef or Hiramasa kingfish sashimi should be marketed as the Geoff Special. Geoff has selected a random sample of 20 people to taste his Wagyu beef and give it a score out of 100. He also selected a different random sample of 20 people to taste his Hiramasa kingfish sashimi and give it a score out of 100. The sample mean...
Consider the following data from a repeated-measures design. You want to use a repeated-measures t test...
Consider the following data from a repeated-measures design. You want to use a repeated-measures t test to test the null hypothesis H0: µD = 0 (the null hypothesis states that the mean difference for the general population is zero). The data consist of five observations, each with two measurements, A and B, taken before and after a treatment. Assume the population of the differences in these measurements are normally distributed. Observation A B 1 1 3 2 3 4 3...
Use SPSS for this Application Exercise: A gerontologist working a in nursing home believes that no...
Use SPSS for this Application Exercise: A gerontologist working a in nursing home believes that no personal control is associated with feelings of well-being. In a field experiment, residents on one floor of the nursing home were given opportunities for personal control in their lives; e.g., arrange their own furniture, decide how to spend free time, choose and take care of a plant, etc. In another floor, residents were treated as usual. After 40 days the residents are asked to...
Enter the hypothetical data below in SPSS to use for the assignment. The SPSS commands: 'file',...
Enter the hypothetical data below in SPSS to use for the assignment. The SPSS commands: 'file', 'new', 'data' will create a spreadsheet in which to enter the data below (manually). Case      Group                   Test 1              1                              6 2              1                              7 3              1                              5              4              1                              4 5              1                              1 6              2                              3 7              2                              5 8              2                              2 9              2                              5 10           2                                1 The groups are coded as follows: 1=experimental group, 2 control group. The participants in the experimental...