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
0
votes
0 answers

Plotting exponential curve by fitting to data in python

I have x array and y array. I need to predict points(points of pareto fronts) in left and right side (I don't know exactly how). That's why used in first extrapolation of points, but it gaves linear I tried to fit my data points to exponential…
zz96
  • 1
  • 2
0
votes
1 answer

Extrapolation of dataset based on index

I am trying to extrapolate my dataset. A snippet looks as follows. A simple linear extrapolation is fine here: Index Value 3000 NaN 4000 NaN 5000 10 6000 20 6500 33 7000 44 8300 60 9300 NaN 9400 NaN The extrapolation should consider the…
0
votes
1 answer

Pick groups that have at least one non-missing value in R

I have a longitudinal data that I want to extrapolate one of its variables. I need to group the data by organizations' IDs and keep those groups/organizations that have at least one non-missing value for that variable (budget). It means that the…
Marj
  • 25
  • 5
0
votes
2 answers

Linear extrapolate values down to 0 from variable starting points

I want to build a query which allows me to flexible linear extrapolate a number down to Age 0 starting from the last known value. The table (see below) has two columns, column Age and Volume. My last known volume is 321.60 at age 11, how can I…
SQuirreL
  • 129
  • 1
  • 13
0
votes
2 answers

How to EXTRAPOLATE missing data with R in panel data?

In a Panel Data, I have some NA values that I would like to extrapolate at the end or start of my years of interest. Most solutions to similar questions deal with interpolation. Please note that this is not the case. A similar sample of my data…
0
votes
0 answers

Smooth interpolation (and extrapolation) through an approximately periodic function

I have some data points that I have plotted upon a scatter plot (see below; note that only the blue points are of interest for this question - please ignore the red and green points). These data points exist between -170 and +175 degrees. Firstly, I…
chelseabej1998
  • 111
  • 1
  • 6
0
votes
1 answer

prevent pandas.interpolate() from extrapolation

I'm having difficulty in preventing pd.DataFrame.interpolate(method='index') from extrapolation. Specifically: >>> df = pd.DataFrame({1: range(1, 5), 2: range(2, 6), 3 : range(3, 7)}, index = [1, 2, 3, 4]) >>> df =…
Zhang18
  • 4,800
  • 10
  • 50
  • 67
0
votes
1 answer

extrapolate pandas dataframe with lmfit

I am trying to extrapolate my data 14 , 18 , 38 , 57 , 100 , 130 , 191 18 , 26 , 48 , 74 , 79 , 130 , 165 3 , 3 , 3 , 3 , 3 , 3 , 6 323 , 470 , 655 , 889 , 1128 , 1701 , 203 0 , 0 , 0 , 0 , 1 ,…
BaRud
  • 3,055
  • 7
  • 41
  • 89
0
votes
1 answer

How to get the next predicted value from an extrapolation (linear regression?) using a set of data in a for loop?

sorry but the title is not clear enough because I didn't know how to describe it with few words. As you can see in the image I have used interp1d to graphically "predict" the value of y when x=7. What I'm trying to do is to predict another value of…
LearningPath
  • 93
  • 10
0
votes
1 answer

Using Scipy.interpolate.splev to extrapolate to fill missing data Python/Pandas

I'm trying to use extrapolation to get data for some missing numbers and am really struggling. Below is some options data with the strike price as the index and the volatility as MidVol. What I'm trying to do is find the MidVol for various strikes…
top bantz
  • 585
  • 1
  • 12
  • 29
0
votes
0 answers

Extrapolation in python (temperature curve in bomb calorimeter)

The 2 red lines in the graph are the 2 extrapolated lines. The upper line works well but the lower line seems to take into account the data outside the range of time2 and temp2 which makes the line look awkward after the point t=420s. I would like…
Jung
  • 139
  • 6
0
votes
1 answer

Extrapollate rows from the last year available up until a given year

I have the following data: library(data.table) df <- fread( "A B C D E F iso year 0 A NA 1 NA NA NLD 2009 1 Y NA 2 NA NA NLD 2010 0 Q NA 3 NA NA AUS 2011 1 NA NA 4 NA NA …
Tom
  • 2,173
  • 1
  • 17
  • 44
0
votes
1 answer

Use y-values as input for interpolation, instead of x

I am predicting the path of a rolling ball using coordinates obtained from my webcam using openCV, by using scipy interpolate. For the sake of simplicity, just normal arrays of x- and y-values are used. I can only input x in the function to obtain…
0
votes
1 answer

scipy interp1d extrapolation method

I am trying to extrapolate values from some endpoints as shown in the image below extrapolated value illustration I have tried using the scipy interp1d method as shown below from scipy import interpolate x = [1,2,3,4] y = [0,1,2,0] f =…
0
votes
0 answers

Method of extrapolating a point cloud based on similar data?

I'm trying to extrapolate information from a set of points in a point cloud to create a much larger point cloud, based on data from other point clouds. For the purposes of an example, the shape of the point-cloud form something like an offset…
jos
  • 149
  • 9