How to calculate general trendline for a time series

Click For Summary

Discussion Overview

The discussion revolves around methods for calculating a general trendline for a time series, specifically in the context of predicting future behavior based on past data points. The scope includes theoretical considerations and practical applications related to time series analysis.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • The original poster suggests three methods for extrapolating future behavior from a time series: calculating the average change between consecutive data points, counting positive and negative changes, and assuming linearity for a best fit linear approximation.
  • One participant argues that the original poster's approach does not make sense due to insufficient information about the time series and suggests looking into time series analysis for more structured methods.
  • The original poster refines the context by specifying that they are analyzing sales data over a six-month period and seeks to understand trends and predict future sales.
  • Another participant emphasizes that even with the refined context, there is still a lack of mathematical information, noting that external factors like seasonality may affect sales data. They recommend performing a linear regression or providing a plot of the data for further insights.

Areas of Agreement / Disagreement

Participants express disagreement regarding the sufficiency of the information provided for making predictions. There is no consensus on a specific method to apply, and the discussion remains unresolved regarding the best approach to analyze the time series data.

Contextual Notes

Limitations include the lack of detailed mathematical modeling and the influence of external factors on the data, which may affect the validity of proposed methods.

ateixeira
Messages
19
Reaction score
10
Hi there,

Given a time series with data points x_1, x_2, x_3,...,x_n I want to be able to extrapolate its future behaviour. I can see three options:

  1. \sum_i (x_(i+1)-x_i)/x_i
  2. count of how many terms of (x_(i+1)-x_i) are positive and negative
  3. Assume linearity and calculate m for the best fit linear aproximation

What I want to know is:
  1. Do you think that this makes sense?
  2. Do you know of any standardized way to solve this?

Thanks
 
Physics news on Phys.org
ateixeira said:
[*]Do you think that this makes sense?

No, it doesn't make sense to expect that an answer that can be mathematically justified when so little information about the time series has been given.

[*]Do you know of any standardized way to solve this?

You can find many references on "time series analysis". They won't solve your problem as you have stated it since the statement doesn't give enough information. However, if you look up material on time series analysis it will show you the type of assumptions or facts that must be given in order for various prediction methods to work.
 
Thanks for your reply Stephen and sorry for not being specific enough.

No, it doesn't make sense to expect that an answer that can be mathematically justified when so little information about the time series has been given.
In that case let us assume that I'm analyzing the sales of a given product on given time frame (say 6 months).

What I want to be able to do is:
  1. understand if the sales are experiencing an upward or downward tendency
  2. Predict the next data point
 
ateixeira said:
In that case let us assume that I'm analyzing the sales of a given product on given time frame (say 6 months).

That is still not enough mathematical information about the problem. For example, the sales of products like sun tan lotion may depend on the season or the weather. If you don't understand mathematical modeling, I suggest that you just do a linear regression (i.e. a linear curve fit). Or post a plot of the data and I'm sure someone will chime-in with an opinion about what kind of curve fits it.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K