I have hourly data on electricity consumption for a specific day. I would like to use this data to “predict” the hourly electricity consumption for the following days. The value for the following day should be the value from the same hour the day before, multiplied by a scaling factor f (e.g. 2). The dataframe df that I have looks
Tag: extrapolation
Extrapolating using Pandas and Curve_fit error func() takes 3 positional arguments but 4 were given
I’m using the code from another post to extrapolate values. I changed the func() so that it is linear not cubic however I get an error “func() takes 3 positional arguments but 4 were give” Extrapolate values in Pandas DataFrame is where I got the original code. My question is how would I change it so it works with a
How to do linear regression, taking errorbars into account?
I am doing a computer simulation for some physical system of finite size, and after this I am doing extrapolation to the infinity (Thermodynamic limit). Some theory says that data should scale linearly with system size, so I am doing linear regression. The data I have is noisy, but for each data point I can estimate errorbars. So, for example