Concept explainers
Whether the mean or 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
- Explain in your own words the difference between the mean, median, and mode of a set of numbers.arrow_forwardFind the mean hourly cost when the cell phone described above is used for 240 minutes.arrow_forwardUse this data for the exercises that follow: In 2013, there were roughly 317 million citizens in the United States, and about 40 million were elderly (aged 65 and over).[34] 59. If you meet five U.S. citizens, what is the percent chance that four are elderly? (Round to the nearest thousandth of a percent.)arrow_forward
- 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 HillElementary AlgebraAlgebraISBN:9780998625713Author:Lynn Marecek, MaryAnne Anthony-SmithPublisher:OpenStax - Rice University
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell