The daily high temperature (°F) in New York City and Denver. Colorado, during the month of January 2014 is given in the
NYC=[33 33 18 29 40 55 19 22 32 37 58 54 51 52 45 41 45 39 36 45 33 18 19 19 28 34 44 21 23 30 39]
DEN=[39 48 61 39 14 37 43 38 46 39 55 46 46 39 54 45 52 52 62 45 62 40 25 57 60 57 20 32 50 48 28]
where the elements in the vectors are in the order of the days in the month. Write a program in a script file that determines and displays the following information:
(a) The average temperature for the month in each city (rounded to the nearest degree).
(b) The number of days that the temperature was above the average in each city.
(c) The number of days that the temperature in Denver was higher than the temperature in New York.
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
MATLAB: An Introduction with Applications
- The mode of the data 20, 18, 24, 20, 30, 27, 20 is O 30 O 24 O 27 O 18 O 20arrow_forwardAn organization holds an annual contest in which bird watchers at various locations around the country see how many different species of birds they can spot. Here are the number of species counted from the 20 sites with the most species in 2013. Complete parts a and b. 184 98 102 127 154 167 84 137 123 120 133 84 86 100 103 98 87 133 128 107 D a) Create a stem-and-leaf display of these data. Use split stems (five lines per stem). For example, put the leaves 0-1 on one line, 2-3 on another, and so on. Truncate the values, that is chop off the last digit. List the stems in increasing order. Number of Bird Species (1|0 means 100 species)arrow_forwardThe mode of the data 26, 24, 30, 26, 36, 33, 26 is О 24 О 26 О 33 30 О 36arrow_forward
- State if these variables would be expected to have a positive, negative, or no association. A. Number of schools and population size. o Positive Negative No association B. Income and number of health conditions. Positive o Negative No association C. Time spent meditating and stress level. Positive o Negative No association D. Number of pets and amount of money spent on printer ink. Positive Negative o No association E. Life expectancy and death rate. Positive Negative o No associationarrow_forwardStudents in a small statistics course collected data to determine if the length of the forearm could be used to predict the length of the foot (both measured in centimeters). Their data are displayed in the provided table. Forearm (cm) 29 28 27 23 26 29.5 36 29 30 24 27 29.5 32 26 23 24 23 25 27 29 28 23 23 24 26 31 Foot (cm) Ascatterplot of the data collected by the students is provided. Does there appear to be a positive or negative association between these two variables? What does this mean for these two variables? Foot (cm) 31 R&BRAZN 30 28 25 24 23 .. 22 24 26 28 30 32 34 Forearm (cm) O Positive: This means that people with longer forearms tend to have larger feet. O Positive: This means that people with longer forearms tend to have smaller feet. O Negative: This means that people with longer forearms tend to have larger feet. O Negative: This means that people with longer forearms tend to have smaller feet. 36arrow_forwardChapter 6, Section 5, Exercise 250 Quiz vs Lecture Pulse RatesDo you think your pulse rate is higher when you are taking a quiz than when you are sitting in a lecture? The data in Table 1 show pulse rates collected from 10 students in a class lecture and then from the same students during a quiz. The data are stored in QuizPulse10. Student 1 2 3 4 5 6 7 8 9 10 Mean Std. Dev. Quiz 75 52 52 80 56 90 76 71 70 66 68.8 12.5 Lecture 73 53 47 88 55 70 61 75 61 78 66.1 12.8Table 1 Quiz and lecture pulse rates for 10 students Construct a 95% confidence interval for the difference in mean pulse rate between students taking a quiz and sitting in a class lecture.Click here for the dataset associated with this question.Round your answers to one decimal place.The 95% confidence interval is to .arrow_forward
- The table below shows the number of deaths in the U.S. in a year due to a variety of causes. For these questions, assume these values are not changing from year to year, and that the population of the United States is 312 million people. Cause Deaths Passenger car occupant 13,100 Motorcycle driver 4,500 Tornado 553 Skydiving 56 h) People sometimes claim motorcycle riding is less dangerous than driving. Does the data support this claim? What additional information and/or calculations would be useful to evaluate this claim?arrow_forwardMost people think London, England is one of the rainiest cities in the world. However, it receives less rain than both Brussels and Zurich, which are two other cities in Europe. The amount of average rainfall in each of the cities is found in the data table below. Average Rainfall (mm) Jan Feb MarAprMayJun Jul AugSepOctNov DecTotal Brussels71 53 73 54 70 78 69 64 63 68 79 79 820 London 42 36 40 40 45 47 35 54 51 61 58 48 558 Zurich 67 70 69 87 103 12411713392 69 82 73 1086 How much rainfall difference is there in an average year between London and Zurich? Record your answer and fill in the bubbles on your answer document. Be sure to use the correct place value.arrow_forward2. A clinician looked at the effect of position on blood pressure levels. Ten participants had their blood pressure taken while lying down with their arms next to them and then standing up with their arms out at shoulder level. The data are shown as follows: Lying down Standing Systolic Diastolic Systolic Diastolic 100 75 110 82 120 80 128 85 118 70 124 78 122 74 118 75 146 93 139 95 108 72 110 74 160 93 162 98 134 76 128 68 102 68 110 70 104 68 98 62 a. Compute the mean median and standard deviation for the difference in systolic and diastolic blood pressure, respectively, between the positions (lying down and standing)- b. Interpret your results as if you were going to put them in a report.arrow_forward
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman