web-apps/apps/spreadsheeteditor/main/resources/help/en/Functions/linest.htm

44 lines
3.4 KiB
HTML
Raw Normal View History

2020-09-14 12:21:50 +00:00
<!DOCTYPE html>
<html>
<head>
<title>LINEST Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
2022-03-21 03:03:46 +00:00
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
2020-09-14 12:21:50 +00:00
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>LINEST Function</h1>
<p>The <b>LINEST</b> function is one of the statistical functions. It is used to calculate the statistics for a line by using the least squares method to calculate a straight line that best fits your data, and then returns an array that describes the line; because this function returns an array of values, it must be entered as an array formula.</p>
<p>The <b>LINEST</b> function syntax is:</p>
<p style="text-indent: 150px;"><b><em>LINEST( known_y's, [known_x's], [const], [stats] )</em></b></p>
<p>where:</p>
<p style="text-indent: 50px;"><b><em>known_y's</em></b> is a known range of <em>y</em> values in the equation <em>y = mx + b</em>. This is the required argument.</p>
<p style="text-indent: 50px;"><b><em>known_x's</em></b> is a known range of <em>x</em> values in the equation <em>y = mx + b</em>. This is an optional argument. If it is omitted, <em>known_x's</em> is assumed to be the array <em>{1,2,3,...}</em> with the same number of values as <em>known_y's</em>.</p>
<p style="text-indent: 50px;"><b><em>const</em></b> is a logical value that specifies if you want to set <em>b</em> equal to <em>0</em>. This is an optional argument. If it is set to <em>TRUE</em> or omitted, <em>b</em> is calculated normally. If it is set to <em>FALSE</em>, <em>b</em> is set equal to <em>0</em>.</p>
<p style="text-indent: 50px;"><b><em>stats</em></b> is a logical value that specifies if you want to return additional regression statistics. This is an optional argument. If it is set to <em>TRUE</em>, the function returns the additional regression statistics. If it is set to <em>FALSE</em> or omitted, the function does not return the additional regression statistics.</p>
<p>To apply the <b>LINEST</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>
2022-03-21 03:03:46 +00:00
<li>click the <b>Insert function</b> <div class = "icon icon-insertfunction"></div> icon situated at the top toolbar,
2020-09-14 12:21:50 +00:00
<br />or right-click within a selected cell and select the <b>Insert Function</b> option from the menu,
2022-03-21 03:03:46 +00:00
<br />or click the <div class = "icon icon-function"></div> icon situated at the formula bar,
2020-09-14 12:21:50 +00:00
</li>
<li>select the <b>Statistical</b> function group from the list,</li>
<li>click the <b>LINEST</b> function,</li>
<li>enter the required arguments separating them by commas or select a range of cells with the mouse,
<!--<p><img alt="LINEST Function" src="../images/linest-arg.png" /></p>-->
</li>
<li>press the <b>Enter</b> button.</li>
</ol>
<p>The first value of the resulting array will be displayed in the selected cell.</p>
<p style="text-indent: 150px;"><img alt="LINEST Function" src="../images/linest.png" /></p>
</div>
</body>
</html>