Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

The file "flowers.csv" contains information on measurements of the iris flowers. The file can be found here: flowers.csv. Create an R data frame by the name "flower.data" that contains the data in the file. The following R code shows an example of how to round a vector of numbers to zero decimal places and then calculate some statistics using the rounded numbers. You might need some of the calculations for this assignment, but you might not need others. You would replace example$years with the name of the R object that you want to analyze (in other programming languages, you might call example$years a variable).

> x <- round(example$years, 0)
> freq <- table(x)
> rel.freq <- freq/sum(freq)
> cumsum(rel.freq)
Cumulative Frequency Table for Petal Length
Use the following table to answer tasks 2-4.
Value:
1
2
3
4
5
6
7
Cumulative Relative Frequency:
.16
.33
.35
.58
.81
.97
1.00
Tasks
1. Sometimes it is difficult to understand data if you do not know what the numbers represent. Provide short definitions of two words: sepal, and petal (be sure to cite your sources even if you paraphrase):
sepal:
petal:

2. There is a cumulative relative frequency table printed above for petal lengths (using rounded values for petal length). Below the number 3 in that table is the number .35. What does .35 represent? (multiple choice)
a. Three of the flowers had petal length of 0.35.
b. There were 0.35 observations that had petal length of 3 (after rounding the petal lengths).
c. Of all the flowers measured in this sample 35% had a petal length of 3 (after rounding the petal lengths).
d. Of all the flowers measured in this sample 35% had a petal length of 3 or less (after rounding the petal lengths).
e. A study of all flowers on the planet would show that about 35% had petal lengths of 3 or less (after rounding the petal lengths).

3. Using only the cumulative relative frequency table printed above combined with some simple paper-and-pencil calculations, which petal length occurs most frequently ?

4. Describe how you determined your answer to the previous question (describe the calculations that you used). Do not show R code for this task--it will not be counted as an answer.

5. Assuming that you read the flowers.csv file into an R object called flower.data, run the following R code (do not paste the ">" character into R) and paste both the command and the output into your answer (you should see five names, each of which should be enclosed in quotes--if you do not see this, try again or contact your instructor):
> names(flower.data)

6. The number of observations in the "flower.data" data frame is:

7. List the variables in the data frame (you can do this by entering the name of the R object that holds that data that you read using the read.csv command--you should have called it flower.data). If you do not see five columns of data, then there was a problem reading the input file--try again or contact your instructor. For each variable identify the type of the variable (factor or numeric).
The name and type of the 1st variable:
The name and type of the 2nd variable:
The name and type of the 3nd variable:
The name and type of the 4nd variable:
The name and type of the 5nd variable:

8. Round the data for the variable Sepal.Length so that it contains integers, then find the frequency of the value 7 (not the relative frequency):

Assuming that you read the flowers.csv file into an R object called flower.data, run the following R code (do not paste the ">" character into R). Note that we are not rounding the numbers here. Use the output for the next five tasks:
> table(flower.data$Sepal.Width)
> plot(table(flower.data$Sepal.Width))

9. What is the sum of the first three frequencies in the frequency table for sepal width? _____

10. What does your answer to the previous question represent (in terms of sepal width and frequency and the percentage of all sepal measurements) ____

11. What is the sum of the last three frequencies in the frequency table for sepal width?

12. What percentage of flowers in the sample had sepal widths less than 4 (do NOT round the sepal width numbers for this, but you can round your final answer to 3 decimal places)?

13. What does the tallest bar in the plot represent?

14. Create a frequency table that shows the frequencies for each species of flower in the sample. Paste your R command and output into your answer.

15. Explain two things about the table that you created for the previous task:
Why did the frequency table for flower species contain words in the first row as opposed to numbers?
What is the meaning of the numbers in the second row of the table

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91605019

Have any Question?


Related Questions in Statistics and Probability

Below are commute times and amounts of rainfall for a few

Below are commute times and amounts of rainfall for a few randomly selected dates last year. Rain (mm) Commute time (min) 3 20 0 10 1 25 9 30 15 60 12 25 Treat "Rain" as the X variable Compute the value of r for the corr ...

Jeremy needs to start paying back his student loan the

Jeremy needs to start paying back his student loan. The amount he owes is $14,069.80 with an APR of 6.94%. Assuming he will take 10 years, how much will his monthly payment be?

Useby using we need write the Useby using we need write the answer

Useby using we need write the answer download.file("http://www.openintro.org/stat/data/ames.RData", destfile = "ames.RData") load("ames.RData") area price I need how to Get a sample with a size of 100, and find the sampl ...

You decide to research further this seemingly contradictory

You decide to research further this seemingly contradictory guidance, hypothesizing that the  true population average core body temperature  amidst higher ambient temperature and humidity levels while using an electric f ...

A social psychologist recently developed a childhood

A social psychologist recently developed a childhood memories test that is intended to measure how people recall pleasant and unpleasant memories from childhood. Scores on this test range from 1 (very unpleasant) to 100 ...

There are 20 total socks 10 white and 10 black this makes

There are 20 total socks, 10 white and 10 black. This makes 10 total matching pairs of 5 pair of white and 5 pair of black. If each time you pick a sock from the drawer a sock just like it magically replaces it, what is ...

A comitttee of 3 persons is selected at random from a group

A comitttee of 3 persons is selected at random from a group of 5 mathematicians and 8 physicists. What is the probability that one is a mathematician

In a recent year 8032844 male students and 9381579 female

In a recent year, 8,032,844 male students and 9,381,579 female students were enrolled as undergraduates. Receiving aid were 64.1% of the male students and 65.7% of the female students. Of those receiving aid, 41% of the ...

Stocks a b and c have expected returns of 12 percent 12

Stocks A, B, and C have expected returns of 12 percent, 12 percent, and 10 percent, respectively, while their standard deviations are 42 percent, 30 percent, and 30 percent, respectively. If you were considering the purc ...

The torval company made a credit sale of 15000 the invoice

The Torval Company made a credit sale of $15,000. The invoice was sent today with the terms, 3/15 net 60. This customer normally pays at the net date. If your opportunity cost of funds is 9% the expected payment is worth ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As