Extreme Optimization > User's Guide > Statistics Library > Continuous Probability Distributions > The Cauchy Distribution

Extreme Optimization User's Guide

User's Guide

Up: Continuous Probability Distributions Next: The Chi-Square Distribution Previous: The Beta Distribution Contents

The Cauchy Distribution

The Cauchy distribution can be used to model the distribution of horizontal distances at which a line segment tilted at a random angle cuts a line.

The Cauchy distribution has one scale parameter. The probability density function is:

The Cauchy distribution looks similar to a normal distribution, but has a much heavier tail. It can be used to study hypothesis tests that assume a normal distribution. How well the tests perform on data from a Cauchy distribution gives a good indication of the sensitivity of the test to heavy-tail departures from normality.

The mean and standard deviation of the Cauchy distribution are undefined. This means that no amount of data points will yield a more accurate or reliable estimate of the mean and standard deviation than does a single point.

The Cauchy distribution is sometimes called the Lorentzian distribution.

The Cauchy distribution is implemented by the CauchyDistribution class. It has one constructor which takes the scale parameter as its only parameter. The following constructs a beta distribution with scale parameter 3.2:

C# CopyCode imageCopy Code
CauchyDistribution cauchy = new CauchyDistribution(3.2);
Visual Basic CopyCode imageCopy Code
Dim cauchy As ChiSquareDistribution = New (3.2)

The CauchyDistribution class has one specific property, ScaleParameter, that returns the scale parameter of the distribution.

CauchyDistribution has one static (Shared in Visual Basic) method, GetRandomVariate, which generates a random variate using a user-supplied uniform random number generator.

C# CopyCode imageCopy Code
MersenneTwister random = new MersenneTwister();
double variate = CauchyDistribution.GetRandomVariate(random, 3.2);
Visual Basic CopyCode imageCopy Code
Dim random As MersenneTwister = New MersenneTwister()
Dim variate As Double = CauchyDistribution.GetRandomVariate(random, 3.2)

For details of the properties and methods common to all continuous distribution classes, see the topic on ContinuousDistribution class.

Up: Continuous Probability Distributions Next: The Chi-Square Distribution Previous: The Beta Distribution Contents

Overview
Introduction
Features
Documentation
QuickStart Samples
Sample Applications
Downloads
Get it now!
Download trial version
How to Buy
Information
Resources
Contact Us
Search

"The Extreme Optimization Statistics Library for .NET is a major boon for those doing statistical work in .NET. I strongly recommend this product."
- Marc Brooks

"I have made it my mission to institutionalize the value of good API design.  I strongly believe that this is key to making developers more productive and happy on our platform. It is clear that you value good API design in your work, and take to heart developer productivity and synergy with the .NET framework."
- Brad Abrams,
Lead Program Manager, Microsoft.

This is a partial list of companies who are using our libraries:
ABB Robotics
Allstate
Applied Materials
Arcam
Astra Schedule
Babson College
Canadian Council on Learning
Canyon Associates
Caxton Associates
CECity
Constellation Energy
CreditSights
DeepOcean
Duke University
Dynamotive
Elecsoft
Engelhard Corporation
Epcor
Equipoise Software
Galileo International
GAM UK
Gammex
GlaxoSmithKline
Global Matrix
The Hartford
Infinera Corporation
Intel
JDS Uniphase
LaBranche & Co.
Learning & Skills Council
Jacobs Consultancy
Litman Gregory
Lucas Systems
Malvern Instruments
Medrio
Merck & Co.
Mintera.
Monitor Software
MorningStar
NanoString Technologies
Paletta Invent
Parametric Portfolio Associates
Prosanos
RATA Associates
RiskShield
Ramboll
Standard & Poor's
Strategic Analysis Corporation
Univ. of Alicante
Univ. of South Carolina
vielife
Xerox
US Army