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).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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