Looking for user experience: improve trend line

Discuss the spreadsheet application
Post Reply
User avatar
jumbo444
Posts: 7
Joined: Wed Dec 05, 2007 8:37 pm
Location: Rouen - FRANCE

Looking for user experience: improve trend line

Post by jumbo444 »

Hello,

I am looking for help about user experience with polynomial regression curve, which is one of the most wanted feature in Chart, cf. issue 20819. We need file format modification prior been able to solve this issue. First of all, we have to ask for such a demand to OASIS TC.
A draft has been already written for a file format change in ODF. It needs to be modified on two points:
- argue about importance of this feature, so that it will more likely succeed
- list the most important missing features with trend lines

For the first point, we need to gather concrete examples of use of polynomial trend lines, in several fields, not only in maths and physics: economy, biology, history, geography, etc. Another argument to put forward, is that this functionality exists in other spreadsheets since more or less long time: for MS-Excel at least since Excel 97, probably Excel 95, I did not already check. Gnumeric does it? Since when? Thank you for transmitting informations about this subject.

For the second point, it is obvious that asking a file format change only for polynomial regression curve is unproductive. That's why the proposition includes other important issues for regression curve:
- moving average trend line (issue 66819)
- force intercept (issue 34093)
- extrapolate (issue 5085)
Do you see other features that are missing to trend lines? I made comparison with only MS-Excel, but other spreadsheets may have interesting features.

With this four first features, there are things that should be discussed before asking to OASIS TC a file format change:
- polynomial trend line: Laurent Godard had included in his macro CorelPoly the possibility to use exponential terms: y = sum a_i. exp (i. x) instead of y = sum a_i. x^i. Which applications do you see such expression have? Is it necessary to add this option?
- moving average trend line: by default it is prior moving average. What about adding central moving average? Is it necessary, or will there be too many parameters, most of them useless?

Many thanks in advance for your answers. I've attached to this message the documents under works. Please comment them.
Attachments
DraftForEnhancedTrendLine.odt
List of features missing for trend lines
(47.91 KiB) Downloaded 248 times
RegressionCurve_FileFormat_LBP_IHA.odt
File format change demand to OASIS
(23.93 KiB) Downloaded 235 times
LibO 3.6.7.1 on Win7
Dave
Posts: 1011
Joined: Sun Dec 23, 2007 6:53 pm

Re: Looking for user experience: improve trend line

Post by Dave »

jumbo444 wrote:For the first point, we need to gather concrete examples of use of polynomial trend lines, in several fields, not only in maths and physics: economy, biology, history, geography, etc.
Is there not mathematical software already available and more dedicated for this purpose?

David.
User avatar
jumbo444
Posts: 7
Joined: Wed Dec 05, 2007 8:37 pm
Location: Rouen - FRANCE

Re: Looking for user experience: improve trend line

Post by jumbo444 »

Dave wrote:Is there not mathematical software already available and more dedicated for this purpose?
Sure, for instance R Statistics will do it. But other spreadsheets (MS-Excel, Gnumeric) already do it. So we need it at least for compatible problems.
LibO 3.6.7.1 on Win7
privatne
Posts: 3
Joined: Tue Dec 16, 2008 9:05 pm

Re: Looking for user experience: improve trend line

Post by privatne »

Hello, does it mean that moving average is not yet available in version 3? When I opened an Excel graph with that function, the trend line has disappeared. And, I could nor find this function in Calc. Thanks.
OpenOffice 4.X on MS Windows 10
preston48118
Posts: 1
Joined: Tue Apr 07, 2009 11:13 am

Re: Looking for user experience: improve trend line

Post by preston48118 »

My need of the polynomial trend line is to estimate the Population of the U.S. based on census data from 1790-2000 and extrapolate it to 2040. The polynomial trend line has an R-squared value of .9996 and is useful for this extrapolation. The linear (.92), log (.63), and power (.94) options are just not good enough to extrapolate.
OOo 3.0.X on MS Windows Vista + Windows XP
User avatar
Villeroy
Volunteer
Posts: 31344
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Looking for user experience: improve trend line

Post by Villeroy »

