关于matlab,想让大家帮忙拟合数据a,b
帮忙拟合出以下公式中的a,b值用matlab软件或者其它能拟合出数值的方法都行!X(1)=89.07X(2)=112.12X(3)=125.32只要拟合出a,b的值就好!...
帮忙拟合出以下公式中的a,b值用matlab软件或者其它能拟合出数值的方法都行!
X(1)=89.07 X(2)=112.12 X(3)=125.32 只要拟合出a,b的值就好!当然要是顺道能帮我生成函数的坐标图以及数据的撒点图我会另外加20—30分! 展开
X(1)=89.07 X(2)=112.12 X(3)=125.32 只要拟合出a,b的值就好!当然要是顺道能帮我生成函数的坐标图以及数据的撒点图我会另外加20—30分! 展开
展开全部
郭敦顒回答:
x0=1/3×Σx=108.84 ,t0=0
先设a=1,
X(t0)=108.84/[108.84b+(1-108.84b)e^0]=108.84,
设b=0.01,则
x(2)=112.12/[112.12b+(1-112.12b)/e²]
=112.12/[1.1212+0.1212/7.389]
=112.12/1.1376=98.56
X(1)= 89.07/[89.07b+(1-89.07b)e^-1]
=89.07/[0.8907+(1-0.89.07)/2.718]=103。08
=89.07/0.9309=95.68
X(3)= 125.32/[125.32b+(1-125.32b)e^-3]
=125.32/[1.2532b+(1-1.2532b)/20.086]
=125.32/1.2658=99.00
调整b, [112.12b+(1-112.12b)/e²]=1
112.12b+(1-112.12b)/7.389]=1
7.389×112.12b+(1-112.12b)=7.389
6.389×112.12b=6.389
112.12b=1
b=0.00892
X(1)= 89.07/[89.07b+(1-89.07b)e^-1]
=89.07/[0.7945+(1-0.7945)/2.718]
=89.07/0.8701=102.36
误差:102.36-89.07=13.29
相对误差:13.29/89.07×100%=14.92%
x(2)=112.12/[112.12b+(1-112.12b)/e²]
=112.12/[1.0001+0.0001/7.389]=112.12
误差:112.12-112.12=0
X(3)= 125.32/[125.32b+(1-125.32b)e^-3]
=125.32/[1.11785+(1-1.11785)/20.086]
=125.32/1.12372=111.52
误差: 111.52-125.32=-13.8
相对误差:13.18/125.32×100%=11.01%
确定t0=0时,此题无法拟合得更好了;如果t0≠0,或可拟合得更好些。
x0=1/3×Σx=108.84 ,t0=0
先设a=1,
X(t0)=108.84/[108.84b+(1-108.84b)e^0]=108.84,
设b=0.01,则
x(2)=112.12/[112.12b+(1-112.12b)/e²]
=112.12/[1.1212+0.1212/7.389]
=112.12/1.1376=98.56
X(1)= 89.07/[89.07b+(1-89.07b)e^-1]
=89.07/[0.8907+(1-0.89.07)/2.718]=103。08
=89.07/0.9309=95.68
X(3)= 125.32/[125.32b+(1-125.32b)e^-3]
=125.32/[1.2532b+(1-1.2532b)/20.086]
=125.32/1.2658=99.00
调整b, [112.12b+(1-112.12b)/e²]=1
112.12b+(1-112.12b)/7.389]=1
7.389×112.12b+(1-112.12b)=7.389
6.389×112.12b=6.389
112.12b=1
b=0.00892
X(1)= 89.07/[89.07b+(1-89.07b)e^-1]
=89.07/[0.7945+(1-0.7945)/2.718]
=89.07/0.8701=102.36
误差:102.36-89.07=13.29
相对误差:13.29/89.07×100%=14.92%
x(2)=112.12/[112.12b+(1-112.12b)/e²]
=112.12/[1.0001+0.0001/7.389]=112.12
误差:112.12-112.12=0
X(3)= 125.32/[125.32b+(1-125.32b)e^-3]
=125.32/[1.11785+(1-1.11785)/20.086]
=125.32/1.12372=111.52
误差: 111.52-125.32=-13.8
相对误差:13.18/125.32×100%=11.01%
确定t0=0时,此题无法拟合得更好了;如果t0≠0,或可拟合得更好些。
追问
然后呢?
a,b值各是多少呢?
t0可以≠0 的,可以是1
你拟合出来a=1,b=0.00892么?
追答
没找到更好的拟合结果.
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我来做下任务
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询