I'm using R and would like to calculate the probability of an event happening. I used the ecdf function on daily revenue (month-to-date).
I have a target and a daily number necessary to hit target and I want to calculate based upon historical performance, the probability of hitting target.
Say my g= ecdf(x). Would g(daily target)-g(median performance) give me the probability that I am looking for?