How do I log normalise a set of positively skewed data and find the z scores?

5 vues (au cours des 30 derniers jours)
nehohmee
nehohmee le 11 Mai 2020
Commenté : Image Analyst le 11 Mai 2020
Hi there,
I have a set of positively skewed data (A) that I wish to log normalise before I find the z scores of the data. However, after applying log to my data, the z scores returned with NaN for all indexes.
log_A = log(A);
zscore_A = zscore(log_A);
After taking the log of the data:
After using the z score function:
Am I doing something wrong?
I really appreciate your help! Thank you in advance!
  2 commentaires
Jeff Miller
Jeff Miller le 11 Mai 2020
What are the values in A for which log(A) is -inf?
Image Analyst
Image Analyst le 11 Mai 2020
Please attach A in a .mat file.
save('answers.mat', 'A');
Use the paper clip icon to attach the mat file.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by