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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1072 views
  • 0 likes
  • 2 in conversation