inverse function of zscore?

13 visualizzazioni (ultimi 30 giorni)
pietro
pietro il 7 Giu 2014
Commentato: pietro il 7 Giu 2014
Hi all,
is there any inverse function of zscore?

Risposta accettata

li haitao
li haitao il 7 Giu 2014
Modificato: li haitao il 7 Giu 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 Commento
pietro
pietro il 7 Giu 2014
Thanks to all, I supposed there was an embedded function I wanted to use to improve the code readability.

Accedi per commentare.

Più risposte (1)

Star Strider
Star Strider il 7 Giu 2014
To get x from Z knowing the mean (mu) and standard deviation (s):
x = Z*s + mu

Community Treasure Hunt

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

Start Hunting!

Translated by