Power module of function

5 次查看(过去 30 天)
Jad Ghader
Jad Ghader 2021-4-25
Write a MATLAB code to best fit a power model of an equation:
𝑦=𝑎𝑥^𝑏 to the following statistical data.
a) Draw on one figure both the given statistical data and the best fitted curve that you were able to find, use corresponding commands to make your drawing clear.
b) print out the equation of the function after finding parameters
a & b.
c) Find the standard deviation, standard error of estimate and the
correlation coefficient, then print them out.
d) If the Standard error of estimate was smaller than standard
deviation print out: “The linear Regression has a merit and extent of
improvement quantified by [corresponding value of coefficient of
determination(r^2)], otherwise "The Linear Regression fails to find a
fit".
  1 个评论
Tayyab Khalil
Tayyab Khalil 2021-4-25
Seems like a HW question. You should start and if any errors or problems occur, then post your code and we will be happy to help.
Hint: Look up linearization of non-linear functions for linear functions and you will find the linearized model for given equation which you can use to simply find the values of a and b.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by