I know function form:
and have some measured data:
[x, y]
[1, 13.5]
[2, 13.25]
[3, 13.167]
[4, 12.125]
[5, 13.1]
[6, 13.083]
Now I have to find a
and b
. Brute-force way is obviously not very elegant :-). I found that it is possible to do this type of calculation with regression analysis, but I am not sure, because real measured data are really measured so there could be some errors (I posted simplified version, where a = 2
and b = 13
and I rounded values so not all of them are accurate). I found article about measurement error models, but I am a bit confused from it.
Can someone please point me to the right direction? Maybe show me some relevant C# code, or at least the right list of steps, what I should do?
I tried semi-brute-force way - solving six equations with two variables and then select the best combination (least distance from all measured values) from given intervals.