Question

in R

For the iris dataset, store the 50 sepal lengths for the 50 versicolor rises in a vector x For the iris dataset, store the 50

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We have written a code in R

below is the code for R

#part a
z=data.frame(iris)

x=z[z$Species=="versicolor",which(names(z)=="Sepal.Length")]
#part b
y=z[z$Species=="virginica",which(names(z)=="Sepal.Length")]
#part c
mean(x);var(x)

mean(y);var(y)
#part d

var.test(x,y) # here signifies that the two variable x and y has equal variance

T=t.test(x,y) #perform welch t-test
#part e
T$p.value
#here p-value is < 0.05 we can say that the means are not equal.

as per HomeworkLib policy we have permission to answer first 4 subparts only

Add a comment
Know the answer?
Add Answer to:
in R For the iris dataset, store the 50 sepal lengths for the 50 versicolor rises...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • An article gave a scatter plot along with the least squares line of x = rainfall...

    An article gave a scatter plot along with the least squares line of x = rainfall volume (m3) and y = runoff volume (m3) for a particular location. The accompanying values were read from the plot. х 4 12 14 17 23 30 40 48 55 67 72 81 96 112 127 y 4 10 13 14 15 25 27 44 38 46 53 70 82 99 104 (a) Does a scatter plot of the data support the use of...

  • Big Mike’s, a large hardware store, has gathered data on its overhead activities and associated costs...

    Big Mike’s, a large hardware store, has gathered data on its overhead activities and associated costs for the past 10 months. Nizam Sanjay, a member of the controller’s department, believes that overhead activities and costs should be classified into groups that have the same driver. He has decided that unloading incoming goods, counting goods, and inspecting goods can be grouped together as a more general receiving activity, since these three activities are all driven by the number of receiving orders....

  • Classification in Python: Classification In this assignment, you will practice using the kNN (k-Nearest Neighbors) algorithm...

    Classification in Python: Classification In this assignment, you will practice using the kNN (k-Nearest Neighbors) algorithm to solve a classification problem. The kNN is a simple and robust classifier, which is used in different applications. The goal is to train kNN algorithm to distinguish the species from one another. The dataset can be downloaded from UCI Machine Learning Repository: https://archive.ics.uci.edu/ml/machine-learning-databases/iris/ (Links to an external site.)Links to an external site.. Download `iris.data` file from the Data Folder. The Data Set description...

  • ACTIVITY ACTIVITY 2 A Determining the Densities of Solutions 1. Weigh an empty 50-ml graduated cylinder....

    ACTIVITY ACTIVITY 2 A Determining the Densities of Solutions 1. Weigh an empty 50-ml graduated cylinder. Record the mass in Data Table 2. 2. Add 5 mL of water (0% sucrose) to the 50-ml graduated cylinder. Use the pipet to add or remove small quantities of liquid so that the water is exactly at the 5-mL mark. 3. Record the Mass of Solution + Graduated Cylinder in Data Table 2. 4. Add more water until the cylinder contains 10 mL...

  • Problem 1 Please do not use any type of software to solve this problem; perform all...

    Problem 1 Please do not use any type of software to solve this problem; perform all the calculations and draw the charts by hand. You can use your calculator only for simple operations like addition, multiplication, finding averages and standard deviations. The owner of an apartment complex with three-bedroom units is trying to determine what rent he should set for the summer months. He believes that the rent of an apartment in his complex determines if it will be occupied...

  • Use Data> Data Analysis> Correlation to compute the correlation checking the Labels checkbox Use ...

    Age (X) Time (Y) 11 1851 12 984 12 841 14 1063 14 883 14 1044 15 985 18 902 19 1040 20 918 20 976 22 728 26 859 28 960 28 893 30 709 30 786 42 463 43 560 43 791 45 591 47 440 49 258 49 250 50 480 51 919 52 262 53 184 53 231 54 246 55 205 59 163 64 300 Use Data> Data Analysis> Correlation to compute the correlation checking...

  • here is the data Y X 34.38 22.06 30.38 19.88 26.13 18.83 31.85 22.09 26.77 17.19...

    here is the data Y X 34.38 22.06 30.38 19.88 26.13 18.83 31.85 22.09 26.77 17.19 29.00 20.72 28.92 18.10 26.30 18.01 29.49 18.69 31.36 18.05 27.07 17.75 31.17 19.96 27.74 17.87 30.01 20.20 29.61 20.65 31.78 20.32 32.93 21.37 30.29 17.31 28.57 23.50 29.80 22.02 this is q1 2. Using a computer program, a data set with 20 observations on and was generated (GENERATEDATA.csv). Again, use the same instructions as above (in #1) to upload and import this dataset...

  • T) A national sporting good store wishes to use demographic information to predict its monthly sa...

    t) A national sporting good store wishes to use demographic information to predict its monthly sales, in $1000s. Thrity-eight, n=38, stores of the chain are randomly chosen across the country. It is known that each store is approximately the same size and carries the same merchandise. The geographic area from which a store draws its customers is known as the customer base. One of the variables is the percentage of the customer base who have graduated from high school. (1...

  • A group of physics students collected data from a test of the projectile motion problem that...

    A group of physics students collected data from a test of the projectile motion problem that was analyzed in a previous lab exercise (L5). In their test, the students varied the angle and initial velocity Vo at which the projectile was launched, and then measured the resulting time of flight (tright). Note that tright was the dependent variable, while and Vo were independent variables. The results are listed below. (degrees) Time of Flight (s) Initial Velocity V. (m/s) 15 20...

  • Below is data that a researcher collected on the observed decay of a chemical in water...

    Below is data that a researcher collected on the observed decay of a chemical in water as a function of time. The Researcher used an analytically technique to quantify the chemical that reports relative “peak area” or “response” values. As a result, the researcher analyzed a series of known “standards” of chemical “A” to construct a standard curve, from which the concentrations of “A” in the experimental samples could be calculated. It is known that the chemical decays by a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT