Quantile function

The probit is the quantile function of the normal distribution.

In probability and statistics, the quantile function outputs the value of a random variable such that its probability is less than or equal to an input probability value. Intuitively, the quantile function associates with a range at and below a probability input the likelihood that a random variable is realized in that range for some probability distribution. It is also called the percentile function (after the percentile), percent-point function, inverse cumulative distribution function (after the cumulative distribution function or c.d.f.) or inverse distribution function.

Definition

Strictly monotonic distribution function

With reference to a continuous and strictly monotonic cumulative distribution function of a random variable X, the quantile function maps its input p to a threshold value x so that the probability of X being less or equal than x is p. In terms of the distribution function F, the quantile function Q returns the value x such that

which can be written as inverse of the c.d.f.

The cumulative distribution function (shown as F(x)) gives the p values as a function of the q values. The quantile function does the opposite: it gives the q values as a function of the p values. Note that the portion of F(x) in red is a horizontal line segment.

General distribution function

In the general case of distribution functions that are not strictly monotonic and therefore do not permit an inverse c.d.f., the quantile is a (potentially) set valued functional of a distribution function F, given by the interval[1]

It is often standard to choose the lowest value, which can equivalently be written as (using right-continuity of F)

Here we capture the fact that the quantile function returns the minimum value of x from amongst all those values whose c.d.f value exceeds p, which is equivalent to the previous probability statement in the special case that the distribution is continuous. Note that the infimum function can be replaced by the minimum function, since the distribution function is right-continuous and weakly monotonically increasing.

The quantile is the unique function satisfying the Galois inequalities

if and only if

If the function F is continuous and strictly monotonically increasing, then the inequalities can be replaced by equalities, and we have:

In general, even though the distribution function F may fail to possess a left or right inverse, the quantile function Q behaves as an "almost sure left inverse" for the distribution function, in the sense that

almost surely.

Simple example

For example, the cumulative distribution function of Exponential(λ) (i.e. intensity λ and expected value (mean) 1/λ) is

The quantile function for Exponential(λ) is derived by finding the value of Q for which :

for 0 ≤ p < 1. The quartiles are therefore:

first quartile (p = 1/4)
median (p = 2/4)
third quartile (p = 3/4)

Applications

Quantile functions are used in both statistical applications and Monte Carlo methods.

The quantile function is one way of prescribing a probability distribution, and it is an alternative to the probability density function (pdf) or probability mass function, the cumulative distribution function (cdf) and the characteristic function. The quantile function, Q, of a probability distribution is the inverse of its cumulative distribution function F. The derivative of the quantile function, namely the quantile density function, is yet another way of prescribing a probability distribution. It is the reciprocal of the pdf composed with the quantile function.

Consider a statistical application where a user needs to know key percentage points of a given distribution. For example, they require the median and 25% and 75% quartiles as in the example above or 5%, 95%, 2.5%, 97.5% levels for other applications such as assessing the statistical significance of an observation whose distribution is known; see the quantile entry. Before the popularization of computers, it was not uncommon for books to have appendices with statistical tables sampling the quantile function.[2] Statistical applications of quantile functions are discussed extensively by Gilchrist.[3]

Monte-Carlo simulations employ quantile functions to produce non-uniform random or pseudorandom numbers for use in diverse types of simulation calculations. A sample from a given distribution may be obtained in principle by applying its quantile function to a sample from a uniform distribution. The demands of simulation methods, for example in modern computational finance, are focusing increasing attention on methods based on quantile functions, as they work well with multivariate techniques based on either copula or quasi-Monte-Carlo methods[4] and Monte Carlo methods in finance.

Calculation

The evaluation of quantile functions often involves numerical methods, such as the exponential distribution above, which is one of the few distributions where a closed-form expression can be found (others include the uniform, the Weibull, the Tukey lambda (which includes the logistic) and the log-logistic). When the cdf itself has a closed-form expression, one can always use a numerical root-finding algorithm such as the bisection method to invert the cdf. Other methods rely on an approximation of the inverse via interpolation techniques.[5][6] Further algorithms to evaluate quantile functions are given in the Numerical Recipes series of books. Algorithms for common distributions are built into many statistical software packages. General methods to numerically compute the quantile functions for general classes of distributions can be found in the following libraries:

