# Nonlinear least squares fit to determine Constants in given Formula

Printable View

• Nov 27th 2011, 08:57 AM
tantile
Nonlinear least squares fit to determine Constants in given Formula
So I have the following two equations:

(1) $F = F_0 (C_t - C_b) + F_b C_b$
(2) $Kx^2 - x(KD +KC_t +1) + KD C_t = 0$

Here x = $C_b$

I have a set of data points that is $(F_i, D_i)$

I know $C_t$ as it is a constant.

My question is how do I use a nonlinear least squares method to get values for $F_0 , F_b ,$ and $K$.

What I've tried so far is solving for x in equation (2) using the quadratic formula and likewise solving for $C_b$ in equation (1). From there, I equated the two resulting equations since x = $C_b$ and then solved for F, so I get some equation that is F = $f(K, C_t, F_0 , F_b)$.

Is this even going in the right direction? I am trying to create a MATLab program that will help in solving for these parameters, as it's something I'm going to have to solve for many data sets $(F_i, D_i)$.

Additionally, does anyone have any recommendations for textbooks I can reference in solving a problem like this as I'm at a bit of a loss in trying to solve this?
• Nov 27th 2011, 11:21 PM
CaptainBlack
Re: Nonlinear least squares fit to determine Constants in given Formula
Quote:

Originally Posted by tantile
So I have the following two equations:

(1) $F = F_0 (C_t - C_b) + F_b C_b$
(2) $Kx^2 - x(KD +KC_t +1) + KD C_t$

Here x = $C_b$

I have a set of data points that is $(F_i, D_i)$

I know $C_t$ as it is a constant.

My question is how do I use a nonlinear least squares method to get values for $F_0 , F_b ,$ and $K$.

What I've tried so far is solving for x in equation (2) using the quadratic formula and likewise solving for $C_b$ in equation (1). From there, I equated the two resulting equations since x = $C_b$ and then solved for F, so I get some equation that is F = $f(K, C_t, F_0 , F_b)$.

Is this even going in the right direction? I am trying to create a MATLab program that will help in solving for these parameters, as it's something I'm going to have to solve for many data sets $(F_i, D_i)$.

Additionally, does anyone have any recommendations for textbooks I can reference in solving a problem like this as I'm at a bit of a loss in trying to solve this?

Please correct/complete (2) as it is it is just an expression.

CB
• Nov 28th 2011, 12:46 AM
tantile
Re: Nonlinear least squares fit to determine Constants in given Formula
Quote:

Originally Posted by CaptainBlack
Please correct/complete (2) as it is it is just an expression.

CB

Sorry about that! Fixed, it should be equal to 0
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 22, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/advanced-statistics/192802-nonlinear-least-squares-fit-determine-constants-given-formula-print.html", "fetch_time": 1519022947000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-09/segments/1518891812405.3/warc/CC-MAIN-20180219052241-20180219072241-00372.warc.gz", "warc_record_offset": 215908687, "warc_record_length": 3337, "token_count": 740, "char_count": 2615, "score": 3.703125, "int_score": 4, "crawl": "CC-MAIN-2018-09", "snapshot_type": "longest", "language": "en", "language_score": 0.9530554413795471, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00032-of-00064.parquet"}