Technical Indicators: L
Linear Regression
Regression analysis is a way of measuring the relationship between two or more data sets. Linear Regression attempts to explain a relationship using a straight line fit to the data and then extending that line to predict future values.
The most common method for fitting a regression line is the method of least-squares. This method calculates the best-fitting line for the observed data by minimizing the sum of the squares of the vertical deviations from each data point to the line. If a point lies on the fitted line exactly, then its vertical deviation is 0. Since the deviations are squared first and then summed, negative and positive do not cancel each other out. The closer the line calculated sits to the data points, the smaller the sum or "error" of a line.
If you think of this trendline as describing an "equilibrium" price, then any moves above or below the trendline indicates overzealous buyers or sellers. Some ways to use a linear regression line are:
- Use the line to forecast prices. The forecast will simply be an extension of the line, so trade in the direction of the line. This can give good results when viewed on a long enough time frame. Use caution as there still can be significant drawdowns as prices fluctuate above and below the line.
- Use the line as a basis and draw two parallel lines above and below it to form a channel. See the entries for Linear Regression Channel for more detail.
Linear Regression Channel 50%
The Linear Regression Channel 50% uses the same basic idea as the Linear Regression Channel but draws the upper and lower bands one standard deviation away from the Linear Regression Trendline instead of two.
Linear Regression Channel, Variable
A Linear Regression Channel 100% is created by drawing parallel lines above and below the Linear Regression line.
Parallel and equidistant lines are drawn two standard deviations above and below a Linear Regression trendline. The distance between the channel lines and the regression line is the greatest distance that any one closing price is from the regression line. Regression Channels contain price movement, the bottom channel line provides support and the top channel line provides resistance. Prices may extend outside of the channel for a short period of time but when prices remain outside the channel for a longer period of time, a reversal in trend may be indicated.
A Linear Regression trendline shows where equilibrium exists but Linear Regression Channels show the range prices can be expected to deviate from a trendline.
Linear Regression Indicator
The Linear Regression Indicator plots the trend of a security's price over time. That trend is determined by calculating a Linear Regression Trendline using the least squares method. This ensures the minimum distance between the data points and a Linear Regression Trendline.
Unlike the straight Linear Regression Trendline, the Linear Regression indicator plots the ending values of multiple Linear Regression trendlines. Any point along the Linear Regression Indicator will be equal to the ending value of a Linear Regression Trendline, but the result looks more like a Moving Average.
Linear Regression Trendline
A Linear Regression Trendline is a straight line plotted through past prices of a given security via the least squares method. The calculation of this line is described above under Linear Regression.
Extend the resulting line and use it to predict future trends. Remember there still can be significant shifts as prices will continue to fluctuate above and below the line.
| |
Unlike a Moving Average, the Linear Regression Indicator does not exhibit as much delay. As the Linear Regression Indicator is fitting a line to the data points rather than simply averaging them, the Linear Regression line becomes more responsive to changes in prices. The Linear Regression Indicator can be thought of as a forecast of the tomorrow's price plotted today.
When prices are persistently higher or lower than the forecasted price, expect them to quickly return to more realistic levels. The Linear Regression Indicator shows where prices should be trading on a statistical basis and any excessive deviation from the regression line is likely to be short-lived.
Linear Regression Slope
Linear Regression Slope is designed to show how much one should expect prices to change per unit of time.
As the Slope of a trend first becomes significantly positive, open a long position. Either sell or open a short position as the Slope becomes significantly negative.
|