Question: 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

 Let's examine R's datasets material iris. The investigated variables are assumed

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!