Skip to content

Forecasting Data #10

@srinivasyl

Description

@srinivasyl

I've a data set of 120 items i need to forecast next item or next 5 items how to do it.

I've tried below example
`var forecastDatapoint = 121;

var coeffs = t.ARMaxEntropy({
    data:	t.data.slice(0,120)
});
console.log(coeffs);
 

var forecast	= 0;	// Init the value at 0.
for (var i=0;i<coeffs.length;i++) {	// Loop through the coefficients
    forecast -= t.data[10-i][1]*coeffs[i];
}
console.log("forecast",forecast);`

I have noticed that you've no where used forecastDatapoint this variable in above example so how exactly you're calculating 121 (11 in example) data point
also tired the sliding_regression_forecast but it failed to show red dot indicate at which point the forecast starts.
can you help in forecasting next 5 data points?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions