Can you please tell me what more information I need to provide to solve below problem? 1....

50.1K

Verified Solution

Question

Basic Math

Can you please tell me what more information I needto provide to solve below problem?

1. Find out below using R

Hints: Use iris dataset from R (built in data set inR)

a) Create a new data frame called virginica.versicolor(that only contains these two species)

the command I used:

virginica.versicolor <- iris[iris$Species %in%c(\"versicolor\", \"virginica\"), ]

b) What is your null hypothesis regarding sepal lengths for thetwo species (virginica.versicolor) ? And what isyour alternate hypothesis?

c) Describe your hypotheses in terms of your test statistic:what would be the t under the null hypothesis,H0, and what would be the statement aboutt under your alternate hypothesis Ha?

d) Would you do a one- or non-(i.e., two-sided) directionaltest? Why?

e) Conduct a Student’s t-test usingthe formula format as follows:

t.test(sepal.length ~ species, data = virginica.versicolor,var.equal = T).

f) Explain what the three different sections do within thet.test() function.

g) Did your function run a one- or non-directional test?

h) What is your t-value? Based on the results of your t-test,what is your conclusion and why?

Answer & Explanation Solved by verified expert
3.5 Ratings (518 Votes)
a Create data frame virginicaversicolor Code datairis virginicaversicolor tcritical It means that the alternate hypotesis is accepted if the test statistic t tcritical d Since we will be testing if there is a difference in the sepal lengths of the two species and not testing if one species sepal length is greatersmaller than    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students