
Concept explainers
Create a program in R using
column j should consist of 20 values from a
a. Find the mean and standard deviation for each column.
b. Write code that counts the number of columns for which the sample mean and sample
standard deviation are within 20% of the values used to generate the data.
c. Write code that writes the columns from part b to a new data frame.
d. For each value in the new data frame, subtract its column mean and divide by the
column standard deviation.

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- Suppose you pulled info regarding the sex of the victim and offender for murders in the United States. The data look something like this: Sex of Vic. Sex of Off. F M F 124 421 M 1609 3725 Assume that the sex of the victim is the response variable. What is the relative risk of being killed by female offender for male victims?arrow_forwardSelect the most appropriate response. If the correlation between a person’s age and annual income is 0.60, then the coefficient of determination tells us that: 36% of the variation in a person’s annual income can be explained by the predictor variable age. 36% of a person’s annual income can be explained by their age 60% of the variation in a person’s annual income can be explained by the predictor variable age 60% of a person’s annual income can be explained by their agearrow_forwardWhich of the following denotes the slope or the regression coefficient for X? A) The term a B) The term b C) The error term D) The correlation coefficient, rarrow_forward
- Calculate the coefficient of variation between X and Y from the following data: 3 4. 6. Y 9. 10 12 11 13 14 16 重5arrow_forwardAn analyst wanted to analyze the relationship between the speed of a car (x) measured in mph and its gas mileage (y). As an experiment a car is operated at several different speeds and for each speed the gas mileage is measured. These data are shown below. Speed 25 35 45 50 60 65 70 Gas Mileage 40 39 37 33 30 27 25 What is the dependent variable? What is the independent variable?arrow_forwardThe table below shows the number of state-registered automatic weapons and the murder rate for several Northwestern states. 11.8 8.2 6.9 3.6 2.5 2.8 2.6 0.4 14 11.3 10.2 7.4 6.5 6.3 5.9 4.5 x thousands of automatic weapons y = murders per 100,000 residents This data can be modeled by the equationý = 0.85x + 4.12. Use this equation to answer the following; %D A) How many murders per 100,000 residents can be expected in a state with 7.3 thousand automatic weapons? Answer = Nearest whole value. B) How many murders per 100,000 residents can be expected in a state with 1 thousand automatic weapons? Nearest whole value Answer =arrow_forward
- Test the following data to see whether they are linear. x 2 4 6 8 y 10 17 24 31arrow_forwardIdentify the variables - Students who spend more time playing video games and working each week will have a lower GPA. 3. State the two quasi-independents variable and the one dependent variable (make sure to label each as QIV or DV)arrow_forwardSee picture for problem. Thxarrow_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





