gl gl gl it gl ca gl gl gl gl en en en en en en en en en en en en en en en en gl en en en en en en gl gl gl gl en gl es gl gl gl it it en it en en en it en pt gl en en it en pt en en pt en en en it en pt gl gl gl en en en gl gl es es en en en gl en en en gl
Pódense engadir liñas de tendencia a todos os tipos de gráficas en 2D, excepto as de sector e de cotizacións
Para acceder a esta orde...
Escolla Inserir - Liña de tendencia (Gráficas)
If you insert a trend line to a chart type that uses categories, like Line or Column, then the numbers 1, 2, 3, … are used as x-values to calculate the trend line. For such charts the XY chart type might be more suitable.
To insert a trend line for a data series, first double-click the chart to enter edit mode and select the data series in the chart to which a trend line is to be created.
Choose Insert - Trend Line, or right-click the data series to open the context menu, and choose Insert Trend Line.
Mean Value Lines are special trend lines that show the mean value. Use Insert - Mean Value Lines to insert mean value lines for data series.
To delete a trend line or mean value line, click the line, then press the Del key.
The menu item Insert - Trend Line is only available when the chart is in edit mode. It will appear grayed out if the chart is in edit mode but no data series is selected.
The trend line has the same color as the corresponding data series. To change the line properties, select the trend line and choose Format - Format Selection - Line.
A trend line is shown in the legend automatically. Its name can be defined in options of the trend line.
Trend Line Equation and Coefficient of Determination
When the chart is in edit mode, LibreOffice gives you the equation of the trend line and the coefficient of determination R2, even if they are not shown: click on the trend line to see the information in the status bar.
To show the trend line equation, select the trend line in the chart, right-click to open the context menu, and choose Insert Trend Line Equation.
To change format of values (use less significant digits or scientific notation), select the equation in the chart, right-click to open the context menu, and choose Format Trend Line Equation - Numbers.
Default equation uses x for abscissa variable, and f(x) for ordinate variable. To change these names, select the trend line, choose Format - Format Selection – Type and enter names in X Variable Name and Y Variable Name edit boxes.
To show the coefficient of determination R2, select the equation in the chart, right-click to open the context menu, and choose Insert R2.
If intercept is forced, coefficient of determination R2 is not calculated in the same way as with free intercept. R2 values can not be compared with forced or free intercept.
Trend Lines Curve Types
Están dispoñíbeis os tipos de regresión seguintes:
Linear trend line: regression through equation y=a∙x+b. Intercept b can be forced.
Polynomial trend line: regression through equation y=Ei(ai∙xi). Intercept a0 can be forced. Degree of polynomial must be given (at least 2).
Logarithmic trend line: regression through equation y=a∙ln(x)+b.
Exponential trend line: regression through equation y=b∙exp(a∙x).This equation is equivalent to y=b∙mx with m=exp(a). Intercept b can be forced.
Power trend line: regression through equation y=b∙xa.
Moving average trend line: simple moving average is calculated with the n previous y-values, n being the period. No equation is available for this trend line.
O cálculo da liña de tendencia considera só pares de datos cos valores seguintes:
Liña de tendencia logarítmica: só se consideran valores positivos de x.
Liña de tendencia exponencial: só se consideran valores de y positivos, excepto se todos os valores de y foren negativos: neste caso a regresión sigue a ecuación seguinte y=-b∙exp(a∙x).
Power trend line: only positive x-values are considered; only positive y-values are considered, except if all y-values are negative: regression will then follow equation y=-b∙xa.
Ten que transformar os seus datos de acordo con isto; é mellor traballar cunha copia dos datos orixinais e transformar os datos copiados.
Calcular parámetros no Calc
Tamén pode calcular os parámetros empregando as funcións do Calc como segue.
A ecuación de regresión lineal
A regresión lineal segue a ecuación y=m*x+b.
b = INTERCEPT(Data_Y ;Data_X)
Calculate the coefficient of determination by
Besides m, b and r2 the array function LINEST provides additional statistics for a regression analysis.
The logarithmic regression equation
The logarithmic regression follows the equation y=a*ln(x)+b.
b = INTERCEPT(Data_Y ;LN(Data_X))
A ecuación de regresión exponencial
For exponential trend lines a transformation to a linear model takes place. The optimal curve fitting is related to the linear model and the results are interpreted accordingly.
The exponential regression follows the equation y=b*exp(a*x) or y=b*mx, which is transformed to ln(y)=ln(b)+a*x or ln(y)=ln(b)+ln(m)*x respectively.
The variables for the second variation are calculated as follows:
Calculate the coefficient of determination by
Besides m, b and r2 the array function LOGEST provides additional statistics for a regression analysis.
The power regression equation
For power regression curves a transformation to a linear model takes place. The power regression follows the equation y=b*xa, which is transformed to ln(y)=ln(b)+a*ln(x).
A ecuación de regresión polinomial
Para curvas de regresión polinomial realízase unha transformación a un modelo lineal.
Crear unha táboa coas columnas x, x2, x3, … , xn, y até o grao desexado n.
Use the formula =LINEST(Data_Y,Data_X) with the complete range x to xn (without headings) as Data_X.
The first row of the LINEST output contains the coefficients of the regression polynomial, with the coefficient of xn at the leftmost position.
The first element of the third row of the LINEST output is the value of r2. See the LINEST function for details on proper use and an explanation of the other output parameters.
Barras de erro X/Y
Precisamos da súa axuda!
Impressum (Legal Info) | Privacy Policy | Statutes (non-binding English translation) - Satzung (binding German version) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Mozilla Public License v2.0. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy. LibreOffice was based on OpenOffice.org.
Help content debug info:
This page is: /text/schart/01/04050100.xhp
Title is: Liñas de tendencia