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
2
votes
1 answer

R - Adding an extrapolated (lm) value to a matrix of observations

I am trying to add a set of extrapolated "observations" to a matrix in R. I know how to do this using normal programming techniques (read; bunch of nested loops and functions) but I feel this must be possible in a much more clean way by using build…
Sylvain
  • 47
  • 5
2
votes
2 answers

Extrapolation of non-linear relationships in R (ggplot2)

Assuming this dataset (df): Year<- c(1900, 1920,1940,1960,1980,2000, 2016) Percent<-(0, 2, 4, 8, 10, 15, 18) df<-cbind (Year, Percent) df<-as.data.frame (df) How would it be possible to extrapolate this plotted loess relationship to the years…
I Del Toro
  • 913
  • 4
  • 15
  • 36
2
votes
2 answers

Extract monthly data from hourly resoluted netcdf file in nco

As the title indicates, I want to extract a time period e.g january for a variable, wind_speed, from a .nc file that consists of wind speeds with 3-hourly resolution during one year. I would like to do this in nco if possible. I tried the following…
David Halley
  • 417
  • 3
  • 6
  • 18
2
votes
2 answers

How can I extrapolate to higher values in Matlab?

I have the following data: T=[0,100,300] and a=[2.8796,2.8785,2.886] and I want to extrapolate and know what a will I get at T=600 in Matlab. How can I do that?
Elin
  • 61
  • 1
  • 5
2
votes
1 answer

Extrapolate linear fit for scatterplot in ggplot2 in R

I would like to extrapolate a linear fit to data over a subset of the data in ggplot2 beyond the region of that data (in order to visualize the danger of extrapolation). In the following code, I would like to expand the linear fit generated over the…
coding_heart
  • 1,245
  • 3
  • 25
  • 46
2
votes
0 answers

extrapolate data with constraint

I have the following data values freq=[10 30 100 300 1000 3000 10000]; %frequency (Hz) ew = [2 1.4 1.4 1.1 1.1 1.1 1.1]*1e-9; %amplitude %nV/sqrt(Hz) Based on this data values and assuming a modal of 1/frequency (pink noise). I wish to extrapolate…
2
votes
0 answers

polynomial extrapolation using C#

Can anyone help me to find a efficiency method for polynomial extrapolation using C#? Example: I have 10 different coordinates(XY plane) and need to find 11th point according to this 10 points using a very efficiency algorithm. please suggest me if…
1
vote
1 answer

List of dates between two date variables in pandas dataframe

I have a dataset like this Business_dt Value_dt ID 0 05/01/2021 01/01/2021 1 1 06/01/2021 01/01/2021 1 2 07/01/2021 01/01/2021 1 3 08/01/2021 01/01/2021 1 4 15/02/2021 13/02/2021 2 5 16/02/2021 13/02/2021 2 6 …
Lisa
  • 157
  • 1
  • 9
1
vote
1 answer

How can I use cubic splines for extrapolation?

I am looking to use natural cubic splines to interpolate between some data points using stats::splinefun(). The documentation states: "These interpolation splines can also be used for extrapolation, that is prediction at points outside the range of…
Rham
  • 13
  • 3
1
vote
1 answer

How to inter cumulative sums between two dates and period for individual days?

I would like to extrapolate the sums between two days into daily values. The counts represent the cumulative sums collected up to certain day: Let's say, at day X there is XX apples fallen on the ground. How many apples fell on the ground daily and…
maycca
  • 3,848
  • 5
  • 36
  • 67
1
vote
2 answers

How to interpolate/ extrapolate in R when the vector has several NaNs?

I have a vector, which contains several NaNs. For example, d=c(NaN,2,3,4,4,2,4,7,NaN,NaN,8,5,6,NaN) I would like to do some expolation to replace NaNs. The difficulty for me is that I do not know how many NaNs I have and where they are. Thank you…
mym123
  • 11
  • 3
1
vote
2 answers

R: Inter- and extrapolate values in dataframe by matching column of another dataframe

I have two dataframes: df1 <- data.frame(levels = c(1, 3, 5, 7, 9), values = c(2.2, 5.3, 7.9, 5.4, 8.7)) df2 <- data.frame(levels = c(1, 4, 8, 12)) # other columns not necessary I want the df1$values to be interpolated to the…
B.Quaink
  • 456
  • 1
  • 4
  • 18
1
vote
1 answer

Simulate CDF curve for penetration/adoption extrapolation

I'd like to be able to plot a line like the cumulative distribution function for the normal distribution, because it's useful for simulating the adoption curve: Specifically, I'd like to be able to use initial data (percentage adoption of a…
Chris
  • 151
  • 10
1
vote
0 answers

Matlab multidimensional extrapolation

I have a 6 dimensional grid. I use interpn command in Matlab to find interpolated points between grid values. However, sometimes I need to evaluate points outside the grid. The interpn command does this automatically if the method is set to "makima"…
fes
  • 127
  • 4
1
vote
1 answer

Fill in NaN in Pandas Dataframe using trend of previous valid values

I am trying to fill in gaps in data by grouping and then using the trend of the previous data points to predict what the missing values are. df Group Week Value B 1 5 B 2 6 B 3 NaN B 4 NaN B 5 NaN B …