pyEasyTrend

This python package is used to perform Trends analysis using a single line

Created on Tue Dec 15 15:26:05 2020 Last edited on Mon Dec 21 18:45:00 2020

@author: Giulio gabrock Gabrieli

__init__.analyzeTrend(x, y, maxDegree=2, visualize=False, title='Trend Analysis', xlabel='x', ylabel='y', plotci=True, ci=95)

This is a simple entrypoint to perform a trend analysis. This functions performs the analysis of the trend (SSE, R2, F, AIC, BIC) up to the maxDegree order.

Parameters
  • x (list) – x

  • y (list) – y

  • maxDegree (int) – highest order of the model to test

  • visualize (bool) – renders a visual representation of the model(s)

  • title (string) – Title of the visual representation. Only used if visualize is True

  • xlabel (string) – Label of the X axis of the visual representation. Only used if visualize is True

  • ylabel (string) – Label of the Y axis of the visual representation. Only used if visualize is True

  • plotci (boolean) – renders the confidence interval on the plot

  • ci (int) – confidence interval. Only used if plotci is True

Returns

a dictionary containing the results of the trend analysis

Return type

dict

__init__.tablifyResults(results)

This function create a pandas DataFrame containing the results of the linear trend analysis obtained using the analyzeTrend function.

param results

results dictionary obtained using the analyzeTrend function

type resu;ts

dict

return

pandas Dataframe of length = len(maxOrder).

rtype

pandas DataFrame