Posts Tagged ‘ Numerical Analysis ’

Simulate data from the beta-binomial distribution in SAS

November 20, 2017
By
Simulate data from the beta-binomial distribution in SAS

This article shows how to simulate beta-binomial data in SAS and how to compute the density function (PDF). The beta-binomial distribution is a discrete compound distribution. The "binomial" part of the name means that the discrete random variable X follows a binomial distribution with parameters N (number of trials) and

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Simulate data from the beta-binomial distribution in SAS

Symbolic derivatives in SAS

September 11, 2017
By

Did you know that you can get SAS to compute symbolic (analytical) derivatives of simple functions, including applying the product rule, quotient rule, and chain rule? SAS can form the symbolic derivatives of single-variable functions and partial derivatives of multivariable functions. Furthermore, the derivatives are output in a form that

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Symbolic derivatives in SAS

The singular value decomposition: A fundamental technique in multivariate data analysis

August 28, 2017
By

The singular value decomposition (SVD) could be called the "billion-dollar algorithm" since it provides the mathematical basis for many modern algorithms in data science, including text mining, recommender systems (think Netflix and Amazon), image processing, and classification problems. Although the SVD was mathematically discovered in the late 1800s, computers have

The post Read more »

Tags: ,
Posted in SAS | Comments Off on The singular value decomposition: A fundamental technique in multivariate data analysis

The arithmetic-geometric mean

August 23, 2017
By

All statisticians are familiar with the classical arithmetic mean. Some statisticians are also familiar with the geometric mean. Whereas the arithmetic mean of n numbers is the sum divided by n, the geometric mean of n nonnegative numbers is the n_th root of the product of the numbers. The geometric

The post Read more »

Tags: ,
Posted in SAS | Comments Off on The arithmetic-geometric mean

The curse of non-unique eigenvectors

August 7, 2017
By

A SAS customer asked, "I computed the eigenvectors of a matrix in SAS and in another software package. I got different answers? How do I know which answer is correct?" I've been asked variations of this question dozens of times. The answer is usually "both answers are correct." The mathematical

The post Read more »

Tags: ,
Posted in SAS | Comments Off on The curse of non-unique eigenvectors

Monte Carlo estimates of joint probabilities

March 1, 2017
By

Monte Carlo techniques have many applications, but a primary application is to approximate the probability that some event occurs. The idea is to simulate data from the population and count the proportion of times that the event occurs in the simulated data. For continuous univariate distributions, the probability of an

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Monte Carlo estimates of joint probabilities

Need to log-transform a distribution? There’s a SAS function for that!

November 16, 2016
By

At a conference last week, a presenter showed SAS statements that compute the logarithm of a probability density function (PDF). The log-PDF is a a common computation because it occurs when maximizing the log-likelihood function. The presenter computed the expression in SAS by using an expression that looked like y

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Need to log-transform a distribution? There’s a SAS function for that!

The Lambert W function in SAS

August 31, 2016
By

This article describes how you can evaluate the Lambert W function in SAS/IML software. The Lambert W function is defined implicitly: given a real value x, the function's value w = W(x) is the value of w that satisfies the equation w exp(w) = x. Thus W is the inverse

The post Read more »

Tags: ,
Posted in SAS | Comments Off on The Lambert W function in SAS

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.