简体   繁体   English

Microsoft excel中的LINEST函数; 曲线拟合三二次方程

[英]LINEST function in Microsoft excel; curve fitting tri-quadratic equation

Im trying to curve fit the first graph in the set of four using LINEST. 我试图使用LINEST曲线拟合四个一组中的第一个图形。 This curve needs to be a graph of 3, possible 4, variables: Suction Pressure (SP), OD Temp, ID WB Temp, and possible ID DB Temp (other graphs didnt need the DB to work, may not be needed here). 该曲线必须是3(可能为4)变量的图形:吸气压力(SP),OD温度,ID WB温度和可能的ID DB温度(其他图形不需要DB即可工作,此处可能不需要)。 Isnt a simple LINEST, but a tri- or quad-quadratic LINEST. 不是简单的LINEST,而是三二次或四二次LINEST。

Attempted: 2nd, 3rd degree LINEST fits using corresponding x,y values from first graph. 尝试:使用第一个图的相应x,y值拟合第二,第三度LINEST。

How do i do this? 我该怎么做呢?

在此处输入图片说明

Ok if you have the data in table format you can use the following formula 好吧,如果您具有表格格式的数据,则可以使用以下公式

=LINEST(knownys, knownxs^{1, 2, 3})

When you enter it select 4 cells across, put in the formula and enter with ctrl+shift+enter . 输入时,选择4个单元格,输入公式,然后输入ctrl + shift + enter The values it returns would be A1,A2,A3, and b going left to right if the formula has the following equation: y=A1*x^3+A2*x^2+A3*x+B. 如果公式具有以下公式,则返回的值将是A1,A2,A3和b从左到右:y = A1 * x ^ 3 + A2 * x ^ 2 + A3 * x + B。

Another option is to fit curves using the chart trendline and you can get the exponents from there. 另一个选择是使用图表趋势线拟合曲线,您可以从那里获得指数。

Source 资源

Edit 编辑

Based on your edits I would suggest you find a better statistical software then excel but one option would be to use solver. 根据您的编辑,我建议您找到一个比excel更好的统计软件,但一种选择是使用求解器。 You would set up a bunch of cells with the constants you wanted a1,a2,b1,b2 etc. 您将使用所需的常量a1,a2,b1,b2等设置一堆单元格。

Then you would have your columns with your independent variables (OD temp, ID WB Temp, etc) a column with your known ys, a column with your calculated ys and an error column (known y - calcy)^2 you would sum up the error column and run solver to minimize the sum of the error. 然后,您将获得包含自变量(OD温度,ID WB温度等)的列,具有已知ys的列,具有计算出的ys的列以及一个错误列(已知y-calcy)^ 2的总和。错误列并运行求解器以最小化错误总和。

calc y would be something like =a1*ODtemp^2+a2*ODtemp+b1*WBtemp^2+b2*WBtemp+C or whatever form your formula needs to fit. calc y类似于=a1*ODtemp^2+a2*ODtemp+b1*WBtemp^2+b2*WBtemp+C或您的公式需要满足的任何形式。

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

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