简体   繁体   English

将二次拟合应用于未知数

[英]Applying Quadratic Fit to Unknowns

I'm trying to build a spreadsheet to find a quadratic fit for a set of control data, then apply that fit to a set of unknowns to get a calculated concentration. 我正在尝试构建电子表格,以找到一组控制数据的二次拟合值,然后将该拟合值应用于一组未知数,以获得计算出的浓度。 For my quadratic curve calculation, I have this: 对于我的二次曲线计算,我有:

=LINEST(F28:F33,A28:A33^{1,2},TRUE,TRUE)

An example of relevant control data (where 0-40 would be found in the A column, and the 0.001-0.575 in the F column) is: 相关控制数据的示例(其中A列为0-40,F列为0.001-0.575)是:

0   0.001

2   0.030

5   0.076

10   0.156

20   0.310

40   0.575

This is giving me a curve solution that matches the software currently being used to analyze the data (SoftMax 4.7): 这给了我一个曲线解决方案,可以与当前用于分析数据的软件(SoftMax 4.7)相匹配:

A: -5.1E-05 

B: 0.016 

C: -0.002

Using this formula to apply the curve to data (where E16 represents any individual datapoint I'm solving for and Blank1 is a set of negative controls): 使用此公式将曲线应用于数据(其中E16代表我要求解的任何单个数据点,而Blank1是一组阴性对照):

=(-CurveB+SQRT((CurveB^2)-(4*CurveA*(CurveC-(E16-AVERAGE(Blank1))))))/(2*CurveA)

However, when I apply the curve using the formula to a set of data, eg: 但是,当我使用公式将曲线应用于一组数据时,例如:

0.275      0.269     0.266

0.217      0.193     0.194

0.011      0.013     0.011

0.004      0.006     0.003

I get output: 我得到输出:

17.835     17.426    17.221

13.922     12.333    12.399

0.796      0.919     0.796

0.369      0.491     0.308

Compared to SoftMax's output: 与SoftMax的输出相比:

17.827     17.405    17.215

13.918     12.333    12.393

0.785      0.950     0.797

0.353      0.487     0.298

My problem is, I can't find enough documentation on how SoftMax applies the quadratic fit to the data so I don't know which set of results is more accurate. 我的问题是,我找不到足够的文档来了解SoftMax如何将二次拟合应用于数据,因此我不知道哪一组结果更准确。 I've checked to see if it's a rounding error (ie Softmax is rounding the displayed results but calculating using unrounded figures or possibly the other way around), I've tried throwing the whole mess through Solver, letting Excel change the curve variables and the blank factor (I also tried removing the blank factor and solving, and adding independent blank factors for each column and solving) and solving for a minimum total variance from the Softmax results, but I cannot find a solution that produces the same results as the Softmax software (or even closer than 0.58% or so average variance from the Softmax results). 我检查了一下是否是四舍五入的错误(例如,Softmax正在四舍五入显示的结果,但是使用未四舍五入的数字或可能的其他方法进行了计算),我尝试通过Solver抛出整个混乱,让Excel更改曲线变量并空白因子(我也尝试删除空白因子并求解,并为每列添加独立的空白因子并求解),并从Softmax结果求解最小总方差,但我找不到能产生与结果相同的结果的解决方案Softmax软件(甚至与Softmax结果的平均方差接近0.58%左右)。

Can anybody tell me if this is an error in my calculations (I'm specifically skeptical of my formula to apply the curve to data-is there a more graceful way to apply a quadratic fit to a set of unknowns in Excel?) or is it an error with the calculations produced by the other program, eg solving using approximations or rounded values somewhere? 有人可以告诉我这是否是我的计算中的错误(我特别怀疑我的公式是否将曲线应用于数据,是否有更优美的方法将二次拟合应用于Excel中的一组未知数?)还是?其他程序产生的计算是否有错误,例如在某处使用近似值或舍入值进行求解?

Summary : I think you're seeing rounding errors. 摘要 :我认为您遇到的舍入错误。

Details . 细节 I used your Excel equations and the data provided and reproduced your curve parameters, so that seems OK. 我使用了您的Excel方程式和提供的数据并重现了曲线参数,所以看起来还可以。 I then plugged the SoftMax Pro output (17.827, 17.405, 17.215, 13.918, ...) and your output (17.835, 17.426, 17.221, 13.922, ...) into y=AX^2+BX+C and calculated y-values. 然后,我将SoftMax Pro输出(17.827、17.405、17.215、13.918 ...)和您的输出(17.835、17.426、17.221、13.922 ...)插入y = AX ^ 2 + BX + C并计算出y-价值观。 The pair-wise differences were in the 4th decimal place or smaller --- biggest (abs) difference was ~ -0.0005, so that's consistent with a rounding/truncation of the X-data that's hidden from you. 成对的差异在第4个小数位或更小---最大(绝对)差异为〜-0.0005,因此与对您隐藏的X数据的舍入/截断是一致的。

Final Comment : I suspect you should not subtract blanks. 最后评论 :我怀疑您不应该减去空格。 The standard curve appears to have been created using not-blank-subtracted data (at zero input the output is non-zero) so it seems like you need to treat samples the same way as standards. 标准曲线似乎是使用非空白减去的数据创建的(输入为零时,输出为非零),因此似乎需要以与标准相同的方式处理样品。 It may not make much difference ... 可能并没有太大的不同...

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM