Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have data that ranges continuously from $-1$ to $+1$, with lots of zeros in the middle. I want to transform the data to a normal distribution. How would I do this? My normal approach with data containing zeros is to $+1$ then transform ($\log_{10}(\bullet)$, $\sqrt{\bullet}$, etc). However, if I add $1$ to my data, the values that were $-1$ become zero and the transformation produce infinite values.

Is it valid to add a number greater than $1$?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can certainly add any number you want to the data. That will shift it horizontally, but it will not make the distribution any different except for changing the center point. In particular, it will be no closer to a normal distribution. Recall the normal distribution is defined with a pdf of $\frac 1{2\pi \sigma}\exp(\frac {(x-\mu)^2}{2\sigma^2})$. Adding a constant to all your data just adds the same constant to $\mu$. Your later transform can also be adapted to deal with zeros-instead of taking the log(data), you can take log(data+10), which has the same effect as adding 10 and then taking the log.

share|improve this answer
    
Thanks Ross - I would upvote, but I don't have the privileges yet! –  gisol Jul 18 '12 at 13:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.