09.10.2023 Views

Advanced Data Analytics Using Python_ With Machine Learning, Deep Learning and NLP Examples ( 2023)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6

Time Series

temp_forecasted_data<-sum(data.frame(tempforecast$mean)*s + m)

weekjoyforecastvalues[nrow(weekjoyforecastvalues) + 1, ] <-

c( asmname, temp_forecasted_data)

}

weekjoyforecastvalues$value<-as.integer(weekjoyforecastvalues$value)

#weekjoyforecastvalues

(sum(weekjoyforecastvalues$value)- 53782605)/53782605

#103000000)/103000000

Missing Data

One important aspect of time series and many other data analysis work is

figuring out how to deal with missing data. In the previous code, you fill in

the missing record with the average value. This is fine when the number of

missing data instances is not very high. But if it is high, then the average of

the highest and lowest values is a better alternative.

143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!