ECOR 2606 DE – Week 9

John Hammond
9
[email protected]
402 MacOdrum Library
Fridays 11:30 – 12:30
ECOR 2606 DE
Opener: Review of Last Week (10 minutes)
➢ Two teams compete in a game of Jeopardy by answering various questions involving
general least squares, linear regression, and MATLAB.
General Least
Squares
$100
$200
$300
Question
General
Least
Squares
Linear
Regression
MATLAB
Bonus
Question
Linear
Regression
$100
$200
$300
Important Concepts
MATLAB
$100
$200
$300
John Hammond
[email protected]
ECOR 2606 DE
9
402 MacOdrum Library
Fridays 11:30 – 12:30
Closer: Predicting Test Questions (10 minutes)
The Centre for Student Academic Support (CSAS) is organizing focus groups to learn about what
your expectations are when it comes to academic support, and why you are or are not using the
services provided through CSAS. As an added bonus, there will be free pizza during these focus
groups.
The focus groups will take place March 21st at 4:30 PM and March 29th at 1:00 PM. The time
commitment is only 1 hour.
To register, please complete the following webform at: http://carleton.ca/csas/focus-groupregistration/.
For more information about the focus groups, please visit the following
link: http://carleton.ca/csas/2017/we-want-to-hear-from-you-and-give-you-free-pizza/ .
John Hammond
[email protected]
ECOR 2606 DE
9
402 MacOdrum Library
Fridays 11:30 – 12:30
Jeopardy Questions
General Least Squares - $100
Given the following table of x and y-values, derive the Z-matrix needed in order to fit a linear
equation to the data in the form y=mx+b.
x
1
y
6
3
4
5
2
6
2
General Least Squares - $200
1
3
For the Z-matrix, [
5
6
x
1
y
6
3
4
5
2
6
2
Find 𝑍 𝑇 𝑦
1
1
], and the data:
1
1
John Hammond
9
[email protected]
402 MacOdrum Library
Fridays 11:30 – 12:30
ECOR 2606 DE
General Least Squares - $300
71
With 𝑍 𝑇 𝑍 = [
15
15
]
4
40
and 𝑍 𝑇 𝑦 = { }
14
Before performing any calculations, give your best guess of the equation of the line. Then,
calculate the equation of the line.
Linear Regression - $100
Complete the following table:
x
1
2
3
4
y
2
3
6
9
x2
Σ
Linear Regression - $200
Solve for the slope of the linear equation that fits to the data.
xy
John Hammond
9
[email protected]
ECOR 2606 DE
402 MacOdrum Library
Fridays 11:30 – 12:30
Linear Regression - $300
Determine the y-intercept of the linear equation:
MATLAB - $100
The variables, x and y, are already imported into MATLAB Write the code necessary to plot the
second order polynomial least squares parabola along with the data points on the same graph.
MATLAB - $200
Write the MATLAB code necessary to import the file, PASSdata.txt, where the x-values of an
experiment are in the first column and the y-values of the experiment are in the second
column. Your code should determine a cubic equation that fits the data.
MATLAB - $300
𝛼𝑥
Fit a saturation growth equation in the form, 𝑦 = 𝛽+𝑥 , to a set of data (x,y) that has already
been inputted into MATLAB. Plot the corresponding function and data points on a single graph
between 0 and 5.
John Hammond
[email protected]
ECOR 2606 DE
9
402 MacOdrum Library
Fridays 11:30 – 12:30
Bonus Question:
You suspect that the following data could be fitted with the function: y=a0sin(x) + a1 +a2x2
x
y
1
6
3
4
5
2
6
2
7
3
Write the Z-matrix required to use general least squares.