Ridge: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Chuck
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===Purpose===
===Purpose===
Ridge regression by Hoerl-Kennard-Baldwin.
 
Ridge regression by the Hoerl-Kennard-Baldwin method.
 
===Synopsis===
===Synopsis===
:[b,theta] = ridge(x,y,thetamax,divs,''tf'')
 
:[b,theta] = ridge(x,y,thetamax,divs,tf)
 
===Description===
===Description===
RIDGE creates a ridge regression model for a matrix of predictor variables (x-block) x, and a vector of predicted variable (y-block) y. The maximum value of the ridge parameter to consider is given by thetamax (thetamax > 0). divs specifies the number of values of the ridge parameter between 0 and thetamax to be used for calculating the regression vector shown in the plots created by the ridge routine.
 
The optional variable ''tf'' allows the user to position text on the plot when tf is set to 1. The text identifies the optimum of the ridge parameter theta and can be positioned with cursors or the mouse.
RIDGE creates a ridge regression model, using a matrix containing the values of multiple predictor variables for a set of samples (x-block) <tt>x</tt>, and a vector containing the values of a single predictor variable for the same set of samples (y-block) <tt>y</tt>.  
Outputs are b the regression column vector at optimum ridge parameter theta.
 
In most instances the optimum ridge parameter will be less than 0.1, often as low as 0.01. A good starting guess when working with the method is to specify thetamax = 0.1 with divs = 20.
====Inputs====
 
* '''x''' = matrix of input data for the predictor variables
* '''y''' = vector of input data for the predicted variable
* '''thetamax''' = the maximum value of the ridge parameter <tt>theta</tt> to consider (<tt>thetamax</tt> > 0).
* '''divs''' = the number of values of the ridge parameter between 0 and '''thetamax''' to be used for calculating the regression vector shown in the plots
 
 
'''Note:''' In most instances the optimum ridge parameter will be less than 0.1, often as low as 0.01. A good starting guess when working with the method is to specify thetamax = 0.1 with divs = 20.
 
====Optional Inputs====
 
* '''tf''' = text flag input; allows the user to place the labels on the plot with the mouse when it is set to 1
====Outputs====
 
* '''b''' = final regression vector, corresponding to the best guess value for the ridge parameter '''theta'''
* '''theta''' = best-guess value of the ridge parameter by the Hoerl-Kennard method
 
===See Also===
===See Also===
[[pcr]], [[pls]], [[analysis]], [[ridgecv]]
 
[[pcr]], [[pls]], [[analysis]], [[ridgecv]], [[regcon]], [[rinverse]]

Latest revision as of 13:31, 9 October 2008

Purpose

Ridge regression by the Hoerl-Kennard-Baldwin method.

Synopsis

[b,theta] = ridge(x,y,thetamax,divs,tf)

Description

RIDGE creates a ridge regression model, using a matrix containing the values of multiple predictor variables for a set of samples (x-block) x, and a vector containing the values of a single predictor variable for the same set of samples (y-block) y.

Inputs

  • x = matrix of input data for the predictor variables
  • y = vector of input data for the predicted variable
  • thetamax = the maximum value of the ridge parameter theta to consider (thetamax > 0).
  • divs = the number of values of the ridge parameter between 0 and thetamax to be used for calculating the regression vector shown in the plots


Note: In most instances the optimum ridge parameter will be less than 0.1, often as low as 0.01. A good starting guess when working with the method is to specify thetamax = 0.1 with divs = 20.

Optional Inputs

  • tf = text flag input; allows the user to place the labels on the plot with the mouse when it is set to 1

Outputs

  • b = final regression vector, corresponding to the best guess value for the ridge parameter theta
  • theta = best-guess value of the ridge parameter by the Hoerl-Kennard method

See Also

pcr, pls, analysis, ridgecv, regcon, rinverse