BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am familiar with PDF function that gives a predictive value when a distribution and random variable are specified.

pdf('normal', random variable)

My understanding is that this function will give the probability of the outcome of a discrete random variable for each observation.

Is there an analogous function for the density of a continuous variable? Using a continuous variable with this function gives zero probabilities since there are an infinite number of outcomes.
2 REPLIES 2
deleted_user
Not applicable
The other function is called CDF. Maybe that's what you meant.
statsplank
Calcite | Level 5
By definition, for continuous variables probabilities are always associated with intervals. This means that Pr(X=a)=0 for a continuous variable X with probability density f(x), and any real constant a.

You can use a cumulative density function F(x) to calculate the probability for an interval [a, b]: Pr(a<=X<=b)=F(b)-F(a).

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1659 views
  • 0 likes
  • 2 in conversation