Lab 2, assignment 1: OLS regression of electricity consumption on temperature at 53 sites - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

Lab 2, assignment 1: OLS regression of electricity consumption on temperature at 53 sites

Description:

model daily_consumption = stockholm g_teborg malm_ /p; output out=olsoutput pred=olspred; ... Fat content vs absorbance in different channels (wavelengths) ... – PowerPoint PPT presentation

Number of Views:113
Avg rating:3.0/5.0
Slides: 23
Provided by: ANG109
Category:

less

Transcript and Presenter's Notes

Title: Lab 2, assignment 1: OLS regression of electricity consumption on temperature at 53 sites


1
Lab 2, assignment 1 OLS regression of
electricity consumption on temperature at 53 sites
2
SAS code for ridge regression
proc reg datamining.dailytemperature outest
dtempbeta ridge0 to 10 by 1 model
daily_consumption stockholm g_teborg malm_
/p output outolsoutput predolspred proc print
datadtempbeta run
3
Estimated regression parameters in ridge
regression
4
Predicted vs observed values in OLS regression
and ridge regression- trade-off between variance
and bias
5
Fat content vs absorbance in different channels
(wavelengths)
6
OLS regression fat vs channel10, channel30,
channel50, channel70, channel90
7
OLS regression fat vs channel1 channel 100
8
OLS regression fat vs channel1 channel 100
9
OLS regression with strongly correlated predictors
If the XTX matrix has not full rank (some
X-variables are linearly dependent) the mean
square solution is not unique If the X-variables
are strongly correlated, then (i) the
regression coefficients will be uncertain (ii)
the predictions may be OK
10
Principal Component Analysis of lake survey data
Some variables vary much more than others How
does this influence principal components derived
from the covariance and correlation matrices,
respectively?
11
Principal Component Analysis of lake survey
data- score plot derived from the correlation
matrix
12
Principal Component Analysis of lake survey
data- eigenvectors derived from the correlation
matrix
13
Principal Component Analysis of lake survey data
with outliers removed- score plot derived from
the correlation matrix
14
Principal Component Analysis of lake survey data
with outliers removed - eigenvectors derived
from the correlation matrix
15
Principal Component Analysis of lake survey data
with outliers removed- MINITAB score plot
derived from the correlation matrix
16
Principal Component Analysis of lake survey data
with outliers removed - MINITAB loading plot
derived from the correlation matrix
17
Regression of an indicator matrix
Find a linear function which is (on average) one
for objects in class 1 and otherwise (on average)
zero Find a linear function which is (on
average) one for objects in class 1 and otherwise
(on average) zero
Assign a new object to class 1 if
18
Discriminant analysis- decision border
19
3D-plot of an indicator matrix for class 1
20
3D-plot of an indicator matrix for class 2
21
Regression of an indicator matrix-
discriminating function
Estimate discriminant functions for each class,
and then classify a new object to the class with
the largest value for its discriminant function
22
Linear discriminant analysis (LDA)
LDA is an optimal classification method when the
data arise from Gaussian distributions with
different means and a common covariance matrix
Write a Comment
User Comments (0)
About PowerShow.com