Non-linear regression of Curie's Law

Click For Summary
SUMMARY

This discussion focuses on fitting a non-linear regression model to the relative permeability of ferrite using Curie's Law, specifically the equation \(\mu_r = 1 + a\tanh(b/T)\). The variable \(b\) is determined by minimizing the error function \(E=\sum_{i=1}^{N}(\mu_i-\mu(T_i,b))^2\), where \(\mu(T,b)=1 + a\tanh(b/T)\). The method suggested involves using numerical techniques, such as Excel's goal seek or Mathematica, to find the optimal value of \(b\) while ensuring the uniqueness of the solution.

PREREQUISITES
  • Understanding of non-linear regression analysis
  • Familiarity with thermodynamic temperature concepts
  • Knowledge of error minimization techniques
  • Experience with numerical methods in software like Excel or Mathematica
NEXT STEPS
  • Research methods for minimizing non-linear error functions
  • Learn how to implement numerical solutions in Mathematica
  • Explore the properties of hyperbolic tangent functions in statistical modeling
  • Study the uniqueness of solutions in non-linear regression problems
USEFUL FOR

This discussion is beneficial for physicists, data analysts, and statisticians involved in modeling magnetic properties and those interested in applying non-linear regression techniques to experimental data.

jdstokes
Messages
520
Reaction score
1
Hi,

I've collected some data on the relative permeability of ferrite at various temperatures, subject to a constant external magnetic field and I'd like to fit a curve to the data.

I believe that stat-mech theory predicts that \mu_r = 1 + a\tanh(b/T) where T is thermodynamic temperature. The constant a is clearly \max \mu_r -1, but I can't figure out what condition I should use to estimate b?

Any help would be greatly appreciated.

James
 
Physics news on Phys.org
I'm no statician, but I've come across this type of problem before. I'll tell you how I dealt with it and you can decide if its reasonable (which I think it is).

You want to choose b in a way that minimizes the "error". If you have N measurements of mu as \mu_1, \mu_2, ... \mu_nat temperatures T_1, T_2, ... T_N then you can define an error by:
E=\sum_{i=1}^{N}(\mu_i-\mu(T_i,b))^2
Where:
\mu(T,b)=1 + a\tanh(b/T)
You want to find the value of b that minimizes the error so you come out with:
\frac{\partial E}{\partial b}=0=2\sum_{i=1}^{N}(\mu_i-(1 + a\tanh(b/T_i)))(\frac{a}{T_i}sech^2{\frac{b}{T_i}})
Now this equation should not be too difficult to solve numerically as long as the number of measurements is not gigantic. You could use goal seek in excel. One thing to whatch out for, though: hopefully the solution is unique. If it is not you have to find the minimum amoung all the solutions. Excel will not tell you if there are other solutions. Maybe you can show mathematically the solution is unique, I haven't thought too much about that.

Also, be warned: I didn't read about this in a book, I just had a similar problem and this method made sense to me. Use it at your own discretion.
 
Last edited:
I think this is a good idea, numerical solutions to such things can be found easily using Mathematica.

Thanks

James
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K