http://extensions.services.openoffice.o ... ect/R4Calc
This extension allows one to use the open source R statistics package within OpenOffice Calc. It comes with a number of features, including new user interface windows for using advanced statistical tools, new spreadsheet functions, and a way to use R scripts within Calc.
[Solved+Issue] Polynomial regression
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
miche
Posts: 4
Joined: Wed Sep 09, 2009 4:51 am

Re: Looking for user experience: improve trend line

Post by miche »

Hi all,

I'm looking for a way to display exponential trendline equation in the form y=b*exp^a*x (which is the form of Excel) rather than OO default y=b*m^x. Am I missing something?
Thanks,
Miche
Miche

OpenOffice 3.0 on Ubuntu 9.04
FJCC
Moderator
Posts: 9541
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Looking for user experience: improve trend line

Post by FJCC »

I don't think you can force the display of the equation in the form y = b*exp^(a*x) but the information is there in the equation Calc provides. The form y = b*exp^(a*x) can also be expressed as y = b*(exp^a)^x. Comparing to the Calc form y = b*m^x, you can see that m = exp^a. So, to get the constant a from the Calc form you would use a = Ln(m). You can then create a text box with the equation and place it wherever you want on the graph.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
miche
Posts: 4
Joined: Wed Sep 09, 2009 4:51 am

Re: Looking for user experience: improve trend line

Post by miche »

Thanks for your fast reply. I was looking for the "excel" displayed for just for the sake of practicality. I have a large number of graphs and the information I want to show is the "a" which I actually calculate as you indicated. This means manual curation of each graph.
Thank you for your help.
Best,
M
Miche

OpenOffice 3.0 on Ubuntu 9.04
FJCC
Moderator
Posts: 9541
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Looking for user experience: improve trend line

Post by FJCC »

I think you can save some manual work using the LOGEST function. If you enter it in the form

Code: Select all

=Logest(YData;XData;1;1)
and don't enter it as an array function (i.e. just hit enter, not CTRL+SHIFT+ENTER), it will return the m value of the fit y = b*m^b. You can then use another cell to compute the LN of that value or bundle it all in one cell as

Code: Select all

=LN(LOGEST(YData;XData;1;1))
That will give you your a constant for each data set. If your data sets are all the same size you can just copy and paste that formula in a convenient place near each data set. If the sets are different sizes, you can paste the formula and then adjust the X and Y data sets by clicking on the cell with the formula, pressing F2 and dragging the sizes of the red and blue boxes that will appear around the X and Y data ranges.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
miche
Posts: 4
Joined: Wed Sep 09, 2009 4:51 am

Re: Looking for user experience: improve trend line

Post by miche »

Thanks FJCC, I will try to save some manual work using LOGEST. Anyway either ways are fine, it is just a matter of notation and not substance. Thanks for your help.
Miche
Miche

OpenOffice 3.0 on Ubuntu 9.04
miche
Posts: 4
Joined: Wed Sep 09, 2009 4:51 am

Re: Looking for user experience: improve trend line

Post by miche »

On more question: do I have a way (i.e.: macro?) to change all the titles of a series of charts with constant text? I'm not very inside macros world..
Basically I'm copying a sheet to another and changing only the data source, but all the operations and charts are the same. But then I have to change all the titles according to the new informations inserted.

Many thanks!
Miche

OpenOffice 3.0 on Ubuntu 9.04
FJCC
Moderator
Posts: 9541
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Looking for user experience: improve trend line

Post by FJCC »

You can use a fairly simple macro to change the title of every chart in a sheet. This code asks for the new title and then changes the title of all the charts on the currently active sheet.

Code: Select all

NewTitle = InputBox("Enter new title", "Title Entry")
oDoc = ThisComponent  'Get the current document
Sheet = oDoc.CurrentController.ActiveSheet 'Get the current sheet
Charts = Sheet.getCharts 'Get the collection of charts
ChartEnum = Charts.createEnumeration 'An Enumeration allows stepping sequentially through the collection
While ChartEnum.hasMoreElements
	PickedChart = ChartEnum.nextElement
	ChartObj = PickedChart.EmbeddedObject
	TitleObj = ChartObj.Title
	TitleObj.String = NewTitle
Wend
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Post Reply