inverse function of zscore?

24 visualizaciones (últimos 30 días)
pietro
pietro el 7 de Jun. de 2014
Comentada: pietro el 7 de Jun. de 2014
Hi all,
is there any inverse function of zscore?

Respuesta aceptada

li haitao
li haitao el 7 de Jun. de 2014
Editada: li haitao el 7 de Jun. de 2014
Give you an exmaple:
>> load('lawdata.mat')
>> [Z,gpamean,gpastdev] = zscore(gpa);
>> gpa2=Z*gpastdev+gpamean;
>> gpa2-gpa
ans =
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
So gpa2 is the same with gpa.
  1 comentario
pietro
pietro el 7 de Jun. de 2014
Thanks to all, I supposed there was an embedded function I wanted to use to improve the code readability.

Iniciar sesión para comentar.

Más respuestas (1)

Star Strider
Star Strider el 7 de Jun. de 2014
To get x from Z knowing the mean (mu) and standard deviation (s):
x = Z*s + mu

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by