Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let's examine R's datasets material iris. The investigated variables are assumed to be independent samples from normal distributions. 3.) Store in the vector x the

image text in transcribed
Let's examine R's datasets material iris. The investigated variables are assumed to be independent samples from normal distributions. 3.) Store in the vector x the values of the variable Sepal.Width that are measured for the species \"setosa\" and in the vector y those that are measured for the species \"versicolor\". b.) Let's test the null hypothesis H 0 : pix = My , where #35 is the average sepal width of the species setosa and My is the average sepal width of the species versicolor. Assume that the variances of the sepal widths of setosa and versicolor are equal and test the aforementioned null hypothesis with a two-sample t-test using the function t.test. Store the value of the test variable in variable a1 and the p-value in variable a2. Hint: to calculate the test of equal variances, you must specify var.equal=TRUE in the arguments of the function t.test. c.) In the case of different and unknown variances, Welch's test size can be used in the two-sample t-test, which then gives more reliable results. Test the hypothesis in point b again, but now use Welch's test variable by giving var.equal=FALSE as an argument to the function t.test. Store the value of the test variable in variable a3 and the p-value in variable a4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

WebAssign For A First Course In Differential Equations With Modeling Applications

Authors: Dennis G Zill

11th Edition

1337879770, 9781337879774

More Books

Students also viewed these Mathematics questions

Question

How easy the information is to remember

Answered: 1 week ago

Question

The personal characteristics of the sender

Answered: 1 week ago