A set of data is given with the rebound height of tennis balls in centimeters from height 250cm (data.txt). Write three MatLab user-defined functions: usersort, GroupData and MeanStD. The function XO = usesort(x) should be able to sort an array in ascending order, the function [f, X] = GroupData(x) should create labels of the data and should return the labels X and the number of data for each label f and the function [A,s] = MeanStD(x) should return the mean value and the standard deviation as defined by the last equations in the slides 11 and 12. The labels X should start from the smallest round integer (use fix in MatLab) and should go until the largest round integer (use fix) with interval equal to 1. Each label should count the points that are smaller by half interval until larger by half interval. Calculate the density function of the Gauss distribution and define the following probabilities that a randomly chosen value of x will be: (i) no greater than 174cm, (ii) between 174cm and 182cm.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
A set of data is given with the rebound height of tennis balls in centimeters from height 250cm
(data.txt). Write three MatLab user-defined functions: usersort, GroupData and MeanStD. The function
xo = usesort(x) should be able to sort an array in ascending order, the function [f, X] = GroupData(x)
should create labels of the data and should return the labels X and the number of data for each label f and
the function [A,s] = MeanStD(x) should return the mean value and the standard deviation as defined by
the last equations in the slides 11 and 12. The labels X should start from the smallest round integer (use
fix in MatLab) and should go until the largest round integer (use fix) with interval equal to 1. Each label
should count the points that are smaller by half interval until larger by half interval. Calculate the density
function of the Gauss distribution and define the following probabilities that a randomly chosen value of
x will be: (i) no greater than 174cm, (ii) between 174cm and 182cm.
Transcribed Image Text:A set of data is given with the rebound height of tennis balls in centimeters from height 250cm (data.txt). Write three MatLab user-defined functions: usersort, GroupData and MeanStD. The function xo = usesort(x) should be able to sort an array in ascending order, the function [f, X] = GroupData(x) should create labels of the data and should return the labels X and the number of data for each label f and the function [A,s] = MeanStD(x) should return the mean value and the standard deviation as defined by the last equations in the slides 11 and 12. The labels X should start from the smallest round integer (use fix in MatLab) and should go until the largest round integer (use fix) with interval equal to 1. Each label should count the points that are smaller by half interval until larger by half interval. Calculate the density function of the Gauss distribution and define the following probabilities that a randomly chosen value of x will be: (i) no greater than 174cm, (ii) between 174cm and 182cm.
data:
176.276000000000
178.054000000000
179.3240000000
173.736000000000
185.420000000000
173.228000000000
181.102000000000
176.784000000000
177.292000000
180.086000000
176.27600000
177.546000000000
178.308000000000
172.974000000000
179.578000000000
184.658000000000
176.022000000
181.864000000
180.08600000
177.546000000000
174.498000000000
180.848000000000
176.022000000000
174.49800000
180.59400000
183.134000000000
179.832000000000
183.388000000000
175.768000000000
180.594000000000
181.102000000
178.562000000
182.37200000
180.594000000000
171.450000000000
176.530000000000
173.736000000000
180.848000000000
183.642000000
177.546000000
177.03800000
176.022000000000
171.958000000000
181.864000000000
181.610000000000
175.514000000000
178.3080000000
176.276000000000
180.848000000000
170.434000000000
Transcribed Image Text:data: 176.276000000000 178.054000000000 179.3240000000 173.736000000000 185.420000000000 173.228000000000 181.102000000000 176.784000000000 177.292000000 180.086000000 176.27600000 177.546000000000 178.308000000000 172.974000000000 179.578000000000 184.658000000000 176.022000000 181.864000000 180.08600000 177.546000000000 174.498000000000 180.848000000000 176.022000000000 174.49800000 180.59400000 183.134000000000 179.832000000000 183.388000000000 175.768000000000 180.594000000000 181.102000000 178.562000000 182.37200000 180.594000000000 171.450000000000 176.530000000000 173.736000000000 180.848000000000 183.642000000 177.546000000 177.03800000 176.022000000000 171.958000000000 181.864000000000 181.610000000000 175.514000000000 178.3080000000 176.276000000000 180.848000000000 170.434000000000
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY