3 - Curve Fitting
3 - Curve Fitting
TITLE: Curve Fitting: Least Square Criteria- 1st and 2nd Degree
AIM:
To write a program on Curve Fitting by Least Square Criterion
OBJECTIVES:
Students must be able to:
o Develop problem solution skills using computers and numerical methods
o Understand various methods of Curve fitting
o Able to draw flow chart and computer program in C/C++
o Able to write MATLAB function for curve fitting as well as plot function.
PRE-REQUISITES:
…………………………………………
………………………………..
………………………………
……………………
…………………
Algorithm / Flowchart:
Sr. Result by
Method Error
No. Calculations Program
x 1 20 30 40
y 1 400 800 1300
is regressed with least squares regression to y = a o + a1 x . The value of a1 most nearly is
A) 27.480
B) 28.956
C) 32.625
D) 40.000
x 1 20 30 40
y 1 400 800 1300
is regressed with least squares regression to y = a1 x . The value of a1 most nearly is
A) 27.480
B) 28.956
C) 32.625
D) 40.000
3. An instructor gives the same y vs x data as given below to four students.
x 1 10 20 30 40
y 1 100 400 600 1200
They each come up with four different answers for the straight line regression model. Only
one is correct. The correct model is
A) y = 60 x − 1200
B) y = 30 x − 200
C) y = −139.43 + 29.684 x
D) y = 1 + 22.782 x
4. A torsion spring of a mousetrap is twisted through an angle of 1800. The torque vs angle
data is given below.
T N-m 0.110 0.189 0.230 0.250
θ rad 0.10 0.50 1.1 1.5
The amount of strain energy stored in the mousetrap spring in Joules is
A) 0.2987 B) 0.4174 C) 0.8420 D) 1562
x 1 3 11 17
y 2 6 22 ?
The missing value for y at x = 17 most nearly is
A) -2.444 B) 2.000 C) 6.889 D) 34.00