home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / yamp / dist.tex < prev    next >
LaTeX Document  |  1992-03-22  |  6.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file C source text default
98% file LaTeX document, ASCII text, with CRLF line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CRLF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 44 69 73 74 72 69 62 |\chapter|{Distrib|
|00000010| 75 74 69 6f 6e 20 46 75 | 6e 63 74 69 6f 6e 73 7d |ution Fu|nctions}|
|00000020| 0d 0a 0d 0a 53 65 76 65 | 72 61 6c 20 73 74 61 74 |....Seve|ral stat|
|00000030| 69 73 74 69 63 61 6c 20 | 64 69 73 74 72 69 62 75 |istical |distribu|
|00000040| 74 69 6f 6e 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |tion fun|ctions a|
|00000050| 6e 64 20 74 68 65 69 72 | 20 69 6e 76 65 72 73 65 |nd their| inverse|
|00000060| 73 0d 0a 61 72 65 20 64 | 65 73 63 72 69 62 65 64 |s..are d|escribed|
|00000070| 20 69 6e 20 74 68 69 73 | 20 63 68 61 70 74 65 72 | in this| chapter|
|00000080| 2e 20 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |. The fu|nctions |
|00000090| 66 6f 72 6d 20 61 20 73 | 65 6c 66 0d 0a 63 6f 6e |form a s|elf..con|
|000000a0| 74 61 69 6e 65 64 20 6d | 6f 64 75 6c 65 20 74 68 |tained m|odule th|
|000000b0| 61 74 20 6d 61 79 20 62 | 65 20 61 64 64 65 64 20 |at may b|e added |
|000000c0| 74 6f 20 59 41 4d 50 20 | 69 66 20 79 6f 75 20 6e |to YAMP |if you n|
|000000d0| 65 65 64 20 74 68 65 6d | 2e 0d 0a 54 68 65 79 20 |eed them|...They |
|000000e0| 61 72 65 20 63 6f 6c 6c | 65 63 74 65 64 20 66 72 |are coll|ected fr|
|000000f0| 6f 6d 20 73 65 76 65 72 | 61 6c 20 73 6f 75 72 63 |om sever|al sourc|
|00000100| 65 73 2e 20 4d 6f 73 74 | 20 6f 66 20 74 68 65 6d |es. Most| of them|
|00000110| 20 61 72 65 20 62 61 73 | 65 64 0d 0a 6f 6e 20 4e | are bas|ed..on N|
|00000120| 75 6d 65 72 69 63 61 6c | 20 52 65 63 69 70 65 73 |umerical| Recipes|
|00000130| 20 69 6e 20 43 2e 20 49 | 20 68 61 76 65 20 62 72 | in C. I| have br|
|00000140| 6f 75 67 68 74 20 74 68 | 65 6d 20 75 70 20 74 6f |ought th|em up to|
|00000150| 20 64 61 74 65 20 62 79 | 0d 0a 6d 61 6b 69 6e 67 | date by|..making|
|00000160| 20 74 68 65 6d 20 61 63 | 63 65 70 74 61 62 6c 65 | them ac|ceptable|
|00000170| 20 74 6f 20 43 2b 2b 2e | 20 49 20 61 6c 73 6f 20 | to C++.| I also |
|00000180| 63 6f 6e 76 65 72 74 65 | 64 20 74 68 65 6d 20 74 |converte|d them t|
|00000190| 6f 20 75 73 69 6e 67 0d | 0a 64 6f 75 62 6c 65 73 |o using.|.doubles|
|000001a0| 2e 20 53 6f 6d 65 20 61 | 72 65 20 74 72 61 6e 73 |. Some a|re trans|
|000001b0| 6c 61 74 69 6f 6e 73 20 | 66 72 6f 6d 20 41 62 72 |lations |from Abr|
|000001c0| 61 6d 6f 77 69 74 7a 20 | 61 6e 64 20 53 74 65 67 |amowitz |and Steg|
|000001d0| 75 6e 0d 0a 5c 63 69 74 | 65 7b 41 53 3a 6d 68 7d |un..\cit|e{AS:mh}|
|000001e0| 2e 20 53 6f 6d 65 20 61 | 72 65 20 74 61 6b 65 6e |. Some a|re taken|
|000001f0| 20 66 72 6f 6d 20 74 68 | 65 20 4a 6f 75 72 6e 61 | from th|e Journa|
|00000200| 6c 20 6f 66 20 41 70 70 | 6c 69 65 64 20 53 74 61 |l of App|lied Sta|
|00000210| 74 69 73 74 69 63 73 2e | 0d 0a 0d 0a 54 68 65 20 |tistics.|....The |
|00000220| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 6d 6f 64 |distribu|tion mod|
|00000230| 75 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ule cont|ains the|
|00000240| 20 34 20 6d 6f 73 74 20 | 66 72 65 71 75 65 6e 74 | 4 most |frequent|
|00000250| 6c 79 20 75 73 65 64 0d | 0a 63 6f 6e 74 69 6e 75 |ly used.|.continu|
|00000260| 6f 75 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |ous dist|ribution|
|00000270| 73 20 69 6e 20 61 70 70 | 6c 69 65 64 20 73 74 61 |s in app|lied sta|
|00000280| 74 69 73 74 69 63 73 2e | 20 54 68 65 20 73 74 61 |tistics.| The sta|
|00000290| 6e 64 61 72 64 0d 0a 6e | 6f 72 6d 61 6c 20 64 69 |ndard..n|ormal di|
|000002a0| 73 74 72 69 62 75 74 69 | 6f 6e 20 69 73 20 61 20 |stributi|on is a |
|000002b0| 6e 6f 72 6d 61 6c 69 7a | 65 64 20 76 65 72 73 69 |normaliz|ed versi|
|000002c0| 6f 6e 20 6f 66 20 45 75 | 6c 65 72 27 73 20 65 72 |on of Eu|ler's er|
|000002d0| 72 6f 72 0d 0a 66 75 6e | 63 74 69 6f 6e 2e 20 49 |ror..fun|ction. I|
|000002e0| 74 20 72 65 70 72 65 73 | 65 6e 74 73 20 74 68 65 |t repres|ents the|
|000002f0| 20 6c 69 6d 69 74 69 6e | 67 20 64 69 73 74 72 69 | limitin|g distri|
|00000300| 62 75 74 69 6f 6e 20 6f | 66 20 73 61 6d 70 6c 65 |bution o|f sample|
|00000310| 0d 0a 6d 65 61 6e 73 20 | 66 72 6f 6d 20 6d 61 6e |..means |from man|
|00000320| 79 20 72 61 6e 64 6f 6d | 20 76 61 72 69 61 62 6c |y random| variabl|
|00000330| 65 73 2e 20 54 68 65 20 | 46 2d 64 69 73 74 72 69 |es. The |F-distri|
|00000340| 62 75 74 69 6f 6e 73 20 | 61 72 65 0d 0a 64 65 72 |butions |are..der|
|00000350| 69 76 65 64 20 66 72 6f | 6d 20 74 68 65 20 62 65 |ived fro|m the be|
|00000360| 74 61 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 |ta distr|ibutions|
|00000370| 2c 20 61 6e 64 20 61 72 | 65 20 75 73 65 64 20 69 |, and ar|e used i|
|00000380| 6e 20 74 68 65 0d 0a 61 | 6e 61 6c 79 73 69 73 20 |n the..a|nalysis |
|00000390| 6f 66 20 76 61 72 69 61 | 6e 63 65 2e 20 54 68 65 |of varia|nce. The|
|000003a0| 20 74 2d 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 | t-distr|ibutions|
|000003b0| 20 61 72 65 20 61 6c 73 | 6f 20 75 73 65 64 20 69 | are als|o used i|
|000003c0| 6e 0d 0a 68 79 70 6f 74 | 68 65 73 69 73 20 74 65 |n..hypot|hesis te|
|000003d0| 73 74 69 6e 67 2e 20 54 | 68 65 20 63 68 69 2d 73 |sting. T|he chi-s|
|000003e0| 71 75 61 72 65 20 66 61 | 6d 69 6c 6c 79 20 69 73 |quare fa|milly is|
|000003f0| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 74 68 | derived| from th|
|00000400| 65 0d 0a 67 61 6d 6d 61 | 20 64 69 73 74 72 69 62 |e..gamma| distrib|
|00000410| 75 74 69 6f 6e 2c 20 61 | 6e 64 20 61 72 65 20 61 |ution, a|nd are a|
|00000420| 6c 73 6f 20 75 73 65 64 | 20 69 6e 20 68 79 70 6f |lso used| in hypo|
|00000430| 74 68 65 73 69 73 20 74 | 65 73 74 69 6e 67 2e 20 |thesis t|esting. |
|00000440| 0d 0a 0d 0a 49 6e 20 67 | 65 6e 65 72 61 6c 2c 20 |....In g|eneral, |
|00000450| 74 68 65 20 70 72 6f 62 | 61 62 69 6c 69 74 79 20 |the prob|ability |
|00000460| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 64 69 |function|s are di|
|00000470| 73 74 72 69 62 75 74 69 | 6f 6e 0d 0a 66 75 6e 63 |stributi|on..func|
|00000480| 74 69 6f 6e 73 2e 20 54 | 68 65 79 20 72 65 74 75 |tions. T|hey retu|
|00000490| 72 6e 20 74 68 65 20 70 | 72 6f 62 61 62 69 6c 69 |rn the p|robabili|
|000004a0| 74 79 20 74 68 61 74 20 | 61 20 72 61 6e 64 6f 6d |ty that |a random|
|000004b0| 20 76 61 72 69 61 62 6c | 65 20 69 73 0d 0a 6c 65 | variabl|e is..le|
|000004c0| 73 73 20 74 68 61 6e 20 | 61 20 76 61 6c 75 65 2c |ss than |a value,|
|000004d0| 20 69 65 0d 0a 5c 62 65 | 67 69 6e 7b 65 71 75 61 | ie..\be|gin{equa|
|000004e0| 74 69 6f 6e 7d 0d 0a 20 | 20 50 5b 20 58 20 5c 6c |tion}.. | P[ X \l|
|000004f0| 65 20 78 20 5d 20 3d 20 | 5c 69 6e 74 5f 7b 2d 5c |e x ] = |\int_{-\|
|00000500| 69 6e 66 74 79 7d 5e 78 | 20 5c 21 5c 21 20 66 28 |infty}^x| \!\! f(|
|00000510| 74 29 20 64 74 0d 0a 5c | 65 6e 64 7b 65 71 75 61 |t) dt..\|end{equa|
|00000520| 74 69 6f 6e 7d 0d 0a 5c | 6e 6f 69 6e 64 65 6e 74 |tion}..\|noindent|
|00000530| 20 77 68 65 72 65 20 24 | 66 28 74 29 24 20 69 73 | where $|f(t)$ is|
|00000540| 20 61 20 70 72 6f 62 61 | 62 69 6c 69 74 79 20 64 | a proba|bility d|
|00000550| 65 6e 73 69 74 79 20 66 | 75 6e 63 74 69 6f 6e 2e |ensity f|unction.|
|00000560| 20 54 68 65 0d 0a 69 6e | 76 65 72 73 65 20 66 75 | The..in|verse fu|
|00000570| 6e 63 74 69 6f 6e 73 20 | 72 65 74 75 72 6e 20 74 |nctions |return t|
|00000580| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 24 78 24 20 |he value| of $x$ |
|00000590| 66 6f 72 20 61 20 67 69 | 76 65 6e 0d 0a 70 72 6f |for a gi|ven..pro|
|000005a0| 62 61 62 69 6c 69 74 79 | 2e 20 54 68 65 20 69 6e |bability|. The in|
|000005b0| 76 65 72 73 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |verse fu|nctions |
|000005c0| 61 72 65 20 63 61 6c 63 | 75 6c 61 74 65 64 20 61 |are calc|ulated a|
|000005d0| 6c 6d 6f 73 74 0d 0a 65 | 78 63 6c 75 73 69 76 65 |lmost..e|xclusive|
|000005e0| 6c 79 20 62 79 20 62 72 | 61 63 6b 65 74 74 69 6e |ly by br|ackettin|
|000005f0| 67 20 61 6e 64 20 62 69 | 73 65 63 74 69 6f 6e 2e |g and bi|section.|
|00000600| 0d 0a 0d 0a 54 68 65 20 | 74 65 73 74 20 66 75 6e |....The |test fun|
|00000610| 63 74 69 6f 6e 20 69 73 | 20 61 20 73 69 6d 70 6c |ction is| a simpl|
|00000620| 65 20 6d 65 6e 75 20 70 | 72 6f 67 72 61 6d 20 63 |e menu p|rogram c|
|00000630| 61 6c 6c 65 64 0d 0a 24 | 44 49 53 54 54 45 53 54 |alled..$|DISTTEST|
|00000640| 2e 43 50 50 24 2e 20 54 | 68 65 73 65 20 61 72 65 |.CPP$. T|hese are|
|00000650| 20 6e 6f 74 20 74 68 65 | 20 62 65 73 74 20 70 72 | not the| best pr|
|00000660| 6f 67 72 61 6d 73 20 6f | 6e 20 74 68 65 20 6d 61 |ograms o|n the ma|
|00000670| 72 6b 65 74 0d 0a 62 75 | 74 20 74 68 65 79 20 61 |rket..bu|t they a|
|00000680| 72 65 20 72 65 61 73 6f | 6e 61 62 6c 79 20 61 63 |re reaso|nably ac|
|00000690| 63 75 72 61 74 65 20 66 | 6f 72 20 6d 79 20 61 70 |curate f|or my ap|
|000006a0| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 54 68 65 79 |plicatio|ns. They|
|000006b0| 20 74 65 6e 64 0d 0a 74 | 6f 20 66 61 6c 6c 20 61 | tend..t|o fall a|
|000006c0| 70 61 72 74 20 69 6e 20 | 74 68 65 20 66 61 72 20 |part in |the far |
|000006d0| 74 61 69 6c 73 20 6f 72 | 20 66 61 72 20 65 78 74 |tails or| far ext|
|000006e0| 72 65 6d 65 73 20 6f 66 | 20 74 68 65 20 70 61 72 |remes of| the par|
|000006f0| 61 6d 65 74 65 72 0d 0a | 73 70 61 63 65 73 2e 20 |ameter..|spaces. |
|00000700| 54 68 65 20 72 65 67 69 | 6f 6e 73 20 77 68 65 72 |The regi|ons wher|
|00000710| 65 20 74 68 65 79 20 66 | 61 69 6c 20 74 68 6f 75 |e they f|ail thou|
|00000720| 67 68 20 69 73 20 77 68 | 65 72 65 20 74 68 65 0d |gh is wh|ere the.|
|00000730| 0a 70 72 6f 62 61 62 69 | 6c 69 74 69 65 73 20 61 |.probabi|lities a|
|00000740| 72 65 20 65 78 74 72 65 | 6d 65 6c 79 20 63 6c 6f |re extre|mely clo|
|00000750| 73 65 20 74 6f 20 7a 65 | 72 6f 20 6f 72 20 6f 6e |se to ze|ro or on|
|00000760| 65 2e 20 54 68 65 0d 0a | 6e 6f 6e 2d 63 65 6e 74 |e. The..|non-cent|
|00000770| 72 61 6c 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |ral dist|ribution|
|00000780| 73 20 6d 61 79 20 61 6c | 73 6f 20 66 61 69 6c 20 |s may al|so fail |
|00000790| 77 69 74 68 20 76 65 72 | 79 20 6c 61 72 67 65 20 |with ver|y large |
|000007a0| 6f 72 20 76 65 72 79 0d | 0a 73 6d 61 6c 6c 20 6e |or very.|.small n|
|000007b0| 6f 6e 2d 63 65 6e 74 72 | 61 6c 69 74 79 20 70 61 |on-centr|ality pa|
|000007c0| 72 61 6d 65 74 65 72 73 | 2e 20 59 6f 75 20 6d 69 |rameters|. You mi|
|000007d0| 67 68 74 20 6c 69 6b 65 | 20 74 6f 20 73 65 65 20 |ght like| to see |
|000007e0| 4c 6f 75 69 73 0d 0a 42 | 61 6b 65 72 27 73 20 6e |Louis..B|aker's n|
|000007f0| 65 77 20 62 6f 6f 6b 20 | 66 6f 72 20 61 6e 6f 74 |ew book |for anot|
|00000800| 68 65 72 20 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |her pres|entation|
|00000810| 20 6f 66 20 73 69 6d 69 | 6c 61 72 0d 0a 66 75 6e | of simi|lar..fun|
|00000820| 63 74 69 6f 6e 73 5c 63 | 69 74 65 7b 42 6b 3a 6d |ctions\c|ite{Bk:m|
|00000830| 66 7d 2e 20 49 74 20 68 | 61 73 20 6d 6f 73 74 20 |f}. It h|as most |
|00000840| 6f 66 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 73 |of the f|unctions|
|00000850| 20 66 72 6f 6d 0d 0a 41 | 62 72 61 6d 6f 77 69 74 | from..A|bramowit|
|00000860| 7a 20 61 6e 64 20 53 74 | 65 67 75 6e 20 74 6f 6f |z and St|egun too|
|00000870| 2e 20 28 41 20 6d 69 6e | 6f 72 20 6d 69 72 61 63 |. (A min|or mirac|
|00000880| 6c 65 20 69 6e 20 6d 79 | 0d 0a 68 75 6d 62 6c 65 |le in my|..humble|
|00000890| 20 6f 70 69 6e 69 6f 6e | 29 2e 20 59 6f 75 20 61 | opinion|). You a|
|000008a0| 6c 73 6f 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 68 |lso shou|ld not h|
|000008b0| 65 73 69 74 61 74 65 20 | 74 6f 20 74 75 72 6e 20 |esitate |to turn |
|000008c0| 74 6f 20 74 68 65 0d 0a | 49 4d 53 4c 20 6f 72 20 |to the..|IMSL or |
|000008d0| 53 41 53 20 72 6f 75 74 | 69 6e 65 73 20 66 6f 72 |SAS rout|ines for|
|000008e0| 20 74 68 65 73 65 20 70 | 72 6f 62 61 62 69 6c 69 | these p|robabili|
|000008f0| 74 69 65 73 20 73 69 6e | 63 65 20 74 68 65 79 0d |ties sin|ce they.|
|00000900| 0a 72 65 70 72 65 73 65 | 6e 74 20 69 6e 64 75 73 |.represe|nt indus|
|00000910| 74 72 79 20 73 74 61 6e | 64 61 72 64 73 2e 0d 0a |try stan|dards...|
|00000920| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 48 65 61 64 65 |..\secti|on{Heade|
|00000930| 72 20 61 6e 64 20 44 65 | 73 63 72 69 70 74 69 6f |r and De|scriptio|
|00000940| 6e 7d 0d 0a 0d 0a 54 68 | 65 20 68 65 61 64 65 72 |n}....Th|e header|
|00000950| 20 69 73 20 67 69 76 65 | 6e 20 62 65 6c 6f 77 20 | is give|n below |
|00000960| 5c 69 6e 64 65 78 7b 44 | 69 73 74 72 69 62 75 74 |\index{D|istribut|
|00000970| 69 6f 6e 20 46 75 6e 63 | 74 69 6f 6e 73 7d 0d 0a |ion Func|tions}..|
|00000980| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00000990| 0d 0a 0d 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |....#inc|lude <st|
|000009a0| 64 69 6f 2e 68 3e 0d 0a | 23 69 6e 63 6c 75 64 65 |dio.h>..|#include|
|000009b0| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0d 0a 23 69 6e | <stdlib|.h>..#in|
|000009c0| 63 6c 75 64 65 20 3c 6d | 61 74 68 2e 68 3e 0d 0a |clude <m|ath.h>..|
|000009d0| 0d 0a 20 64 6f 75 62 6c | 65 20 67 61 6d 6d 6c 6e |.. doubl|e gammln|
|000009e0| 20 28 64 6f 75 62 6c 65 | 20 78 78 29 3b 0d 0a 20 | (double| xx);.. |
|000009f0| 64 6f 75 62 6c 65 20 67 | 61 6d 6d 70 28 64 6f 75 |double g|ammp(dou|
|00000a00| 62 6c 65 20 78 2c 20 64 | 6f 75 62 6c 65 20 61 2c |ble x, d|ouble a,|
|00000a10| 20 64 6f 75 62 6c 65 20 | 62 29 3b 0d 0a 20 64 6f | double |b);.. do|
|00000a20| 75 62 6c 65 20 6e 63 62 | 65 74 61 28 64 6f 75 62 |uble ncb|eta(doub|
|00000a30| 6c 65 20 78 2c 20 64 6f | 75 62 6c 65 20 61 2c 20 |le x, do|uble a, |
|00000a40| 64 6f 75 62 6c 65 20 62 | 2c 20 64 6f 75 62 6c 65 |double b|, double|
|00000a50| 20 6c 61 6d 29 3b 0d 0a | 20 64 6f 75 62 6c 65 20 | lam);..| double |
|00000a60| 62 65 74 61 69 20 28 64 | 6f 75 62 6c 65 20 61 2c |betai (d|ouble a,|
|00000a70| 20 64 6f 75 62 6c 65 20 | 62 2c 20 64 6f 75 62 6c | double |b, doubl|
|00000a80| 65 20 78 29 3b 0d 0a 20 | 64 6f 75 62 6c 65 20 6e |e x);.. |double n|
|00000a90| 63 66 20 28 64 6f 75 62 | 6c 65 20 66 2c 20 64 6f |cf (doub|le f, do|
|00000aa0| 75 62 6c 65 20 6e 31 2c | 20 64 6f 75 62 6c 65 20 |uble n1,| double |
|00000ab0| 6e 32 2c 20 64 6f 75 62 | 6c 65 20 6c 61 6d 29 3b |n2, doub|le lam);|
|00000ac0| 0d 0a 20 64 6f 75 62 6c | 65 20 70 72 6f 62 66 20 |.. doubl|e probf |
|00000ad0| 28 64 6f 75 62 6c 65 20 | 66 2c 20 64 6f 75 62 6c |(double |f, doubl|
|00000ae0| 65 20 6e 31 2c 20 64 6f | 75 62 6c 65 20 6e 32 29 |e n1, do|uble n2)|
|00000af0| 3b 0d 0a 20 64 6f 75 62 | 6c 65 20 70 72 6f 62 6e |;.. doub|le probn|
|00000b00| 6f 72 6d 69 20 28 64 6f | 75 62 6c 65 20 75 29 3b |ormi (do|uble u);|
|00000b10| 0d 0a 20 64 6f 75 62 6c | 65 20 70 72 6f 62 6e 6f |.. doubl|e probno|
|00000b20| 72 6d 20 28 64 6f 75 62 | 6c 65 20 78 29 3b 0d 0a |rm (doub|le x);..|
|00000b30| 20 64 6f 75 62 6c 65 20 | 6e 63 66 69 6e 76 20 28 | double |ncfinv (|
|00000b40| 64 6f 75 62 6c 65 20 70 | 2c 20 64 6f 75 62 6c 65 |double p|, double|
|00000b50| 20 76 31 2c 20 64 6f 75 | 62 6c 65 20 76 32 2c 20 | v1, dou|ble v2, |
|00000b60| 64 6f 75 62 6c 65 20 6c | 61 6d 29 3b 0d 0a 20 64 |double l|am);.. d|
|00000b70| 6f 75 62 6c 65 20 70 72 | 6f 62 66 69 20 28 64 6f |ouble pr|obfi (do|
|00000b80| 75 62 6c 65 20 70 2c 20 | 64 6f 75 62 6c 65 20 6e |uble p, |double n|
|00000b90| 31 2c 20 64 6f 75 62 6c | 65 20 6e 32 29 3b 0d 0a |1, doubl|e n2);..|
|00000ba0| 20 64 6f 75 62 6c 65 20 | 6e 63 74 20 28 64 6f 75 | double |nct (dou|
|00000bb0| 62 6c 65 20 74 2c 20 64 | 6f 75 62 6c 65 20 64 66 |ble t, d|ouble df|
|00000bc0| 2c 20 64 6f 75 62 6c 65 | 20 6e 63 29 3b 0d 0a 20 |, double| nc);.. |
|00000bd0| 64 6f 75 62 6c 65 20 70 | 72 6f 62 74 20 28 64 6f |double p|robt (do|
|00000be0| 75 62 6c 65 20 74 2c 20 | 64 6f 75 62 6c 65 20 6e |uble t, |double n|
|00000bf0| 31 29 3b 0d 0a 20 64 6f | 75 62 6c 65 20 70 72 6f |1);.. do|uble pro|
|00000c00| 62 74 69 20 28 64 6f 75 | 62 6c 65 20 70 2c 20 64 |bti (dou|ble p, d|
|00000c10| 6f 75 62 6c 65 20 64 66 | 29 3b 0d 0a 20 64 6f 75 |ouble df|);.. dou|
|00000c20| 62 6c 65 20 6e 63 74 69 | 20 28 64 6f 75 62 6c 65 |ble ncti| (double|
|00000c30| 20 70 2c 20 64 6f 75 62 | 6c 65 20 64 66 2c 20 64 | p, doub|le df, d|
|00000c40| 6f 75 62 6c 65 20 6e 63 | 29 3b 0d 0a 20 64 6f 75 |ouble nc|);.. dou|
|00000c50| 62 6c 65 20 6e 63 67 61 | 6d 6d 61 20 28 64 6f 75 |ble ncga|mma (dou|
|00000c60| 62 6c 65 20 78 2c 20 64 | 6f 75 62 6c 65 20 61 2c |ble x, d|ouble a,|
|00000c70| 20 64 6f 75 62 6c 65 20 | 62 2c 20 64 6f 75 62 6c | double |b, doubl|
|00000c80| 65 20 6c 61 6d 29 3b 0d | 0a 20 64 6f 75 62 6c 65 |e lam);.|. double|
|00000c90| 20 70 72 6f 62 63 68 69 | 20 28 64 6f 75 62 6c 65 | probchi| (double|
|00000ca0| 20 78 2c 20 64 6f 75 62 | 6c 65 20 64 66 29 3b 0d | x, doub|le df);.|
|00000cb0| 0a 20 64 6f 75 62 6c 65 | 20 6e 63 63 68 69 20 28 |. double| ncchi (|
|00000cc0| 64 6f 75 62 6c 65 20 78 | 2c 20 64 6f 75 62 6c 65 |double x|, double|
|00000cd0| 20 64 66 2c 20 64 6f 75 | 62 6c 65 20 6c 61 6d 29 | df, dou|ble lam)|
|00000ce0| 3b 0d 0a 20 64 6f 75 62 | 6c 65 20 6e 63 67 61 6d |;.. doub|le ncgam|
|00000cf0| 6d 61 69 20 28 64 6f 75 | 62 6c 65 20 70 2c 20 64 |mai (dou|ble p, d|
|00000d00| 6f 75 62 6c 65 20 61 2c | 20 64 6f 75 62 6c 65 20 |ouble a,| double |
|00000d10| 62 2c 20 64 6f 75 62 6c | 65 20 6c 61 6d 29 3b 0d |b, doubl|e lam);.|
|00000d20| 0a 20 64 6f 75 62 6c 65 | 20 6e 63 63 68 69 69 20 |. double| ncchii |
|00000d30| 28 64 6f 75 62 6c 65 20 | 70 2c 20 64 6f 75 62 6c |(double |p, doubl|
|00000d40| 65 20 61 2c 20 64 6f 75 | 62 6c 65 20 6c 61 6d 29 |e a, dou|ble lam)|
|00000d50| 3b 0d 0a 20 64 6f 75 62 | 6c 65 20 70 72 6f 62 63 |;.. doub|le probc|
|00000d60| 68 69 69 20 28 64 6f 75 | 62 6c 65 20 70 2c 20 64 |hii (dou|ble p, d|
|00000d70| 6f 75 62 6c 65 20 64 66 | 29 3b 0d 0a 5c 65 6e 64 |ouble df|);..\end|
|00000d80| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 0a 0d 0a 41 6c |{verbati|m}....Al|
|00000d90| 6c 20 6f 66 20 74 68 65 | 20 70 72 6f 62 61 62 69 |l of the| probabi|
|00000da0| 6c 69 74 79 20 64 65 6e | 73 69 74 79 20 66 75 6e |lity den|sity fun|
|00000db0| 63 74 69 6f 6e 73 20 61 | 72 65 20 69 6e 20 41 62 |ctions a|re in Ab|
|00000dc0| 72 61 6d 6f 77 69 74 7a | 20 61 6e 64 0d 0a 53 74 |ramowitz| and..St|
|00000dd0| 65 67 75 6e 2c 20 73 6f | 20 49 20 77 6f 6e 27 74 |egun, so| I won't|
|00000de0| 20 62 6f 74 68 65 72 20 | 77 69 74 68 20 74 79 70 | bother |with typ|
|00000df0| 69 6e 67 20 74 68 65 6d | 20 69 6e 2e 20 54 68 65 |ing them| in. The|
|00000e00| 79 20 61 72 65 20 70 72 | 65 74 74 79 2c 0d 0a 62 |y are pr|etty,..b|
|00000e10| 75 74 20 6d 6f 73 74 20 | 6f 66 20 74 68 65 20 70 |ut most |of the p|
|00000e20| 65 6f 70 6c 65 20 72 65 | 61 64 69 6e 67 20 74 68 |eople re|ading th|
|00000e30| 69 73 20 64 6f 6e 27 74 | 20 68 61 76 65 20 5c 4c |is don't| have \L|
|00000e40| 61 54 65 58 2c 20 73 6f | 20 69 74 0d 0a 77 69 6c |aTeX, so| it..wil|
|00000e50| 6c 20 6c 6f 6f 6b 20 62 | 61 64 20 69 6e 20 74 68 |l look b|ad in th|
|00000e60| 69 73 20 64 6f 63 75 6d | 65 6e 74 2e 20 42 65 73 |is docum|ent. Bes|
|00000e70| 69 64 65 73 2c 20 6c 65 | 61 66 69 6e 67 20 74 68 |ides, le|afing th|
|00000e80| 72 6f 75 67 68 20 41 53 | 20 69 73 20 61 0d 0a 67 |rough AS| is a..g|
|00000e90| 6f 6f 64 20 61 64 76 65 | 6e 74 75 72 65 2e 20 49 |ood adve|nture. I|
|00000ea0| 74 20 61 6c 77 61 79 73 | 20 72 65 6d 69 6e 64 73 |t always| reminds|
|00000eb0| 20 6d 65 20 6f 66 20 74 | 68 65 20 74 69 6d 65 73 | me of t|he times|
|00000ec0| 20 77 68 65 6e 20 70 65 | 6f 70 6c 65 0d 0a 68 61 | when pe|ople..ha|
|00000ed0| 64 20 74 6f 20 74 68 69 | 6e 6b 20 61 62 6f 75 74 |d to thi|nk about|
|00000ee0| 20 74 68 65 20 70 6f 74 | 65 6e 74 69 61 6c 20 76 | the pot|ential v|
|00000ef0| 61 6c 75 65 20 6f 66 20 | 74 68 65 69 72 20 65 71 |alue of |their eq|
|00000f00| 75 61 74 69 6f 6e 73 20 | 62 65 66 6f 72 65 0d 0a |uations |before..|
|00000f10| 63 6f 6d 70 75 74 69 6e | 67 20 74 68 65 6d 20 62 |computin|g them b|
|00000f20| 65 63 61 75 73 65 20 63 | 6f 6d 70 75 74 61 74 69 |ecause c|omputati|
|00000f30| 6f 6e 20 77 61 73 20 65 | 78 74 72 65 6d 65 6c 79 |on was e|xtremely|
|00000f40| 20 65 78 70 65 6e 73 69 | 76 65 2e 0d 0a 54 68 65 | expensi|ve...The|
|00000f50| 73 65 20 64 61 79 73 20 | 70 65 6f 70 6c 65 20 6a |se days |people j|
|00000f60| 75 73 74 20 63 72 75 6e | 63 68 20 6e 75 6d 62 65 |ust crun|ch numbe|
|00000f70| 72 73 20 77 69 74 68 6f | 75 74 20 72 65 61 6c 6c |rs witho|ut reall|
|00000f80| 79 0d 0a 75 6e 64 65 72 | 73 74 61 6e 64 69 6e 67 |y..under|standing|
|00000f90| 20 74 68 65 20 6d 61 74 | 68 65 6d 61 74 69 63 61 | the mat|hematica|
|00000fa0| 6c 20 66 6f 75 6e 64 61 | 74 69 6f 6e 20 6f 66 20 |l founda|tion of |
|00000fb0| 74 68 65 20 70 6f 77 65 | 72 66 75 6c 0d 0a 70 72 |the powe|rful..pr|
|00000fc0| 6f 67 72 61 6d 73 20 77 | 65 20 75 73 65 2e 20 53 |ograms w|e use. S|
|00000fd0| 6f 6d 65 74 68 69 6e 67 | 20 65 6c 65 67 61 6e 74 |omething| elegant|
|00000fe0| 20 69 73 20 62 65 69 6e | 67 20 66 6f 72 67 6f 74 | is bein|g forgot|
|00000ff0| 74 65 6e 2e 0d 0a 0d 0a | 49 6e 20 74 68 65 20 66 |ten.....|In the f|
|00001000| 6f 6c 6c 6f 77 69 6e 67 | 20 74 61 62 6c 65 2c 20 |ollowing| table, |
|00001010| 49 20 77 69 6c 6c 20 69 | 6e 64 69 63 61 74 65 20 |I will i|ndicate |
|00001020| 74 68 61 74 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |that the| routine|
|00001030| 0d 0a 63 6f 6d 65 73 20 | 66 72 6f 6d 20 4e 75 6d |..comes |from Num|
|00001040| 65 72 69 63 61 6c 20 52 | 65 63 69 70 65 73 20 62 |erical R|ecipes b|
|00001050| 79 20 4e 52 20 61 6e 64 | 20 74 68 65 20 70 61 67 |y NR and| the pag|
|00001060| 65 20 6e 75 6d 62 65 72 | 2e 20 59 6f 75 20 77 69 |e number|. You wi|
|00001070| 6c 6c 0d 0a 6e 65 65 64 | 20 74 68 65 69 72 20 62 |ll..need| their b|
|00001080| 6f 6f 6b 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |ook if y|ou want |
|00001090| 74 6f 20 75 6e 64 65 72 | 73 74 61 6e 64 20 74 68 |to under|stand th|
|000010a0| 65 20 63 6f 64 65 2e 20 | 49 66 0d 0a 74 68 65 20 |e code. |If..the |
|000010b0| 61 75 74 68 6f 72 73 20 | 6f 66 20 74 68 69 73 20 |authors |of this |
|000010c0| 72 65 66 65 72 65 6e 63 | 65 20 6f 62 6a 65 63 74 |referenc|e object|
|000010d0| 20 74 6f 20 6d 79 20 75 | 73 65 20 6f 66 20 74 68 | to my u|se of th|
|000010e0| 65 69 72 20 63 6f 64 65 | 2c 20 49 0d 0a 77 69 6c |eir code|, I..wil|
|000010f0| 6c 20 72 65 6d 6f 76 65 | 20 69 74 20 66 72 6f 6d |l remove| it from|
|00001100| 20 59 41 4d 50 2e 20 41 | 53 20 73 74 61 6e 64 73 | YAMP. A|S stands|
|00001110| 20 66 6f 72 20 61 6e 20 | 41 62 72 61 6d 6f 77 69 | for an |Abramowi|
|00001120| 74 7a 20 61 6e 64 20 53 | 74 65 67 75 6e 0d 0a 66 |tz and S|tegun..f|
|00001130| 6f 72 6d 75 6c 61 2e 0d | 0a 0d 0a 54 68 72 6f 75 |ormula..|...Throu|
|00001140| 67 68 6f 75 74 20 74 68 | 65 20 63 6f 64 65 2c 20 |ghout th|e code, |
|00001150| 5c 76 65 72 62 2b 78 2b | 20 69 73 20 66 6f 72 20 |\verb+x+| is for |
|00001160| 71 75 61 6e 74 69 6c 65 | 73 2c 20 5c 76 65 72 62 |quantile|s, \verb|
|00001170| 2b 70 2b 20 6f 72 0d 0a | 5c 76 65 72 62 2b 75 2b |+p+ or..|\verb+u+|
|00001180| 20 61 72 65 20 66 6f 72 | 20 70 72 6f 62 61 62 69 | are for| probabi|
|00001190| 6c 69 74 69 65 73 2c 20 | 5c 76 65 72 62 2b 61 2b |lities, |\verb+a+|
|000011a0| 20 6f 72 20 5c 76 65 72 | 62 2b 62 2b 20 61 72 65 | or \ver|b+b+ are|
|000011b0| 20 0d 0a 66 6f 72 20 24 | 5c 61 6c 70 68 61 24 20 | ..for $|\alpha$ |
|000011c0| 6f 72 20 24 5c 62 65 74 | 61 24 2c 20 5c 76 65 72 |or $\bet|a$, \ver|
|000011d0| 62 2b 6e 63 2b 20 6f 72 | 20 5c 76 65 72 62 2b 6c |b+nc+ or| \verb+l|
|000011e0| 61 6d 2b 20 61 72 65 20 | 66 6f 72 0d 0a 6e 6f 6e |am+ are |for..non|
|000011f0| 2d 2d 63 65 6e 74 72 61 | 6c 69 74 79 20 70 61 72 |--centra|lity par|
|00001200| 61 6d 65 74 65 72 73 2c | 20 61 6e 64 20 5c 76 65 |ameters,| and \ve|
|00001210| 72 62 2b 64 66 2b 20 69 | 73 20 66 6f 72 20 64 65 |rb+df+ i|s for de|
|00001220| 67 72 65 65 73 20 6f 66 | 0d 0a 66 72 65 65 64 6f |grees of|..freedo|
|00001230| 6d 2e 20 54 68 65 20 64 | 65 67 72 65 65 73 20 6f |m. The d|egrees o|
|00001240| 66 20 66 72 65 65 64 6f | 6d 20 61 72 65 20 63 6f |f freedo|m are co|
|00001250| 6e 74 69 6e 75 6f 75 73 | 20 74 68 72 6f 75 67 68 |ntinuous| through|
|00001260| 6f 75 74 2e 20 20 0d 0a | 54 68 65 20 66 6f 6c 6c |out. ..|The foll|
|00001270| 6f 77 69 6e 67 20 74 61 | 62 6c 65 20 63 6f 6e 74 |owing ta|ble cont|
|00001280| 61 69 6e 73 20 74 68 65 | 20 72 61 6e 67 65 20 6f |ains the| range o|
|00001290| 66 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |f the pa|rameters|
|000012a0| 20 69 6e 20 74 68 65 0d | 0a 66 75 6e 63 74 69 6f | in the.|.functio|
|000012b0| 6e 73 20 61 6e 64 20 61 | 20 73 68 6f 72 74 20 64 |ns and a| short d|
|000012c0| 65 73 63 72 69 70 74 69 | 6f 6e 2e 0d 0a 0d 0a 5c |escripti|on.....\|
|000012d0| 62 65 67 69 6e 7b 74 61 | 62 75 6c 61 72 7d 7b 7c |begin{ta|bular}{||
|000012e0| 6c 7c 6c 7c 6c 7c 7d 20 | 5c 68 6c 69 6e 65 5c 68 |l|l|l|} |\hline\h|
|000012f0| 6c 69 6e 65 0d 0a 7b 5c | 65 6d 20 46 75 6e 63 74 |line..{\|em Funct|
|00001300| 69 6f 6e 7d 20 26 20 7b | 5c 65 6d 20 44 65 73 63 |ion} & {|\em Desc|
|00001310| 72 69 70 74 69 6f 6e 20 | 7d 20 26 20 7b 5c 65 6d |ription |} & {\em|
|00001320| 20 52 61 6e 67 65 73 20 | 7d 20 5c 5c 20 5c 68 6c | Ranges |} \\ \hl|
|00001330| 69 6e 65 0d 0a 67 61 6d | 6d 6c 6e 28 78 78 29 20 |ine..gam|mln(xx) |
|00001340| 26 20 6c 6f 67 20 47 61 | 6d 6d 61 20 66 75 6e 63 |& log Ga|mma func|
|00001350| 74 69 6f 6e 28 4e 52 20 | 31 36 38 29 20 26 20 24 |tion(NR |168) & $|
|00001360| 78 78 20 3e 20 30 24 20 | 5c 5c 0d 0a 5c 68 6c 69 |xx > 0$ |\\..\hli|
|00001370| 6e 65 20 0d 0a 67 61 6d | 6d 70 28 78 2c 20 61 2c |ne ..gam|mp(x, a,|
|00001380| 20 62 29 20 26 20 49 6e | 63 6f 6d 70 6c 65 74 65 | b) & In|complete|
|00001390| 20 47 61 6d 6d 61 28 4e | 52 20 31 37 32 29 20 26 | Gamma(N|R 172) &|
|000013a0| 20 24 78 20 5c 67 65 0d | 0a 30 2c 61 2c 62 20 3e | $x \ge.|.0,a,b >|
|000013b0| 20 30 24 20 5c 5c 20 5c | 68 6c 69 6e 65 0d 0a 6e | 0$ \\ \|hline..n|
|000013c0| 63 62 65 74 61 28 75 2c | 61 2c 62 2c 6c 61 6d 29 |cbeta(u,|a,b,lam)|
|000013d0| 20 26 20 4e 6f 6e 2d 63 | 65 6e 74 72 61 6c 20 42 | & Non-c|entral B|
|000013e0| 65 74 61 20 26 20 24 75 | 20 5c 69 6e 20 5b 30 2c |eta & $u| \in [0,|
|000013f0| 31 5d 24 2c 20 24 61 2c | 62 20 3e 20 30 0d 0a 24 |1]$, $a,|b > 0..$|
|00001400| 2c 20 20 61 6e 64 20 24 | 6c 61 6d 20 5c 67 65 71 |, and $|lam \geq|
|00001410| 20 30 2c 24 20 0d 0a 5c | 5c 20 5c 68 6c 69 6e 65 | 0,$ ..\|\ \hline|
|00001420| 0d 0a 6e 63 66 28 78 2c | 20 6e 31 2c 6e 32 2c 20 |..ncf(x,| n1,n2, |
|00001430| 6c 61 6d 29 20 26 20 4e | 6f 6e 2d 63 65 6e 74 72 |lam) & N|on-centr|
|00001440| 61 6c 20 46 20 20 26 20 | 0d 0a 6e 63 62 65 74 61 |al F & |..ncbeta|
|00001450| 28 20 24 75 20 3d 20 61 | 78 2f 28 61 78 2b 62 29 |( $u = a|x/(ax+b)|
|00001460| 24 2c 20 24 61 3d 6e 31 | 2f 32 24 2c 20 24 62 3d |$, $a=n1|/2$, $b=|
|00001470| 6e 32 2f 32 24 29 20 5c | 5c 20 5c 68 6c 69 6e 65 |n2/2$) \|\ \hline|
|00001480| 0d 0a 70 72 6f 62 66 28 | 78 2c 6e 31 2c 6e 32 29 |..probf(|x,n1,n2)|
|00001490| 20 26 20 43 65 6e 74 72 | 61 6c 20 46 20 26 20 6e | & Centr|al F & n|
|000014a0| 63 66 20 77 69 74 68 20 | 6c 61 6d 3d 30 20 5c 5c |cf with |lam=0 \\|
|000014b0| 20 5c 68 6c 69 6e 65 0d | 0a 70 72 6f 62 6e 6f 72 | \hline.|.probnor|
|000014c0| 6d 69 28 20 75 20 29 20 | 26 20 49 6e 76 65 72 73 |mi( u ) |& Invers|
|000014d0| 65 20 53 74 64 2e 20 4e | 6f 72 6d 61 6c 20 28 41 |e Std. N|ormal (A|
|000014e0| 53 20 32 36 2e 32 2e 32 | 33 29 20 26 20 24 20 30 |S 26.2.2|3) & $ 0|
|000014f0| 20 3c 20 75 0d 0a 3c 20 | 31 20 24 20 5c 5c 20 5c | < u..< |1 $ \\ \|
|00001500| 68 6c 69 6e 65 0d 0a 70 | 72 6f 62 6e 6f 72 6d 28 |hline..p|robnorm(|
|00001510| 20 78 20 29 20 26 20 53 | 74 61 6e 64 61 72 64 20 | x ) & S|tandard |
|00001520| 4e 6f 72 6d 61 6c 20 28 | 4e 52 20 31 37 35 29 20 |Normal (|NR 175) |
|00001530| 26 20 24 20 78 20 5c 69 | 6e 0d 0a 5c 52 65 24 20 |& $ x \i|n..\Re$ |
|00001540| 5c 5c 20 5c 68 6c 69 6e | 65 0d 0a 6e 63 66 69 6e |\\ \hlin|e..ncfin|
|00001550| 76 28 20 70 2c 20 76 31 | 2c 20 76 32 2c 20 6c 61 |v( p, v1|, v2, la|
|00001560| 6d 29 20 26 20 49 6e 76 | 65 72 73 65 20 4e 6f 6e |m) & Inv|erse Non|
|00001570| 2d 43 65 6e 74 72 61 6c | 20 46 20 26 20 24 20 70 |-Central| F & $ p|
|00001580| 20 5c 69 6e 20 28 30 2c | 31 29 0d 0a 24 20 5c 5c | \in (0,|1)..$ \\|
|00001590| 20 5c 68 6c 69 6e 65 0d | 0a 6e 63 74 28 20 74 2c | \hline.|.nct( t,|
|000015a0| 20 64 66 2c 20 6e 63 29 | 20 26 20 4e 6f 6e 2d 63 | df, nc)| & Non-c|
|000015b0| 65 6e 74 72 61 6c 20 74 | 20 26 20 24 74 20 5c 69 |entral t| & $t \i|
|000015c0| 6e 20 5c 52 65 24 2c 20 | 24 20 64 66 20 3e 20 30 |n \Re$, |$ df > 0|
|000015d0| 20 24 2c 20 24 6e 63 0d | 0a 5c 67 65 71 20 30 24 | $, $nc.|.\geq 0$|
|000015e0| 20 5c 5c 20 5c 68 6c 69 | 6e 65 0d 0a 70 72 6f 62 | \\ \hli|ne..prob|
|000015f0| 74 28 20 74 2c 20 64 66 | 20 29 20 26 20 43 65 6e |t( t, df| ) & Cen|
|00001600| 74 72 61 6c 20 74 20 26 | 20 73 61 6d 65 20 61 73 |tral t &| same as|
|00001610| 20 6e 63 74 20 62 75 74 | 20 77 69 74 68 20 6e 63 | nct but| with nc|
|00001620| 20 3d 20 30 20 5c 5c 0d | 0a 5c 68 6c 69 6e 65 20 | = 0 \\.|.\hline |
|00001630| 0d 0a 70 72 6f 62 74 28 | 20 70 2c 20 64 66 20 29 |..probt(| p, df )|
|00001640| 20 26 20 49 6e 76 65 72 | 73 65 20 43 65 6e 74 72 | & Inver|se Centr|
|00001650| 61 6c 20 74 20 26 20 24 | 70 20 5c 69 6e 20 28 30 |al t & $|p \in (0|
|00001660| 2c 31 29 20 24 20 5c 5c | 20 5c 68 6c 69 6e 65 0d |,1) $ \\| \hline.|
|00001670| 0a 70 72 6f 62 74 69 28 | 20 70 2c 20 64 66 2c 20 |.probti(| p, df, |
|00001680| 6e 63 29 20 26 20 49 6e | 76 65 72 73 65 20 4e 6f |nc) & In|verse No|
|00001690| 6e 2d 2d 63 65 6e 74 72 | 61 6c 20 74 20 26 20 73 |n--centr|al t & s|
|000016a0| 61 6d 65 20 61 73 20 70 | 72 6f 62 74 20 62 75 74 |ame as p|robt but|
|000016b0| 0d 0a 24 6e 63 20 3e 20 | 30 24 20 5c 5c 20 5c 68 |..$nc > |0$ \\ \h|
|000016c0| 6c 69 6e 65 0d 0a 6e 63 | 67 61 6d 6d 61 28 67 2c |line..nc|gamma(g,|
|000016d0| 20 61 2c 20 62 2c 20 6c | 61 6d 29 20 26 20 4e 6f | a, b, l|am) & No|
|000016e0| 6e 2d 63 65 6e 74 72 61 | 6c 20 47 61 6d 6d 61 20 |n-centra|l Gamma |
|000016f0| 26 20 24 67 2c 6c 61 6d | 20 5c 67 65 20 30 24 20 |& $g,lam| \ge 0$ |
|00001700| 61 6e 64 0d 0a 24 61 2c | 62 20 3e 20 30 24 20 5c |and..$a,|b > 0$ \|
|00001710| 5c 20 5c 68 6c 69 6e 65 | 0d 0a 70 72 6f 62 63 68 |\ \hline|..probch|
|00001720| 69 28 78 2c 6e 31 29 20 | 26 20 43 65 6e 74 72 61 |i(x,n1) |& Centra|
|00001730| 6c 20 43 68 69 2d 53 71 | 75 61 72 65 20 26 0d 0a |l Chi-Sq|uare &..|
|00001740| 6e 63 67 61 6d 6d 61 28 | 24 67 3d 78 2f 62 2c 61 |ncgamma(|$g=x/b,a|
|00001750| 3d 6e 31 2f 32 2c 62 3d | 30 2e 35 2c 6c 61 6d 3d |=n1/2,b=|0.5,lam=|
|00001760| 30 24 29 20 5c 5c 20 5c | 68 6c 69 6e 65 0d 0a 6e |0$) \\ \|hline..n|
|00001770| 63 63 68 69 28 78 2c 6e | 31 2c 6c 61 6d 29 20 26 |cchi(x,n|1,lam) &|
|00001780| 20 4e 6f 6e 2d 43 65 6e | 74 72 61 6c 20 43 68 69 | Non-Cen|tral Chi|
|00001790| 2d 53 71 75 61 72 65 20 | 26 20 70 72 6f 62 63 68 |-Square |& probch|
|000017a0| 69 20 77 69 74 68 20 6c | 61 6d 20 24 3e 24 20 30 |i with l|am $>$ 0|
|000017b0| 0d 0a 5c 5c 20 5c 68 6c | 69 6e 65 0d 0a 6e 63 67 |..\\ \hl|ine..ncg|
|000017c0| 61 6d 6d 61 69 28 20 70 | 2c 61 2c 62 2c 6c 61 6d |ammai( p|,a,b,lam|
|000017d0| 20 29 20 26 20 49 6e 76 | 65 72 73 65 20 4e 6f 6e | ) & Inv|erse Non|
|000017e0| 2d 63 65 6e 74 72 61 6c | 20 67 61 6d 6d 61 20 26 |-central| gamma &|
|000017f0| 20 24 70 20 5c 69 6e 0d | 0a 28 30 2c 31 29 20 24 | $p \in.|.(0,1) $|
|00001800| 20 5c 5c 20 5c 68 6c 69 | 6e 65 0d 0a 6e 63 63 68 | \\ \hli|ne..ncch|
|00001810| 69 69 28 20 70 2c 20 61 | 2c 20 6c 61 6d 20 29 20 |ii( p, a|, lam ) |
|00001820| 26 20 49 6e 76 65 72 73 | 65 20 4e 6f 6e 2d 63 65 |& Invers|e Non-ce|
|00001830| 6e 74 72 61 6c 20 63 68 | 69 2d 73 71 75 61 72 65 |ntral ch|i-square|
|00001840| 20 26 20 24 70 20 5c 69 | 6e 0d 0a 28 30 2c 31 29 | & $p \i|n..(0,1)|
|00001850| 24 20 5c 5c 20 5c 68 6c | 69 6e 65 0d 0a 70 72 6f |$ \\ \hl|ine..pro|
|00001860| 62 63 68 69 69 28 70 2c | 20 64 66 29 20 26 20 49 |bchii(p,| df) & I|
|00001870| 6e 76 65 72 73 65 20 63 | 65 6e 74 72 61 6c 20 43 |nverse c|entral C|
|00001880| 68 69 2d 73 71 75 61 72 | 65 20 26 20 24 70 20 5c |hi-squar|e & $p \|
|00001890| 69 6e 0d 0a 28 30 2c 31 | 29 24 20 5c 5c 20 0d 0a |in..(0,1|)$ \\ ..|
|000018a0| 5c 68 6c 69 6e 65 5c 68 | 6c 69 6e 65 0d 0a 5c 65 |\hline\h|line..\e|
|000018b0| 6e 64 7b 74 61 62 75 6c | 61 72 7d 0d 0a |nd{tabul|ar}.. |
+--------+-------------------------+-------------------------+--------+--------+