Location-scale Family - Converting A Single Distribution To A Location-scale Family

Converting A Single Distribution To A Location-scale Family

The following shows how to implement a location-scale family in a statistical package or programming environment where only functions for the "standard" version of a distribution are available. It is designed for R but should generalize to any language and library.

The example here is of the Student's t-distribution, which is normally provided in R only in its standard form, with a single degrees of freedom parameter df. The versions below with _ls appended show how to generalize this to encompass an arbitrary location parameter mu and scale parameter sigma.

Probability density function (PDF): dt_ls(x, df, mu, sigma) = 1/sigma * dt((x - mu)/sigma, df)
Cumulative distribution function (CDF): pt_ls(x, df, mu, sigma) = pt((x - mu)/sigma, df)
Quantile function (inverse CDF): qt_ls(prob, df, mu, sigma) = qt(prob, df)*sigma + mu
Generate a random variate: rt_ls(df, mu, sigma) = rt(df)*sigma + mu

Note that the generalized functions do not have standard deviation sigma since the standard t distribution does not have standard deviation 1.

Read more about this topic:  Location-scale Family

Famous quotes containing the words converting a, converting, single, distribution and/or family:

    Sigh no more, ladies, sigh no more,
    Men were deceivers ever,
    One foot in sea and one on shore,
    To one thing constant never:
    Then sigh not so, but let them go,
    And be you blithe and bonny,
    Converting all your sounds of woe
    Into Hey nonny, nonny.
    William Shakespeare (1564–1616)

    A way of certifying experience, taking photographs is also a way of refusing it—by limiting experience to a search for the photogenic, by converting experience into an image, a souvenir. Travel becomes a strategy for accumulating photographs.
    Susan Sontag (b. 1933)

    the whole field is a
    white desire, empty, a single stem;
    a cluster, flower by flower,
    a pious wish to whiteness gone over—
    or nothing.
    William Carlos Williams (1883–1963)

    In this distribution of functions, the scholar is the delegated intellect. In the right state, he is, Man Thinking. In the degenerate state, when the victim of society, he tends to become a mere thinker, or, still worse, the parrot of other men’s thinking.
    Ralph Waldo Emerson (1803–1882)

    ... the school should be an appendage of the family state, and modeled on its primary principle, which is, to train the ignorant and weak by self-sacrificing labor and love; and to bestow the most on the weakest, the most undeveloped, and the most sinful.
    Catherine E. Beecher (1800–1878)