How can I get higher rsqured of Multivariate Polynomial Regression?

조회 수: 3 (최근 30일)
Rita
Rita 2016년 2월 24일
편집: Rita 2016년 2월 24일
Hi I used this function with my data and R-squared is 0.19 which is really low.How can I get higher R-squared. Should I use optimization ?
  댓글 수: 2
Greg Heath
Greg Heath 2016년 2월 24일
What is "this function" ?
Rita
Rita 2016년 2월 24일
편집: Rita 2016년 2월 24일
Multivariate Polynomial Regression
http://www.mathworks.com/matlabcentral/fileexchange/34918-multivariate-polynomial-regression

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2016년 2월 24일
Congratulations! You win the award for being the 10 million'th person to WANT a better fit than they got. Sadly, just wanting something is not sufficient. If it was, then the Cubs would have won a World Series long ago. If it was, then every person who ever bought a lottery ticket would have won the first prize. If it was, then we would have achieved peace in the mid-east long ago.
There is no magic to be found. Anyway, you can think of the regression estimate as the result of an optimization ALREADY. A further optimization won't help, because what you got is already the best you can get.
To get better results, you must get better data, with lower variability. You choose a better, more intelligent model, that better represents the data you do have.
  댓글 수: 2
Rita
Rita 2016년 2월 24일
Thanks John,I got higher R squared=0.76 with your function "polyfitn" but I got an error in estimation of polyvaln.
John D'Errico
John D'Errico 2016년 2월 24일
That you got a higher R^2 probably means you chose a different model. It may not have been a good choice of model. You may be overfitting the data.
I don't know what error you got. polyvaln does no estimation, so I can't guess what you mean.
If you want, feel free to attach your data so I can take a look at it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by