How do log likelihoods function in practice? I seem to oscillate between understanding this and not understanding this (which most likely means I've never understood it).
When you take log( P( X | Y ) ), where P ( X | Y ) is a probability on the interval [0,1], why is it that you don't end up with log(0) calculations? I'm particularly concerned with numerical calculations.
In numerical practice is 0 just replaced with something very small, like 1e-20? (NOTE: @whuber's comment below answers this part)
EDIT 8/3: Here's my specific case:
I am taking a likelihood P(X = 1 | R = r), where X represents boolean pixel values {0,1}, and R represents locations in an image. I build a model based on training data where I look at every location and determine the frequency with which location r takes the value 1. The result is a density estimation in which there are plenty of locations with probability 0.
How can I then take this log-likelihood without certain locations being assigned -Infinity? The next step for me is to add this to another log-likelihood calculated over the image. Adding -Infinity to another likelihood screws everything up.