Python Forum
help on exponential smoothing and linear regression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help on exponential smoothing and linear regression
#1
Hey dude,

I am just a beginner for Python coding, so please see if you can help me on following homework on exponential smoothing and linear regression in Python based on the following mathematical functions:

Ft+1 = a *Yt + (1-a)*Ft
where
Ft+1 = forecast value at T+1
Yt = actual value at T
Ft = forecast value at T
a = smoothing factor (between 0 to 1)
F1=Y1

The following Yt is given: [26.5, 26.76, 25.29, 23.79, 21.31, 21.84, 25.71,26.11]
Exponential smoothing series and linear regression have to create and predict the 9th element when T=9...
Reply
#2
see: http://scipy-cookbook.readthedocs.io/ite...ssion.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple linear regression with interaction summary table Andrzej_Andrzej 0 227 Feb-21-2024, 07:44 AM
Last Post: Andrzej_Andrzej
  Laplacian Exponential Diffusion Kernel ainisyarifaah 1 1,694 Nov-25-2021, 06:21 PM
Last Post: Gribouillis
  Smoothing Applications in Python xZeroCoolx 1 2,044 Aug-28-2020, 04:06 AM
Last Post: Larz60+
  Linear regression doubt - Urgent kumarants 6 3,053 May-05-2020, 04:11 PM
Last Post: kumarants
  prediction using linear regression (extrapolation?) in a loop karlito 0 3,181 Feb-05-2020, 10:56 AM
Last Post: karlito
  Linear Regression on Time Series karlito 5 3,843 Jan-28-2020, 10:02 AM
Last Post: buran
  How to build linear regression by implementing Gradient Descent using only linear alg PythonSpeaker 1 2,159 Dec-01-2019, 05:35 PM
Last Post: Larz60+
  Linear Regression Python3 code giving weird solutions deepsen 0 1,396 Nov-01-2019, 12:06 PM
Last Post: deepsen
  how to fit an exponential function to multiple data python_newbie09 1 2,799 Sep-24-2019, 08:12 AM
Last Post: scidam
  Differentiation with exponential functions tyrael69 0 3,976 Feb-09-2018, 02:01 AM
Last Post: tyrael69

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020