Quantile functions may also be characterized as solutions of non-linear ordinary and partial differential equations. The ordinary differential equations for the cases of the normal, Student, beta and gamma distributions have been given and solved.[11]

Normal distribution

The normal distribution is perhaps the most important case. Because the normal distribution is a location-scale family, its quantile function for arbitrary parameters can be derived from a simple transformation of the quantile function of the standard normal distribution, known as the probit function. Unfortunately, this function has no closed-form representation using basic algebraic functions; as a result, approximate representations are usually used. Thorough composite rational and polynomial approximations have been given by Wichura[12] and Acklam.[13] Non-composite rational approximations have been developed by Shaw.[14]

Ordinary differential equation for the normal quantile

A non-linear ordinary differential equation for the normal quantile, w(p), may be given. It is

with the centre (initial) conditions

This equation may be solved by several methods, including the classical power series approach. From this solutions of arbitrarily high accuracy may be developed (see Steinbrecher and Shaw, 2008).

Student's t-distribution

This has historically been one of the more intractable cases, as the presence of a parameter, ν, the degrees of freedom, makes the use of rational and other approximations awkward. Simple formulas exist when the ν = 1, 2, 4 and the problem may be reduced to the solution of a polynomial when ν is even. In other cases the quantile functions may be developed as power series.[15] The simple cases are as follows:

ν = 1 (Cauchy distribution)
ν = 2
ν = 4

where

and

In the above the "sign" function is +1 for positive arguments, −1 for negative arguments and zero at zero. It should not be confused with the trigonometric sine function.

Quantile mixtures

Analogously to the mixtures of densities, distributions can be defined as quantile mixtures

,

where , are quantile functions and , are the model parameters. The parameters must be selected so that is a quantile function. Two four-parametric quantile mixtures, the normal-polynomial quantile mixture and the Cauchy-polynomial quantile mixture, are presented by Karvanen.[16]

Non-linear differential equations for quantile functions

The non-linear ordinary differential equation given for normal distribution is a special case of that available for any quantile function whose second derivative exists. In general the equation for a quantile, Q(p), may be given. It is

augmented by suitable boundary conditions, where

and ƒ(x) is the probability density function. The forms of this equation, and its classical analysis by series and asymptotic solutions, for the cases of the normal, Student, gamma and beta distributions has been elucidated by Steinbrecher and Shaw (2008). Such solutions provide accurate benchmarks, and in the case of the Student, suitable series for live Monte Carlo use.

See also

