【发布时间】:2020-09-04 17:59:26
【问题描述】:
我有 5 个数组(熊猫数据框的列) 我想计算分布的线性组合到指数分布的最佳拟合。 例如:
a*(d1)+b*(d2)+c*(d3)+d*(d4)+e*(d5)=Y
其中 Y 具有指数分布(我知道),a,b,c,d,e 是要拟合的系数。
我尝试使用 curve_fit 或 lmfit python 库,但不知道如何有效地做到这一点。
【问题讨论】:
标签: python pandas statistics distribution curve-fitting