how to calculate Correlation coefficient 'R' value smae as displayed in my regression plot using Neural networks?

 Respuesta aceptada

Read about functions regression and corr2
th = linspace(0,2*pi) ;
x1 = sin(th) ;
x2 = sin(th)+rand(size(th)) ;
plotregression(x1,x2)
% Method 1
regression(x1,x2)
% MEthod 2
corr2(x1,x2)

5 comentarios

thank you so much for your quick response but this code shows 'R' value R=0.9367,but in graph it is different .
Ha ha..they are same ...the accuracy is different...if you round you will get the same.
this is only for validation . how could i calculate for testing training and all?
Use the same function with your inputs....simple.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Descriptive Statistics and Insights en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Ag. de 2018

Comentada:

el 28 de Ag. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by