Changing sign of data (regression)

AI Thread Summary
Flipping the signs of specific data points can help fit experimental data to an exponential model, especially when the data represents absolute values, such as magnetization in MRI experiments. This adjustment may be necessary if the experimental setup only measures absolute values or squared values, which can obscure the true behavior of the system. In this case, the modified data produced a high R2 value, indicating a strong fit to the exponential model. Justification for this method lies in the nature of the measurements and the theoretical model being applied. Understanding the experimental context is crucial for determining the appropriateness of such adjustments.
roam
Messages
1,265
Reaction score
12

Homework Statement



I was trying to fit experimental data which are theoretically modeled by an exponential function. They are shown in the first graph below. For the first set (red line), the data does not appear to be exponential. My lecturer once said that I need to flip the signs of the first few data points to get an exponential (see the second plot).

431qBiJ.png


Is there any justification for doing this? Are there any situations where such a thing would be appropriate?

This data relate to the absolute values of magnetisation in an MRI experiment.

Homework Equations


3. The Attempt at a Solution [/B]

When I flipped the signs of the first six data points, I got a curve which could then be modeled with an exponential, just like the other data sets. I got R2 = 0.99971, and the time constant I calculated from this was in agreement with the expected value.

So, why does this method work? Could there be any justification for doing this?

Any help would be greatly appreciated.
 
Physics news on Phys.org
Without knowing what your experimental setup is and what exactly is it that you are fitting to, we can't really tell with certainty. However, my suspicion is that your experimental device is only able to measure the absolute value of the quantity (or its square, since I see intensity in your graph there), which is why you have to "reverse" the sign to recover the actual value of the quantity possessed by the system.
 
  • Like
Likes roam
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top