Jump to content

Some Statistical Trend Functions


Jorj
 Share

Recommended Posts

This script calculates the trend polynomial (deg. 2), trend line or exponential trend for any arrays of x-values and y-values.

Input are the arrays of x values and the y values, output contains either a and b for "a*x+b" (trend line) or for b*E**(a*x) for exponential trend or a, b, c for the trend polynomial a*x**2 + b*x + c.

In addition, the average deviation of the y values from the trend function is returned as an "approximation quality" percentage.

Some background:

The calculation involves linear equation solving. Some utility functions can also be used outside trend analysis.

Linear equation solving is now based on Cholesky's algorithm for symmetric positive matrices, and dimension restrictions have been removed.

TrendStats.au3

Edited by Jorj

Jorj X. McKie Saboteur Extraordinary

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...