I want to fit this function
$$ \operatorname{PF}\left(\sigma_{f_{0}}\right)=1-\exp \left[-\left(\frac{\sigma_{f_{0}}-\sigma_{\min _{0}}}{\lambda}\right)^{k}\right] $$
I already have some points
pt = {
{73.0, 0.17}, {75.0, 0.33}, {77.0, 0.5}, {79.0, 0.67}, {82.0,
0.83}, {83.0, 1}
};
so I use FindFit
function to do this,this is my code
Clear["Global`*"]
(* 数据点 *)
pt = {
{73.0, 0.17}, {75.0, 0.33}, {77.0, 0.5}, {79.0, 0.67}, {82.0,
0.83}, {83.0, 1}
};
(*点图*)
listPltpt = ListPlot[pt]
(* 基函数 *)
pf[x_] := 1 - Exp[-((x - deltaMin0)/(lambda))^k];
(* 求拟合 *)
ptFit = FindFit[pt, pf@x, {deltaMin0, lambda, k}, x]
(*拟合函数绘图 *)
Show[listPltpt,
Plot[pf@x /. ptFit, {x, 60, 100}]]
I gave the correct coefficient from the article, and I did the simulation, which is perfect, why can't I figure it out
funC2[del_] := 1 - Exp[-((del - 3.1)/(76.1))^19.8];
pltfunC2 = Plot[funC2@x, {x, 60, 100}];
Show[listPltpt,
pltfunC2
]
=================upgrage========================
=================upgrade========================
by NonlinearModelFit
also could not work
The problem was inspired by this excerpt from a paper:
Since we know that it is a Weibull CDF, then we can just perform a distribution fit:
EstimatedDistribution[
{73.`, 75.`, 77.`, 79.`, 82.`, 83.`},
WeibullDistribution[α, β, 3.1],
WeibullDistribution[19., 76., 3.1]
]
CDF[%][x]
NonlinearModelFit
? $\endgroup$NonlinearModelFit
(2) Update the plot to include the results. Did it improve or did it get worse? (3) Take a look at this post. $\endgroup$