1. The following data is given: 2 5 8 9 13 15 y 7 8 10 11 12 14 15 Use linear least-squares regression to determine the coefficients m and b in the function y Make a plot that shows the function and the data points. mx +b that best fits the data. %3D

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Experiment (10):
Graphic Plots (Linear Regression and Curve fitting)
1.
The following data is given:
2
5
8
13
15
y
7
8
10
11
12
14
15
Use linear least-squares regression to determine the coefficients m and b in the
function y = mx +b that best fits the data.
Make a plot that shows the function and the data points.
%3D
2. Find the straight line, quadratic and cubic equations that fit to the following data
1.2
1.5
1.8
2.6
3.1
4.3
4.9
5.3
y
4.5
5.1
5.8
6.7
7.0
7.3
7.6
7.4
5.7
6.4
7.1
7.6
8.6
9.2
9.8
y
7.2
6.9
6.6
5.1
4.5
3.4
2.7
3.
Find the least-squares parabola for the data shown in Table below.
2
3
4
5
y
3
4
3
4
4.
The boiling temperature of water T, at various altitudes h is given in the fol-
lowing table. Determine a linear equation in the form T = mh +b that best
fits the data. Use the equation for calculating the boiling temperature at
5,000 m. Make a plot of the points and the equation.
h (m)
600
1500
2300
3000
6100
7900
T( C)
100
98.8
95.1
92.2
90
81.2
75.6
23
Transcribed Image Text:Experiment (10): Graphic Plots (Linear Regression and Curve fitting) 1. The following data is given: 2 5 8 13 15 y 7 8 10 11 12 14 15 Use linear least-squares regression to determine the coefficients m and b in the function y = mx +b that best fits the data. Make a plot that shows the function and the data points. %3D 2. Find the straight line, quadratic and cubic equations that fit to the following data 1.2 1.5 1.8 2.6 3.1 4.3 4.9 5.3 y 4.5 5.1 5.8 6.7 7.0 7.3 7.6 7.4 5.7 6.4 7.1 7.6 8.6 9.2 9.8 y 7.2 6.9 6.6 5.1 4.5 3.4 2.7 3. Find the least-squares parabola for the data shown in Table below. 2 3 4 5 y 3 4 3 4 4. The boiling temperature of water T, at various altitudes h is given in the fol- lowing table. Determine a linear equation in the form T = mh +b that best fits the data. Use the equation for calculating the boiling temperature at 5,000 m. Make a plot of the points and the equation. h (m) 600 1500 2300 3000 6100 7900 T( C) 100 98.8 95.1 92.2 90 81.2 75.6 23
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman