Graph non-linearity calculation

  • Context: Undergrad 
  • Thread starter Thread starter thavamaran
  • Start date Start date
  • Tags Tags
    Calculation Graph
Click For Summary

Discussion Overview

The discussion revolves around calculating the drift percentage between an actual output graph and a linearity graph for a sensor analysis in an engineering project. Participants explore methods for quantifying the difference between observed and predicted values, considering both point-by-point and overall graph comparisons.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks guidance on calculating the drifting percentage between the actual output (blue line) and the linearity graph (red line).
  • Another participant proposes a formula for percentage drift based on the difference between observed and predicted values, suggesting the use of absolute values to avoid negative results.
  • A follow-up question clarifies whether the proposed formula applies to individual points or if there is a method for assessing the entire graph's drift.
  • Further discussion includes alternative methods for calculating drift over the entire graph, including integrals and root mean square approaches.

Areas of Agreement / Disagreement

Participants present multiple approaches for calculating drift, with no consensus on a single method. There is acknowledgment of the need for absolute values in calculations, but differing opinions on how to apply these methods to the entire graph versus individual points remain unresolved.

Contextual Notes

Participants express uncertainty regarding the implications of negative values in drift calculations and the applicability of different mathematical approaches to the overall analysis.

thavamaran
Messages
39
Reaction score
0
Hi guys, I am currently undergoing process of my final engineering project. so I am analyzing my sensor via graph. so i have attach two graph image whereby i need to compare the actual output which is in blue line and red line is the actual linearity graph which how it suppose to be. so now i need to find the drifting percentage between the actual graph and the linearity graph. i need idea how to do it, can anyone guide me through please. thank you.

in second graph i have pointed out the drifted point from linearity form. please guide me through.
 

Attachments

  • Graph1.JPG
    Graph1.JPG
    9.3 KB · Views: 882
  • graph2.JPG
    graph2.JPG
    10.7 KB · Views: 895
Mathematics news on Phys.org
I presume that by the "drift" you mean the difference between the observed value (blue line) and the predicted value (red line). Calling the observed value yo(x) and the predicted (linear) value yp(x), the "percentage drift" is
[tex]\frac{|y_o(x)- y_p(x)|}{y_p(x)}[/tex]
written as a percent.
 
So you mean by A=blue line and B=red line, ((A-B)/B)x100% right. so that means this equation goes for point of the drifted value right, so its for point by point analysis. is there any possibilities for the entire blue line drifting equation compare to red line equation?

thanks a lot
 
come back to your equation, how if the blue line value is smaller than red line? like A=1, B=2, its going to be in negative form?
 
That was why I suggested using absolute value. If you want a single number for the entire graph you might use either
[tex]\frac{\int |y_o(x)- y_p(x)|dx}{\int y_p(x) dx}[/tex]
or
[tex]\frac{\sqrt{\int{(y_o(x)- y_p(x))^2 dx}}}{\int y_p(x)dx}[/tex]

(A third measure that is sometimes used is
[tex]max\left(\frac{|y_o(x)-y_p(x)|}{y_p(x)}\right)[/tex])
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
4K
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 9 ·
Replies
9
Views
7K