Questions tagged [extrapolation]

extrapolation is a method of constructing new data points outside the range of a discrete set of known data points

Extrapolation is a method of constructing new data points outside the range of a discrete set of known data points.

197 questions
1
vote
1 answer

Extrapolate time series data based on Start and end values, using Python?

I have an excel sheet with values representing start and end_time of a time series data, as shown below. Times are in seconds. +------------+---------+-------+ Start_Time End_Time Value 0 2 A 2 3 B 3 9 …
Ram
  • 41
  • 6
1
vote
0 answers

Python3 extrapolate using the starting value as the average of the final values

I have a dataframe with some yearly data in it that I want to extrapolate to monthly. I had a process that ran in SAS, which I am moving to Python3, that did this. It took the yearly value and used it as the average for the full year, spreading…
halp
  • 11
  • 1
1
vote
1 answer

How to find missed corners outside the image

The task is: Find all 4 corners of a given red polygon on this image I know how to find all corners if all borders are visible (linear extrapolation, phew, easy). My question is how to go about finding bottom corners if we don't see the bottom…
1
vote
1 answer

Out-of-sample Neural Networks or One-Step Forecasting RNN

I've been doing quite a bit of research on forecasting with machine learning models, specifically with multi-input neural networks. How does one predict (or forecast in this context) y+1 in the test set, when y+1 does not exist? Below, I have Jan…
1
vote
0 answers

Interpolating and extrapolating panel data in a pandas dataframe

I have panel data in a dataframe: id pop2010 pop2015 1001 1000 1300 1002 500 650 ... I want to linearly interpolate the data for each year between 2010 and 2015, and then create a new column for pop2016 and linearly…
Macaulay
  • 59
  • 1
  • 8
1
vote
1 answer

Bicubic interpolation beyond grid values in Matlab

Is it possible to achieve bi-cubic interpolation beyond grid values? For example: L = [5,10,20,25,40]; W= 1:3; S= [50 99 787 779 795 850 803 779 388 886 753 486 849 780 598]; size1 = griddata(W,L,S,2,40,'cubic') sizeBeyond =…
Mary
  • 788
  • 6
  • 19
  • 43
1
vote
1 answer

Extrapolate GridData utilizing RBF

I have some fairly spaced measured data that I make a contour plot using numpy's Griddata. Griddata correlates fairly well to the actual measured parts. I am looking to extrapolate the griddata a little further beyond the measurement points. I have…
Razor
  • 23
  • 1
  • 6
1
vote
1 answer

Extrapolating with a single data point

Is there an function for extrapolating in numpy? I tried using the interp but of course that interpolates between the range of my values and not outside the range of values. So for example i have my x-values between 1 and 8, inclusive, and for each…
user2554925
  • 487
  • 2
  • 8
1
vote
1 answer

Extrapolate missing data for each group by average percentage of change

I have a data frame containing average income by zip code, for the years 2010-2014. I want data for the years 2015-2017, so I'm looking for a way to extrapolate this based on the yearly average change of each zip code group for the years available.…
nadavb
  • 128
  • 12
1
vote
1 answer

GPS data estimation

I have a GPS on the middle of a plate as can be seen in attached picture. Clearly, the GPS gives me the Lon. and Lat of the center of the plate with no problem. My question is how can I estimate what is the Lon. and Lat at each end point (A,B,C,D)…
user7587408
1
vote
1 answer

Processing, ellipse not following alpha values?

class Particle{ PVector velocity, location; //PVector variables for each particle. Particle(){ //Constructor - random location and speed for each particle. velocity = new PVector(random(-0.5,0.5), random(-0.5,0.5)); location = new…
user4985
  • 141
  • 2
  • 9
1
vote
1 answer

Griddata has unwanted interpolation in Matlab

I'm trying to interpolate data from one grid to another in MATLAB. The first grid is unevenly spaced in y, while the second is not. When I perform the interpolation (using griddata), the result extrapolates across areas where data does not…
David_G
  • 1,127
  • 1
  • 16
  • 36
1
vote
1 answer

Clampled cubic splines with flat extrapolation

I am trying to implement a clamped cubic spline with a zero slope (flat extrapolation) at the boundary knots, but I am unable to obtain the desired results. For instance setting: x = [3 4 7 9]; y = [2 1 2 0.5]; I can use the CSAPE function to…
sets
  • 169
  • 7
1
vote
1 answer

Why do I get disjoint data when I try extrapolate after using polynomial regression

I wanted to extrapolate some of the data I had, as shown in the plot below. The blue line is the original data and the red line is the extrapolation that I wanted. To use regression analysis, I used the function polyfit: sizespecial = size(i_C);…
SDG
  • 2,260
  • 8
  • 35
  • 77
1
vote
1 answer

How to use Matlab's interp1 with linear interpolation and clip extrapolation

From the documentation of Matlab's interp1, it seems that the method used for interpolation and extrapolation should be the same. However, I would like to implement a linear interpolation with clip extrapolation (hold extreme values). Is this…
Karlo
  • 1,630
  • 4
  • 33
  • 57