Question

8. The airquality data set has 153 rows, one for each day in May through September...

8. The airquality data set has 153 rows, one for each day in May through September of 1973. One of the variables is named ”Wind”, for wind speed. We will calculate some values of the distribution of Wind using R. Suppose we are interested in the proportion of days for which the wind speed was greater than 12. Attach the airquality data frame to your R

workspace with the command

> attach(airquality)

This allows you to address the variable Wind in R without going through bothersome in- termediate steps. The number of days for which Wind was greater than 12 is given by

> sum(Wind > 12)

and the proportion is

> sum(Wind > 12)/153

Find the proportion of days for which Wind is less than or equal to 10. (Hint: Less than or equal in R is denoted by <=).

Homework Answers

Answer #1

The R output is:

The R code is:

attach(airquality)
sum(Wind <= 10)
sum(Wind <= 10)/153

The answer is 0.5294118.

Know the answer?
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
Similar Questions
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described itself as "a quarterly survey of business leaders from across the globe … surveying 11,500 businesses in 40 economies across the globe on an annual basis." 1 According to the 2011 IBR, the Asia Pacific region had a higher percentage (27 percent) of female chief executive officers (CEOs) than Europe and North America. Japan is the only Asia Pacific region exception. The report further...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT