Concept explainers
(i)
Check whether the program is working correctly or not for data set (i).
(i)
Answer to Problem 6RE
Yes, the program is working as correctly.
Explanation of Solution
The average of x is obtained below:
The standard deviation of x is obtained as follows:
The average of y is obtained below:
The standard deviation of y is obtained as follows:
The value of r is obtained below:
x | y | x in standard units | y in standard units | (x in standard units) × (y in standard units) |
1 | 2 | 1.5 | ||
2 | 1 | 1.5 | ||
3 | 4 | 0 | ||
4 | 3 | 0 | ||
5 | 7 | 0.75 | ||
6 | 5 | 0.5 | ||
7 | 6 | 1.5 |
Thus, the value of r is 0.8214
The given correlation value (0.8214) and the estimated correlation value (0.8214) both are same. Therefore, yes the program is working as correctly.
(ii)
Explain whether the program is working as correctly or not for data set (ii).
(ii)
Answer to Problem 6RE
No, the program is not working correctly.
Explanation of Solution
The average of x is obtained below:
The standard deviation of x is obtained as follows:
The average of y is obtained below:
The standard deviation of y is obtained as follows:
The value of r is obtained below:
x | y | x in standard units | y in standard units | (x in standard units) × (y in standard units) |
1 | 5 | 1.5 | ||
2 | 4 | 1.5 | ||
3 | 7 | 0 | ||
4 | 6 | 0 | ||
5 | 10 | 0.75 | ||
6 | 8 | 0.50 | ||
7 | 9 | 1.5 |
Thus, the value of r is 0.8214.
The given correlation value (0.7619) and the estimated correlation value (0.8614) both are different. Therefore, no the program is not working correctly.
Want to see more full solutions like this?
Chapter 9 Solutions
EBK STATISTICS (FOURTH EDITION)
- 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