Bug 128657 - exponential regression calculation
Summary: exponential regression calculation
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.3.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 18:12 UTC by Olivier D
Modified: 2020-04-27 18:02 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
solution (75.73 KB, application/pdf)
2019-11-07 18:15 UTC, Olivier D
Details
description (38.65 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-11-07 19:17 UTC, Olivier D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier D 2019-11-07 18:12:17 UTC
Description:
On a non-linear graph, when drawing the trend line, the displayed equation is absolutly wrong. The curve is right

Steps to Reproduce:
create a non-linear graph
display the trend line and the equation
Eventuellemnt, apply this equation and compare

Actual Results:
false equation

Expected Results:
good equation


Reproducible: Always


User Profile Reset: No



Additional Info:
It is possible to determine the right equation with the results of the LOGEST function

I can send you a pdf document for solution
Comment 1 Olivier D 2019-11-07 18:15:34 UTC
Created attachment 155615 [details]
solution

This document provides a solution
Do not hesitate to contact me.
cordially
Comment 2 Olivier D 2019-11-07 18:17:12 UTC
The attached document provides a solution
Do not hesitate to contact me.
cordially,
Olivier D
Comment 3 Olivier D 2019-11-07 18:19:09 UTC
The attached document provides a solution
Do not hesitate to contact me.
cordially
Comment 4 V Stuart Foote 2019-11-07 18:22:18 UTC
Hi Olivier, thank you for filing. Please attach a sample .ODS Calc spreadsheet with the chart of function included.

And also, please attach a screen clip with any annotation as to what is perceived as incorrect.
Comment 5 V Stuart Foote 2019-11-07 18:24:38 UTC
Comment on attachment 155615 [details]
solution

corrected MIME type for PDF attachement, not a patch
Comment 6 Olivier D 2019-11-07 19:17:51 UTC
Created attachment 155617 [details]
description

Hello,
in return you will find an ODS document as an example of my description. 

(I show the results of LOGREG by the keyboard combination ctrl/maj/enter)

This file is initially created with OpenOffice, but the problem is the same with Libre Office.

Cordially,
Olivier D
Comment 7 Xisco Faulí 2019-11-08 10:18:29 UTC
Hi Olivier,
Sorry for my ignorance but what would be the expected result ?
Comment 8 Olivier D 2019-11-08 10:50:06 UTC
Hi Xisco,
This concerns the formula (exponential regression) on the chart, in my opinion it is wrong.

I think it's possible to calculate the coefficient of the exponential quite simply in this way: 
              f(X) = B.exp(A.X)  with A = LN(LOGREG (...; ...; 1; 1)).

              For coefficient 'B' I do not know just.

In French it is LOGREG, I do not know if it has another name.

Thank you very much
Comment 9 Regina Henschel 2019-11-08 12:34:14 UTC
It is not possible to show a "correct" regression equation for a _line_ chart. The reason is, that a line chart treats the x-axis values as categories, which means, that they are not numbers. In the calculation of a regression line, the categories are replaced with the numbers 1,2,3,... 

To get a correct equation you must use an XY-chart.

My suggestions since a long time is to disable the equations for line charts.
Comment 10 Olivier D 2019-11-08 15:07:01 UTC
Hello Mrs. Henschel
indeed, it's perfect using X;Y graphics

Usually I use the particular case with a regular step, so my graphics was consistent also without X;Y

Excuse me for "the alert"

Best regards,
Olivier D
Comment 11 Oliver Brinzing 2019-11-09 14:36:07 UTC
(In reply to Regina Henschel from comment #9)
> To get a correct equation you must use an XY-chart.
> My suggestions since a long time is to disable the equations for line charts.

(In reply to Olivier D from comment #10)
> Hello Mrs. Henschel
> indeed, it's perfect using X;Y graphics

can this issue be closed as WORKSFORME or should it be treated as an enhancement request?
Comment 12 Olivier D 2019-11-09 16:05:44 UTC
Hello,
in simple user observation, 'column' type graphs have the same problem. 
It only works in graphical XY, which is already very good ..
Comment 13 Buovjaga 2020-04-27 18:02:01 UTC
Ok, let's close