Concept explainers
Whether the
Answer to Problem 11E
Solution:
The median would be better for the student.
Explanation of Solution
The given data is,
The formula to calculate the mean of set of data is,
Here,
Substitute
Here number of data in the given data set is
Mean of A is
Substitute
Mean of B is
The formula to calculate the median of set of ordered data is,
Here
Arrange the given data in increasing order.
Number of values in data set is
Substitute
The median of A is
Substitute
The median of B is
Since, mean deviation about mean is zero, whereas, mean deviation about median is minimum. Hence, median would be better for the student.
MATLAB Code:
A = [99 88 95];
B = [99 70 77];
mean_A = mean(A)
mean_B = mean(B)
median_A = median(A)
median_B = median(B)
Save the MATLAB script with the name, Chapter14_54793_14_11E.m in the current folder. Execute the script by typing the script name at the command window to generate output.
Result:
Therefore, the required program is stated above.
Want to see more full solutions like this?
Chapter 14 Solutions
MATLAB: A Practical Introduction to Programming and Problem Solving
- Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL
- Functions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage Learning