References

  1. ^ Ehm, W.; Gneiting, T.; Jordan, A.; Krüger, F. (2016). "Of quantiles and expectiles: Consistent scoring functions, Choquet representations, and forecast rankings". J. R. Stat. Soc. B. 78 (3): 505–562. arXiv:1503.08195. doi:10.1111/rssb.12154.
  2. ^ "Archived copy" (PDF). Archived from the original (PDF) on March 24, 2012. Retrieved March 25, 2012.{{cite web}}: CS1 maint: archived copy as title (link)
  3. ^ Gilchrist, W. (2000). Statistical Modelling with Quantile Functions. Taylor & Francis. ISBN 1-58488-174-7.
  4. ^ Jaeckel, P. (2002). Monte Carlo methods in finance.
  5. ^ Hörmann, Wolfgang; Leydold, Josef (2003). "Continuous random variate generation by fast numerical inversion". ACM Transactions on Modeling and Computer Simulation. 13 (4): 347–362. doi:10.1145/945511.945517. Retrieved 17 June 2024 – via WU Vienna.
  6. ^ Derflinger, Gerhard; Hörmann, Wolfgang; Leydold, Josef (2010). "Random variate generation by numerical inversion when only the density is known". ACM Transactions on Modeling and Computer Simulation. 20 (4): 1–25. doi:10.1145/1842722.1842723. Art. No. 18.
  7. ^ "UNU.RAN - Universal Non-Uniform RANdom number generators".
  8. ^ "Runuran: R Interface to the 'UNU.RAN' Random Variate Generators". 17 January 2023.
  9. ^ "Random Number Generators (Scipy.stats.sampling) — SciPy v1.13.0 Manual".
  10. ^ Baumgarten, Christoph; Patel, Tirth (2022). "Automatic random variate generation in Python". Proceedings of the 21st Python in Science Conference. pp. 46–51. doi:10.25080/majora-212e5952-007.
  11. ^ Steinbrecher, G.; Shaw, W.T. (2008). "Quantile mechanics". European Journal of Applied Mathematics. 19 (2): 87–112. doi:10.1017/S0956792508007341. S2CID 6899308.
  12. ^ Wichura, M.J. (1988). "Algorithm AS241: The Percentage Points of the Normal Distribution". Applied Statistics. 37 (3). Blackwell Publishing: 477–484. doi:10.2307/2347330. JSTOR 2347330.
  13. ^ An algorithm for computing the inverse normal cumulative distribution function Archived May 5, 2007, at the Wayback Machine
  14. ^ Computational Finance: Differential Equations for Monte Carlo Recycling
  15. ^ Shaw, W.T. (2006). "Sampling Student's T distribution – Use of the inverse cumulative distribution function". Journal of Computational Finance. 9 (4): 37–73. doi:10.21314/JCF.2006.150.
  16. ^ Karvanen, J. (2006). "Estimation of quantile mixtures via L-moments and trimmed L-moments". Computational Statistics & Data Analysis. 51 (2): 947–956. doi:10.1016/j.csda.2005.09.014.

Further reading

Read other articles:

豪栄道 豪太郎 場所入りする豪栄道基礎情報四股名 澤井 豪太郎→豪栄道 豪太郎本名 澤井 豪太郎愛称 ゴウタロウ、豪ちゃん、GAD[1][2]生年月日 (1986-04-06) 1986年4月6日(38歳)出身 大阪府寝屋川市身長 183cm体重 160kgBMI 47.26所属部屋 境川部屋得意技 右四つ・出し投げ・切り返し・外掛け・首投げ・右下手投げ成績現在の番付 引退最高位 東大関生涯戦歴 696勝493敗66…

Korea Railroad Corporation (Korail)JenisBadan usaha milik negaraIndustriTransportasi relDidirikan1 September 1963 (sebagai Korean National Railroad)1 Januari 2005 (sebagai Korail)KantorpusatSoje-dong, Dong-gu, Daejeon, Korea SelatanPendapatan₩4,4 triliun (2020)Laba operasi ₩103.400.000.000 (2015)Laba bersih ₩380.759.519 (2010)Karyawan30.449 (2020)IndukPemerintah Korea Selatan (100%)Situs webinfo.korail.comletskorail.comKorea Railroad Corporation (Hangeul: 한국철도공사, Hanguk Cheoldo…

Battle of the American Revolutionary War Battle of Fort WashingtonPart of the American Revolutionary WarA view of the attack against Fort Washington, a portrait by Thomas DaviesDateNovember 16, 1776 (1776-11-16)LocationWashington Heights, New York40°51′10″N 73°56′17″W / 40.85278°N 73.93806°W / 40.85278; -73.93806Result British victory[2]Belligerents  Great Britain Hesse-Kassel Waldeck and Pyrmont[1] United StatesCommanders a…

Stasiun Oyahana親鼻駅Stasiun Oyahana pada Maret 2006Lokasi2499-2 Minano, Minano, Chichibu, Saitama(秩父郡皆野町皆野2499-2)JepangOperatorChichibu RailwayJalurJalur Utama ChichibuSejarahDibuka1914PenumpangFY2000581 per hari Sunting kotak info • L • BBantuan penggunaan templat ini Stasiun Oyahana (親鼻駅code: ja is deprecated , Oyahana-eki) adalah sebuah stasiun kereta api di Minano, Saitama, Jepang, yang dioperasikan oleh Chichibu Railway. Jalur Stasiun Oyahana dila…

French painter This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (April 2019) (Learn how and when to remove this message) At the Edge of the Oasis Victor-Pierre Huguet (1 May 1835, Le Lude – 16 August 1902, Paris) was a French Orientalist painter. Biography He studied at the École supérieure des beaux-arts de Marseille &#…

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: エティエンヌ・フランソワ・ド・ショワズール – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2017年10月) エティエン…

