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)

    To the query, “What is a friend?” his reply was “A single soul dwelling in two bodies.”
    Aristotle (384–322 B.C.)

    The man who pretends that the distribution of income in this country reflects the distribution of ability or character is an ignoramus. The man who says that it could by any possible political device be made to do so is an unpractical visionary. But the man who says that it ought to do so is something worse than an ignoramous and more disastrous than a visionary: he is, in the profoundest Scriptural sense of the word, a fool.
    George Bernard Shaw (1856–1950)

    I can only sign over everything,
    the house, the dog, the ladders, the jewels,
    the soul, the family tree, the mailbox.
    Then I can sleep.
    Maybe.
    Anne Sexton (1928–1974)