Skip to content
Advertisement

Python – Prediction of Variable Based On Data

I have a data frame that looks like this.

JavaScript

And a second dataframe that looks like this.

JavaScript

My desired output is

JavaScript

Basically, I want to use my first data frame as my training data to predicted what the deadlines changes are for my second data frame.

I want my desired output to be the second data frame with an additional variable called predicted_deadline_change. I need the predicted_deadline_change variable to be based on the training data.

Using python, what would be the best approach/method to do this?

Advertisement

Answer

This is a simple regression model for predicting deadline changes.

JavaScript

Results:

JavaScript

There are a lot of different modeling techniques for predicting values, all having different advantages and disadvantages.

This would probably be your most basic model that assumes a linear relationship between your independent and dependent variables.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement