Difference between revisions of "Manuals/calci/INTERCEPT"
Jump to navigation
Jump to search
| Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
| + | DATA1 DATA2 | ||
| + | 4 12 | ||
| + | 5 20 | ||
| + | 2 15 | ||
| + | 10 11 | ||
| + | |||
| + | INTERCEPT(B5:B8,C5:C8)=10.13265306 | ||
| + | |||
| + | DATA1 DATA2 | ||
| + | 25 10 | ||
| + | -12 15 | ||
| + | -9 -40 | ||
| + | 30 52 | ||
| + | 18 36 | ||
| + | |||
| + | INTERCEPT(A2:A6,B2:B6)=4.754939085 | ||
| + | |||
| + | |||
| + | {| class="wikitable" | ||
| + | |+Spreadsheet | ||
| + | |- | ||
| + | ! !! A !! B !! C !! D!! E | ||
| + | |- | ||
| + | ! 1 | ||
| + | | 4 || 5 || 2 ||10 || | ||
| + | |- | ||
| + | ! 2 | ||
| + | | 12 || 20 || 15 || 11 || | ||
| + | |- | ||
| + | ! 3 | ||
| + | | 25 || -12 || -9 ||30 ||18 | ||
| + | |- | ||
| + | ! 4 | ||
| + | | 10 ||15 || -40 ||52 ||36|| | ||
| + | |- | ||
| + | ! 5 | ||
| + | | || || || || | ||
| + | |} | ||
Revision as of 02:38, 31 December 2013
INTERCEPT(y,x)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} is the set of dependent data
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} is the set of independent data.
Description
- This function is calculating the point where the line is intersecting y-axis using dependent and independent variables.
- Using this function we can find the value of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y } when Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x } is zero.
- The intercept point is finding using simple linear regression.
- It is fits a straight line through the set of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n } points in such a way that makes vertical distances between the points of the data set and the fitted line as small as possible.
- Regression methods nearly to the simple ordinary least squares also exist.
- i.e.,The Least Squares method relies on taking partial derivatives with respect to the slope and intercept which provides a solvable pair of equations called normal equations.
- Suppose there are Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n } data points Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle {y_{i}, x_{i}}} , where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle i = 1, 2,...n}
- To find the equation of the regression line:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a=\bar{y}-b.\bar{x}} .
- This equation will give a "best" fit for the data points.
- The "best" means least-squares method. Here b is the slope.
- The slope is calculated by:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b=\frac{\sum_{i=1}^{n} {(x_{i}-\bar{x})(y_{i}-\bar{y})}} {\sum_{i=1}^{n}{(x_{i}-\bar{x})}^2}} .
- In this formulaFailed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \bar{x}} and are the sample means AVERAGE of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y } .
- In Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle INTERCEPT(y,x)} , the arguments can be numbers, names, arrays, or references that contain numbers.
- The arrays values are disregarded when it is contains text, logical values or empty cells.
- This function will return the result as error when any one of the argument is non-numeric or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y} is having different number of data points and there is no data.
Examples
DATA1 DATA2
4 12 5 20 2 15
10 11
INTERCEPT(B5:B8,C5:C8)=10.13265306
DATA1 DATA2
25 10
-12 15
-9 -40
30 52
18 36
INTERCEPT(A2:A6,B2:B6)=4.754939085
| A | B | C | D | E | ||
|---|---|---|---|---|---|---|
| 1 | 4 | 5 | 2 | 10 | ||
| 2 | 12 | 20 | 15 | 11 | ||
| 3 | 25 | -12 | -9 | 30 | 18 | |
| 4 | 10 | 15 | -40 | 52 | 36 | |
| 5 |