Hello PF,(adsbygoogle = window.adsbygoogle || []).push({});

Ok so here is my problem. I have an array of data points which are the chi^2 values for a fit I have performed. I wish to calculate the 1-sigma error for this fit, so I figure I could find the lowest chi^2 value, and the two points either side that value, and fit a quadratic function to this. Then 'fill' this such that deltachi^2=1 and calculate the deviations either side. But this is somewhat irrelevant for now...

I have a complete mental block, and I'm really struggling to figure out how to fit a quadratic to these 3 data points. I'm editing a fortran-77 program to do this (which i'm not that familiar with) so would like to keep it as simple as possible. If my function is F(x)= a*x**2 + b*x + c, I already have c constrained to be my minimum value, however, I can't seem to figure out how to get these other co-efficients. I know there are methods such as Cramer's rule, however this would require significant changes to the program, which I would like to avoid. Can anyone think of an easier way to implement this?

Many thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Problem with fitting simple quadratic function to 3 data points

Loading...

Similar Threads - Problem fitting simple | Date |
---|---|

A Maximization problem using Euler Lagrange | Feb 2, 2018 |

A Maximization Problem | Jan 31, 2018 |

I A question about Vector Analysis problems | Oct 4, 2017 |

I Finding value of parameters to fit some data | Sep 11, 2017 |

B Square root differential problem | Jul 13, 2017 |

**Physics Forums - The Fusion of Science and Community**