Quantifying nonlinearity from data

  • Context: Graduate 
  • Thread starter Thread starter BillKet
  • Start date Start date
  • Tags Tags
    Data
Click For Summary

Discussion Overview

The discussion revolves around the challenge of quantifying nonlinearity in a function represented as $$y = ax + b + f(x)$$, where only the variables x and y can be measured experimentally. Participants explore methods to extract the non-linear component $$f(x)$$, which is assumed to be small compared to the linear terms, and discuss the implications of different forms of $$f(x)$$ on the analysis.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant presents a function $$y = ax + b + f(x)$$ and queries if $$f(x)$$ can be extracted from measurements of x and y, emphasizing the non-linearity of $$f(x)$$.
  • Another participant warns that certain forms of $$f(x)$$, such as $$f(x) = x^2 + 2x + 1$$, could be indistinguishable from adjustments to the linear coefficients a and b, complicating the extraction of $$f(x)$$.
  • A later reply confirms the original poster's willingness to redefine a and b to focus solely on deviations from linearity, indicating a preference for understanding the non-linear behavior regardless of the specific values of a and b.
  • One participant suggests starting with linear regression to estimate a and b, then computing the residuals $$y - ax - b$$ to model the non-linear component with a parameterized function, proposing that visualizing the data could aid in hypothesizing the form of $$f(x)$$.

Areas of Agreement / Disagreement

Participants express differing views on the implications of the form of $$f(x)$$ and its indistinguishability from linear adjustments. There is no consensus on the best method for extracting $$f(x)$$, and the discussion remains open-ended regarding the approach to modeling nonlinearity.

Contextual Notes

Assumptions about the nature of measurements (e.g., perfect measurements with no noise) and the specific forms of $$f(x)$$ are not fully resolved, which may affect the proposed methods for quantifying nonlinearity.

BillKet
Messages
311
Reaction score
30
Hello! I have a function of the form:

$$y = ax + b + f(x)$$
and I can measure experimentally only x and y. I also know that ##f(x)<<ax,b##, where ##f(x)## is some non-linearity in x i.e. it can't be absorbed into the ##ax+b## part (for example ##f(x) = cx^2##), but I don't know its form. Is there a way to extract ##f(x)##, by measuring only ##x## and ##y##? I am basically wondering if I can quantify the deviation of the expression above from linearity and connect that to the value of x. Thank you!
 
Physics news on Phys.org
As a first pass, you could be in a lot of trouble if ##f(x)=x^2+2x+1=(x+1)^2##, which is going to be literally indistinguishable from adding 2 to a, 1 to b, and ##f(x)=x^2##.

That said, it sounds like maybe you don't care, and you are happy to just think of ##f(x)## as ##x^2## in this case. Is that right?
 
Office_Shredder said:
As a first pass, you could be in a lot of trouble if ##f(x)=x^2+2x+1=(x+1)^2##, which is going to be literally indistinguishable from adding 2 to a, 1 to b, and ##f(x)=x^2##.

That said, it sounds like maybe you don't care, and you are happy to just think of ##f(x)## as ##x^2## in this case. Is that right?
Yes! I am fine with redefining a and b if needed (i.e. absorbing those terms you mentioned above). I am purely interested in any deviation from linearity, regardless of the actual value of a and b.
 
And the thing you care about specifically is trying to estimate y given a value of x? Are we assuming your measurements are perfect with no noise?

I think you would start with doing linear regression to get ##y \approx ax+b## for some ##a## and ##b##. Then compute ##y-ax-b##, and attempt to model it with your favorite parameterized function. If you have a specific example, just drawing a plot of that would probably be a good start for guessing the shape of the non linear piece
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K