how can calculate linear regression coefficent with neural network and other way?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
zohreh saba
le 3 Oct 2015
Réponse apportée : Star Strider
le 3 Oct 2015
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.
0 commentaires
Réponse acceptée
Star Strider
le 3 Oct 2015
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Linear Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!