how can calculate linear regression coefficent with neural network and other way?

2 ビュー (過去 30 日間)
I am analysing data with 9inputs and one output. I want neural network to predict the mathematical model or a regression equation. For instance I have 9 inputs as x1, x2, x3, x4, x5, x6,x7,x8,x9 and one output y. Now I want that network provide me an equation in the form.
y= a1*x1 + a2*x2+ a3*x3 + a4*x4 + a5*x5+ a6*x6+a7*x7+a8*x8+a9*x9+a0
How I can get the coefficient in above equation? I have 8 state for above equation
for example
2.78 =3.6000a1+a299.0000 +a3 93.0000 +a4 97.0000 +a5 87.0000+a6 23.7319+a7 24.5026+a8 31.6361+a9 0.8939
;
;
;
I have 7 above equation.
Regards and thanks in advance.

採用された回答

Star Strider
Star Strider 2015 年 10 月 3 日
You don’t need a neural net to solve that problem. You can do it in core MATLAB:
a = [x1(:) x2(:) ... x9(:) ones(length(x))]\y(:);
The coefficients will be in the ‘a’ vector.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by