You have to use R to complete this exercise. [In your R document, type comments (lines that start with #) to both (i) explain what your R commands do, and (ii) answer questions in the problem below.] A rescarcher intends to estimate the effect of a drug on the scores of human subjects performing a task of psychomotor coordination. The members of a random sample of 12 subjects were given the drug prior to testing. The mean score in this group was 11.06, and the sample variance was 11.56. An independent random sample of 8 subjects was used as a control group and given a placebo prior to testing. The mean score in this control group was 13.67, and the sample variance was 14.75. Assuming that the population distributions are normal with equal variances, find a 90% confidence interval for the difference between the population mean scores.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
please use R studio
You have to use R to complete this exercise. [In your R document, type comments (lines that
start with #) to both (i) explain what your R commands do, and (ii) answer questions in the
problem below.]
A researcher intends to estimate the effect of a drug on the scores of human subjects performing a
task of psychomotor coordination. The members of a random sample of 12 subjects were given the
drug prior to testing. The mean score in this group was 11.06, and the sample variance was 11.56. An
independent random sample of 8 subjects was used as a control group and given a placebo prior to
testing. The mean score in this control group was 13.67, and the sample variance was 14.75.
Assuming that the population distributions are normal with equal variances, find a 90% confidence
interval for the difference between the population mean scores.
Transcribed Image Text:You have to use R to complete this exercise. [In your R document, type comments (lines that start with #) to both (i) explain what your R commands do, and (ii) answer questions in the problem below.] A researcher intends to estimate the effect of a drug on the scores of human subjects performing a task of psychomotor coordination. The members of a random sample of 12 subjects were given the drug prior to testing. The mean score in this group was 11.06, and the sample variance was 11.56. An independent random sample of 8 subjects was used as a control group and given a placebo prior to testing. The mean score in this control group was 13.67, and the sample variance was 14.75. Assuming that the population distributions are normal with equal variances, find a 90% confidence interval for the difference between the population mean scores.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman