Tuesday, January 25, 2011

                                                                   ~ EXCEL ~

Regression

What Does It Mean?What Does Regression Mean?
A statistical measure that attempts to determine the strength of the relationship between one dependent variable (usually denoted by Y) and a series of other changing variables (known as independent variables). 
Investopedia Says
Investopedia explains Regression
The two basic types of regression are linear regression and multiple regression. Linear regression uses one independent variable to explain and/or predict the outcome of Y, while multiple regression uses two or more independent variables to predict the outcome. The general form of each type of regression is:

Linear Regression: Y = a + bX + u
Multiple Regression: Y = a + b1X1 +  b2X2 + B3X3 + ... + BtXt + u

Where:
Y= the variable that we are trying to predict
X= the variable that we are using to predict Y
a= the intercept
b= the slope
u= the regression residual.

In multiple regression the separate variables are differentiated by using subscripted numbers.

Regression takes a group of random variables, thought to be predicting Y, and tries to find a mathematical relationship between them. This relationship is typically in the form of a straight line (linear regression) that best approximates all the individual data points. Regression is often used to determine how much specific factors such as the price of a commodity, interest rates, particular industries or sectors influence the price movement of an asset.

Linear Regression

n statistics, linear regression is an approach to modeling the relationship between a scalar variable y and one or more variables denoted X. In linear regression, models of the unknown parameters are estimated from the data using linear functions. Such models are called linear models. Most commonly, linear regression refers to a model in which the conditional mean of y given the value of X is an affine function of X. Less commonly, linear regression could refer to a model in which the median, or some other quantile of the conditional distribution of y given X is expressed as a linear function of X. Like all forms of regression analysis, linear regression focuses on the conditional probability distribution of y given X, rather than on the joint probability distribution of y and X, which is the domain of multivariate analysis. Linear regression was the first type of regression analysis to be studied rigorously, and to be used extensively in practical applications. This is because models which depend linearly on their unknown parameters are easier to fit than models which are non-linearly related to their parameters and because the statistical properties of the resulting estimators are easier to determine.
Linear regression has many practical uses. Most applications of linear regression fall into one of the following two broad categories:
  • If the goal is prediction, or forecasting, linear regression can be used to fit a predictive model to an observed data set of y and X values. After developing such a model, if an additional value of X is then given without its accompanying value of y, the fitted model can be used to make a prediction of the value of y.
  • Given a variable y and a number of variables X1, ..., Xp that may be related to y, then linear regression analysis can be applied to quantify the strength of the relationship between y and the Xj, to assess which Xj may have no relationship with y at all, and to identify which subsets of the Xj contain redundant information about y, thus once one of them is known, the others are no longer informative.
Linear regression models are often fitted using the least squares approach, but they may also be fitted in other ways, such as by minimizing the “lack of fit” in some other norm, or by minimizing a penalized version of the least squares loss function as in ridge regression. Conversely, the least squares approach can be used to fit models that are not linear models. Thus, while the terms “least squares” and linear model are closely linked, they are not synonymous.

Quadratic Regression

Quadratic Regression is a process by which the equation of a parabola of "best fit" is found for a set of data.Before performing the quadratic regression, first set an appropriate viewing rectangle.To calculate the Quadratic Regression, press STAT, then RIGHT ARROW to CALC.  Now select 5:QuadReg.After QuadReg appears alone on the screen, press ENTER.Then the quadratic regression will appear on the screen.Y= while leaving PLOT1 on for the data values.Then press GRAPH to see how well the curve fits the data points. NOTE: The regression results may be copied directly into for graphing purposes by using the following procedure:  After the data values have been entered, press STAT, then RIGHT ARROW to CALC.  Now select 5:QuadReg.  
After QuadReg appears alone on the screen, press VARS, then ARROW RIGHT to Y-VARS, noting 1:Function is selected.  Press ENTER to accept and note that 1: is already selected.  Press ENTER to accept, then  press ENTER to calculate.   The result appears on the screen to several decimal places. 
Now press to see that the equation has already been entered for and is ready to graph.

This is the preferred method for entering the regression equation into , since rounding the values can introduce significant rounding errors.

Example of Graph as follow:-




No comments:

Post a Comment