Applying k-nearest neighbors to time series forecasting : two new approaches

03/26/2021
by   Samya Tajmouati, et al.
0

K-nearest neighbors algorithm is one of the prominent techniques used in classification and regression. Despite its simplicity, the k-nearest neighbors has been successfully applied in time series forecasting. However, the selection of the number of neighbors and feature selection is a daunting task. In this paper, we introduce two methodologies to forecasting time series that we refer to as Classical Parameters Tuning in Weighted Nearest Neighbors and Fast Parameters Tuning in Weighted Nearest Neighbors. The first approach uses classical parameters tuning that compares the most recent subsequence with every possible subsequence from the past of the same length. The second approach reduces the neighbors' search set, which leads to significantly reduced grid size and hence a lower computational time. To tune the models' parameters, both methods implement an approach inspired by cross-validation for weighted nearest neighbors. We evaluate the forecasting performance and accuracy of our models. Then, we compare them to some classical approaches, especially, Seasonal Autoregressive Integrated Moving Average, Holt-Winters and Exponential Smoothing State Space Model. Real data examples on retail and food services sales in the USA and milk production in the UK are analyzed to demonstrate the application and the efficiency of the proposed approaches.

READ FULL TEXT

page 16

page 17

research
10/25/2021

Applying Regression Conformal Prediction with Nearest Neighbors to time series data

In this paper, we apply conformal prediction to time series data. Confor...
research
05/10/2021

On projection methods for functional time series forecasting

Two nonparametric methods are presented for forecasting functional time ...
research
08/16/2021

Evolving Fuzzy k-Nearest Neighbors Using an Enhanced Sine Cosine Algorithm: Case Study of Lupus Nephritis

Because of its simplicity and effectiveness, fuzzy K-nearest neighbors (...
research
04/05/2020

A new hashing based nearest neighbors selection technique for big datasets

KNN has the reputation to be the word simplest but efficient supervised ...
research
12/12/2021

The R Package knnwtsim: Nonparametric Forecasting With a Tailored Similarity Measure

The R package knnwtsim provides functions to implement k nearest neighbo...
research
01/25/2017

k*-Nearest Neighbors: From Global to Local

The weighted k-nearest neighbors algorithm is one of the most fundamenta...
research
08/14/2019

Mixed pooling of seasonality in time series pallet forecasting

Multiple seasonal patterns play a key role in time series forecasting, e...

Please sign up or login with your details

Forgot password? Click here to reset