Chemical compound CloxestradiolClinical dataOther names17-(2,2,2-Trichloroethoxy)estradiol; 17-(1-Hydroxy-2,2,2-trichloroethoxy)estra-1,3,5(10-trien-3-olDrug classEstrogen; Estrogen etherIdentifiers IUPAC name (8R,9S,13S,14S,17S)-13-methyl-17-(2,2,2-trichloro-1-hydroxyethoxy)-6,7,8,9,11,12,14,15,16,17-decahydrocyclopenta[a]phenanthren-3-ol CAS Number54063-33-1PubChem CID194705ChemSpider168924UNII42R9MZG1DLCompTox Dashboard (EPA)DTXSID701045814 Chemical and physical dataFormulaC20H25Cl3O3Molar ma…

Questa voce o sezione sull'argomento saggistica non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. La costituzione ingleseTitolo originaleThe English Constitution AutoreWalter Bagehot 1ª ed. originale1867 Generesaggio Sottogenerepolitica Lingua originaleinglese Modifica dati su Wikidata · Manuale La costi…

High TensionLagu oleh AKB48Sisi-AHigh TensionSisi-B Osae Kirenai Shoudou Happy End (Jenis A) Better (Jenis B) Hoshizora o Kimi ni (Jenis C) Shishunki no Adrenaline (Jenis D) Junjō Tired (Jenis E) Mata Anata no Koto o Kangaeteta (Edisi Teater) Dirilis16 November 2016 (2016-11-16)Format Singel maxi (CD) unduhan digital GenreJ-popLabelYou, Be Cool! / KingPenciptaYasushi Akimoto (lirik)Satori Shiraishi (Musik)Hiroshi Sasaki (Aransemen)ProduserYasushi AkimotoVideo musik di YouTubeHigh Tension H…

Nanni Moretti nel 2019 Giovanni Moretti, detto Nanni (Brunico, 19 agosto 1953), è un regista, attore, sceneggiatore e produttore cinematografico italiano. Le sue opere, caratterizzate inizialmente da una visione ironica e sarcastica dei luoghi comuni e delle problematiche del mondo giovanile del tempo, si sono poi indirizzate verso una critica più sostanziale della società italiana e dei suoi costumi. Indice 1 Biografia 1.1 Le origini 1.2 Gli inizi negli anni settanta 1.3 Anni ottanta 1.4 Gli…

Jim Marshall Información personalNombre en inglés James Joseph Marshall Nacimiento 3 de febrero de 1936 Chicago (Estados Unidos) Fallecimiento 24 de marzo de 2010 Nueva York (Estados Unidos) Residencia San Francisco Nacionalidad EstadounidenseInformación profesionalOcupación Fotógrafo, fotoperiodista y periodista Años activo 1960-2010Géneros Documental, reportaje y retrato Sitio web jimmarshallphotographyllc.com Distinciones MOJO AwardsPremio Lucie (2004)Premio Grammy fiduciario …

Clarendon Terrace—an outlying part of the Kemp Town development—was built between 1855 and 1859, about 30 years after the main crescents and squares.[1] Map all coordinates using OpenStreetMap Download coordinates as: KML GPX (all coordinates) GPX (primary coordinates) GPX (secondary coordinates) As of February 2001, there were 1,124 listed buildings with Grade II status in the English city of Brighton and Hove.[2] The total at 2009 was similar.[3] The city, on the En…

Distik disrik di Andhra Pradesh dengan Rangareddi terletak di sebelah barat Hyderabad Distrik Rangareddi adalah salah satu dari 23 distrik di negara bagian Andhra Pradesh India. Distrik ini dibentuk pada tahun 1978 ketika berpisah dari distrik Hyderabad . wilyah distrik ini terletak sebalah barat dari Hyderabad. Distrik Rangareddi ini memiliki luas wilayah 7.493 km ², pada tahun 2001 populasi distrik ini 3.575.064 jiwa di mana 54,20% penduduk tinggal di perkotaan. Di distrik ini terdapat p…

English singer, actor and financial journalist (1940–2003) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Adam Faith – news · newspapers · books · scholar · JSTOR (February 2008) (Learn how and when to remove this message) Adam FaithAdam Faith in 1963Background informationBirth nameTerence Nelhams WrightAlso…

طلاقمعلومات عامةصنف فرعي من حلseparation (en) سبب النهاية الأسباب انهيار الزواجbreakup (en) سبب مباشر لهذا الحدث sham marriage (en) تسبب في divorcee (en) النقيض زفاف married (en) انفصال قانوني تعديل - تعديل مصدري - تعديل ويكي بيانات   «الطلاق» تُحوِّل إلى هنا. لسورة الطلاق، طالع سورة الطلاق. قانون الأس…

كأس فرنسا 2011–12 تفاصيل الموسم كأس فرنسا  النسخة 95  البلد فرنسا  التاريخ بداية:13 أغسطس 2011  نهاية:28 أبريل 2012  المنظم اتحاد فرنسا لكرة القدم  البطل أولمبيك ليون  عدد المشاركين 7422   كأس فرنسا 2010–11  كأس فرنسا 2012–13  تعديل مصدري - تعديل   كأس فرنسا 2011–12 (بال…

Questa voce sull'argomento calciatori francesi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Noël LiétaerNazionalità Francia Calcio RuoloDifensore CarrieraSquadre di club1 1932-1939 Excelsior Roubaix190 (9) Nazionale 1933-1934 Francia7 (0) 1 I due numeri indicano le presenze e le reti segnate, per le sole partite di campionato.Il simbolo → indica un trasferimento in prestito.   Modifi…

Public school in Barnstable, Massachusetts, United States Barnstable High SchoolAddress744 West Main StreetHyannisBarnstable, (Barnstable County), Massachusetts 02601United StatesCoordinates41°39′16.1″N 70°19′17.3″W / 41.654472°N 70.321472°W / 41.654472; -70.321472InformationTypePublicOpen enrollment[2]MottoPride, Respect, HonorEstablished1889; 135 years ago (1889)School districtBarnstable Public School DistrictPrincipalElizabeth Free…

中華民國縣道203號中華民國縣道203號的路線圖道路信息管理方交通部公路總局(代管)道路總長36.297公里(22.554英里)历史 縣道澎湖3線(年-年)共线 縣道205號 澎8-1線 起點終點起點澎湖縣馬公市馬公市區終點澎湖縣西嶼鄉外垵公路系統中華民國縣道 縣道203號(馬公-外垵),是位於臺灣澎湖縣的一條縣道,東起馬公市馬公市區,往北逆時針經湖西鄉、白沙鄉,西迄西嶼鄉…

United Nations resolution adopted in 2005 UN Security CouncilResolution 1609Yamoussoukro, capital of Côte d'IvoireDate24 June 2005Meeting no.5,213CodeS/RES/1609 (Document)SubjectThe situation in Côte d'IvoireVoting summary15 voted forNone voted againstNone abstainedResultAdoptedSecurity Council compositionPermanent members China France Russia United Kingdom United StatesNon-permanent members Algeria Argentina Benin Brazil Denmark Gree…