24小时热门版块排行榜    

查看: 7580  |  回复: 1

yu点儿

金虫 (正式写手)

[求助] matlab 中 Gompertz 函数拟合

一、目的
      想用Gompertz function 拟合 (y)与人均GDP (x).

二、问题
       利用工具箱cure fitting tool ,得到结果散点图;
       fitting 中选了自建方程,输入Gompertz函数;
       结果拟合的曲线是条直线?!

三、请教

       1、如何得到正确结果?公式是y=a*exp[-b*exp(-c*x)],不知在 fitting中输入y=a*exp(-b*exp(-c*x)),是否正确?
还是参数设置的估计起点值、区间有问题?
       2、菜鸟刚接触MATLAB,查了不下20本书,都没有这个,烦请各位帮助,非常感谢!!


General model:
       f(x) = a*exp(-b*exp(-c*x))
Coefficients (with 95% confidence bounds):
       a =     107 (68.64, 145.4)
       b =           0.7524
       c =      0.7949
Goodness of fit:
  SSE: 0.0005893
  R-square: 0
  Adjusted R-square: -0.05128 (为什么是负值?参数区间怎么设定呢?)
  RMSE: 122.9
y        x
1.67        1487
1.97        1542
2.58        1684
3.4        1880
3.96        1994
4.3        2113
4.38        2163
4.87        2376
5.13        2497
5.5        2595
6.11        2824
7.56        3058
10.4        3292
13.17        3463
13.84        3358
14.77        3510
16.45        3709
19.68        4049
23.47        4323
27.29        4572
31.79        5011
38.76        5515
48.49        6044
62.77        6390
79.19        6895
98.17        7474
119.8        7841
142.41        8248
166.57        8872
187.81        9548
209.84        10119
226.61        10491
226.19        9702
239.48        10547
256.54        11347
272.7        11711
292.92        12478
304.79        12764
310.87        13304
319.85        13802
329.11        14469
339.03        15158


1.散点图.JPG
散点图
2.create custom eqution.JPG
create custom eqution
3.Gompertz 拟合结果
Gompertz 拟合结果

matlab 中 Gompertz 函数拟合
1.散点图.JPG


matlab 中 Gompertz 函数拟合-1
2.create custom eqution.JPG


matlab 中 Gompertz 函数拟合-2
3.Gompertz 拟合结果.JPG


matlab 中 Gompertz 函数拟合-3
Gompertz 函数 图形.JPG


matlab 中 Gompertz 函数拟合-4
Gompertz 函数.JPG
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tu_too_too

金虫 (正式写手)

请问您解决了吗
努力才有未来
2楼2019-06-27 08:18:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 yu点儿 的主题更新
信息提示
请填处理意见