I have a question regarding a data science approach I'm currently working on.
I have two dimensional data (x, y). For each data entry a date (t) of when this data is recorded is attached. So, basically each data point has the following attributes: (x, y, t)
Now, I want to conduct a linear regression between x and y, but with the addition that t is respected in a way, that older dates are less decisive than earlier ones. In that case, every data point is rated for its date and is included in the regression differently based on this rating. In other words: Newer data would be more important and would influence the linear regression stronger than older data.
I've looked around a couple of hours now, but I haven't stumbled upon a suitable solution yet. Do you guys know a fitting methodology for this and an implementation strategy in Python?
Cheers and thank you!