Module Expr Str ImportFrom alias alias alias Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad UnaryOpUSub NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num If CompareLtE Call NameLoad NameLoad Num body Assign NameStore BinOpMult BinOpMult Num NameLoad NameLoad Assign NameStore BinOpSub Num BinOpMult Call NameLoad NameLoad BinOpSub NameLoad BinOpDiv BinOpMult NameLoad NameLoad BinOpSub BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd NameLoad NameLoad orelse If CompareLtE Call NameLoad NameLoad Num body Assign NameStore BinOpMult BinOpMult Num NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult Call NameLoad UnaryOpUSub NameLoad NameLoad BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd Call NameLoad NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad BinOpDiv NameLoad BinOpSub BinOpAdd Call NameLoad NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd Call NameLoad NameLoad NameLoad BinOpDiv NameLoad BinOpAdd Call NameLoad NameLoad NameLoad orelse Assign NameStore Num If CompareLt NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore BinOpSub Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore UnaryOpNot NameLoad If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpSub NameLoad Num Assign NameStore Num Assign NameStore Num If CompareLtE Call NameLoad NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad BinOpAdd BinOpMult BinOpAdd BinOpMult BinOpAdd BinOpMult NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd BinOpMult BinOpAdd BinOpMult BinOpAdd BinOpMult BinOpAdd BinOpMult NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num orelse Assign NameStore NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpSub Num NameLoad If CompareGt NameLoad Num body Assign NameStore Call NameLoad UnaryOpUSub Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpAdd BinOpMult BinOpAdd BinOpMult BinOpAdd BinOpMult NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd BinOpMult BinOpAdd BinOpMult NameLoad NameLoad NameLoad NameLoad Num If CompareLt NameLoad Num body Assign NameStore UnaryOpUSub NameLoad orelse Assign NameStore Num If NameLoad body Assign NameStore UnaryOpUSub NameLoad If BoolOpAnd CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body Return BinOpAdd BinOpMult NameLoad Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Assign NameStore UnaryOpNot NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num If CompareLt NameLoad Num body Assign NameStore UnaryOpNot NameLoad Assign NameStore UnaryOpUSub NameLoad If BoolOpOr CompareLtE NameLoad NameLoad BoolOpAnd NameLoad CompareLtE NameLoad NameLoad body Assign NameStore BinOpMult BinOpMult Num NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore BinOpDiv BinOpMult NameLoad Call NameLoad UnaryOpUSub NameLoad BinOpAdd BinOpSub NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpSub NameLoad NameLoad BinOpDiv NameLoad BinOpSub BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd NameLoad NameLoad orelse Assign NameStore BinOpSub Num BinOpMult NameLoad BinOpSub NameLoad BinOpDiv BinOpMult NameLoad NameLoad BinOpSub BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad BinOpDiv NameLoad BinOpAdd NameLoad NameLoad orelse Assign NameStore Num If UnaryOpNot NameLoad body Assign NameStore BinOpSub Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If CompareLtE NameLoad Num body Raise Call NameLoad Str If NameLoad body If CompareGt NameLoad Num body Return Call NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad orelse If CompareGt NameLoad Num body Return Call NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareGt NameLoad Num body Return Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore NameLoad AugAssignSub NameStore Num Assign NameStore NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpOr CompareGt NameLoad NameLoad CompareGt NameLoad NameLoad body If CompareGtE NameLoad Num body AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad AugAssignSub NameStore Num orelse AugAssignMult NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num Assign NameStore Call NameLoad UnaryOpUSub NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore Num Assign NameStore BinOpAdd NameLoad Num While CompareGt NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore NameLoad AugAssignSub NameStore Num For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad If CompareGt NameLoad NameLoad body If CompareGtE NameLoad Num body AugAssignMult NameStore NameLoad AugAssignSub NameStore Num orelse AugAssignMult NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore BinOpAdd NameLoad Num While CompareGt NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num If BoolOpOr CompareGt NameLoad NameLoad CompareGt NameLoad NameLoad body If CompareGtE NameLoad Num body AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad AugAssignSub NameStore Num orelse AugAssignMult NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assert CompareLt NameLoad Num If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str orelse If CompareEq NameLoad Num body Return Num Assign NameStore Num Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpAnd CompareLtE NameLoad NameLoad CompareLtE NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assert CompareLt NameLoad Num If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str orelse If CompareEq NameLoad Num body Return Num Assign NameStore Num Assign NameStore Call NameLoad UnaryOpUSub NameLoad Assign NameStore NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpAnd CompareLtE NameLoad NameLoad CompareLtE NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLtE NameLoad Num body Return Num Return BinOpDiv BinOpMult Call NameLoad UnaryOpUSub NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad BinOpSub NameLoad NameLoad If CompareLt NameLoad Num body Return Num orelse If CompareEq NameLoad Num body Return Num orelse Assign NameStore Call NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad Num For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore BinOpDiv BinOpMult NameLoad BinOpAdd NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareLt NameLoad Num body Return Num orelse If CompareLt NameLoad NameLoad body Return Num orelse If CompareEq NameLoad Num body Return Num orelse If CompareEq NameLoad Num body Return Num orelse Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad BinOpSub NameLoad Num NameLoad Num body AugAssignDiv NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad While NameLoad body AugAssignMult NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Return NameLoad orelse Assign NameStore Call NameLoad BinOpAdd NameLoad Num NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Num While NameLoad body AugAssignMult NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareLt NameLoad Num body Return Num orelse If CompareLt NameLoad NameLoad body Return Num orelse If CompareEq NameLoad Num body Return Num orelse If CompareEq NameLoad Num body Return Num orelse Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body AugAssignDiv NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad NameLoad NameLoad body AugAssignMult NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Return NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body AugAssignDiv NameStore BinOpDiv BinOpDiv BinOpMult BinOpSub NameLoad NameLoad NameLoad BinOpSub Num NameLoad BinOpAdd NameLoad Num If CompareEq NameLoad Num body Break AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareLt NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num orelse If BoolOpOr CompareLt NameLoad Num CompareLt NameLoad NameLoad body Return Num orelse If CompareEq NameLoad Num body If CompareEq NameLoad Num body Return Num orelse Return Num orelse If CompareEq NameLoad Num body If CompareEq NameLoad NameLoad body Return Num orelse Return Num orelse If CompareGt NameLoad BinOpSub NameLoad NameLoad body Assign NameStore BinOpSub Num NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad Num BinOpAdd NameLoad Num body AugAssignMult NameStore BinOpDiv BinOpMult BinOpAdd BinOpSub NameLoad NameLoad Num NameLoad BinOpAdd BinOpSub NameLoad NameLoad Num If CompareLt NameLoad Num body While CompareLt NameLoad Num body AugAssignDiv NameStore BinOpSub Num NameLoad AugAssignSub NameStore Num If CompareGt NameLoad Num body While BoolOpAnd CompareGt NameLoad Num CompareLt NameLoad NameLoad body AugAssignMult NameStore BinOpSub Num NameLoad AugAssignAdd NameStore Num For NameStore Call NameLoad BinOpSub NameLoad NameLoad body AugAssignMult NameStore BinOpSub Num NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt NameLoad Num body Return Num Assign NameStore Num For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore BinOpMult NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Print BinOpSub Num Call NameLoad Num Num Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Module Description

Copyright (c) 2008 Tao Liu <taoliu@jimmy.harvard.edu>

This code is free software; you can redistribute it and/or modify it
under the terms of the BSD License (see the file COPYING included with
the distribution).

@status:  experimental
@version: $Revision$
@author:  Hyunjin Gene Shin, Tao Liu
@contact: taoliu@jimmy.harvard.edu
 math exp log sqrt N/A LSTEP 200 N/A EXPTHRES N/A exp LSTEP N/A EXPSTEP N/A exp N/A LSTEP normal_01_cdf N/A N/A x N/A N/A N/A NORMAL_01_CDF evaluates the Normal 01 CDF.
     N/A a1 0.398942280444 N/A a2 0.399903438504 N/A a3 5.75885480458 N/A a4 29.8213557808 N/A a5 2.62433121679 N/A a6 48.6959930692 N/A a7 5.92885724438 N/A b0 0.398942280385 N/A b1 3.8052e-08 N/A b2 1.00000615302 N/A b3 0.000398064794 N/A b4 1.98615381364 N/A b5 0.151679116635 N/A b6 5.29330324926 N/A b7 4.8385912808 N/A b8 15.1508972451 N/A b9 0.742380924027 N/A b10 30.789933034 N/A b11 3.99019417011 N/A N/A N/A abs x 1.28 N/A N/A y N/A N/A 0.5 x x N/A q N/A 0.5 N/A N/A abs x N/A a1 N/A N/A a2 y N/A N/A y a3 N/A a4 N/A N/A y a5 N/A a6 N/A y a7 N/A N/A N/A N/A abs x 12.7 N/A N/A y N/A N/A 0.5 x x N/A q N/A N/A N/A exp N/A y b0 N/A N/A N/A abs x b1 N/A b2 N/A N/A N/A abs x b3 N/A b4 N/A N/A N/A abs x b5 N/A b6 N/A N/A N/A abs x b7 N/A b8 N/A N/A N/A abs x b9 N/A b10 N/A N/A abs x b11 N/A N/A q 0.0 N/A N/A x 0.0 N/A N/A cdf q N/A N/A cdf N/A 1.0 q N/A cdf N/A normal_cdf_inv N/A N/A p mu sigma2 lower N/A None None True N/A N/A upper N/A lower N/A N/A N/A p 0 N/A p 1 N/A N/A N/A Exception N/A Illegal argument %f for qnorm(p). p N/A split 0.42 N/A a0 2.50662823884 N/A a1 -18.6150006253 N/A a2 41.3911977353 N/A a3 -25.4410604964 N/A b1 -8.4735109309 N/A b2 23.0833674374 N/A b3 -21.0622410183 N/A b4 3.13082909833 N/A c0 -2.78718931138 N/A c1 -2.29796479134 N/A c2 4.85014127135 N/A c3 2.32121276858 N/A d1 3.54388924762 N/A d2 1.63706781897 N/A q N/A p 0.5 N/A r 0.0 N/A ppnd 0.0 N/A N/A N/A abs q split N/A N/A r N/A q q N/A ppnd N/A N/A q N/A N/A N/A N/A N/A N/A a3 r a2 r a1 r a0 N/A N/A N/A N/A N/A N/A N/A N/A b4 r b3 r b2 r b1 r 1 N/A N/A r p N/A N/A q 0 N/A N/A r N/A 1 p N/A N/A r 0 N/A N/A r N/A sqrt N/A N/A log r N/A ppnd N/A N/A N/A N/A N/A N/A N/A c3 r c2 r c1 r c0 N/A N/A N/A N/A d2 r d1 r 1 N/A N/A q 0 N/A N/A ppnd N/A ppnd N/A N/A ppnd 0 N/A upper N/A N/A ppnd N/A ppnd N/A N/A N/A mu None N/A sigma2 None N/A N/A N/A N/A ppnd N/A sqrt sigma2 mu N/A N/A ppnd N/A normal_cdf N/A N/A z mu sigma2 lower N/A 0.0 1.0 True N/A N/A upper N/A lower N/A z N/A N/A z mu N/A sqrt sigma2 N/A ltone 7.0 N/A utzero 18.66 N/A con 1.28 N/A a1 0.398942280444 N/A a2 0.399903438504 N/A a3 5.75885480458 N/A a4 29.8213557808 N/A a5 2.62433121679 N/A a6 48.6959930692 N/A a7 5.92885724438 N/A b1 0.398942280385 N/A b2 3.8052e-08 N/A b3 1.00000615302 N/A b4 0.000398064794 N/A b5 1.98615381366 N/A b6 0.151679116635 N/A b7 5.29330324926 N/A b8 4.8385912808 N/A b9 15.1508972451 N/A b10 0.742380924027 N/A b11 30.789933034 N/A b12 3.99019417011 N/A y 0.0 N/A alnorm 0.0 N/A N/A z 0 N/A N/A upper N/A upper N/A z N/A z N/A N/A N/A z ltone N/A upper N/A z utzero N/A N/A y N/A N/A 0.5 z z N/A N/A z con N/A N/A alnorm N/A N/A b1 N/A exp N/A y N/A N/A z b2 N/A b3 N/A N/A z b4 N/A b5 N/A N/A z b6 N/A b7 N/A N/A z b8 N/A b9 N/A N/A z b10 N/A b11 N/A z b12 N/A N/A alnorm N/A 0.5 N/A z N/A a1 N/A N/A a2 y N/A N/A y a3 N/A a4 N/A N/A y a5 N/A a6 N/A y a7 N/A N/A alnorm 0.0 N/A N/A upper N/A N/A alnorm N/A 1.0 alnorm N/A alnorm N/A poisson_cdf N/A N/A n lam lower N/A True N/A N/A Poisson CDF evaluater.

    This is a more stable CDF function. It can tolerate large lambda
    value. While the lambda is larger than 700, the function will be a
    little slower.

    Parameters:
    n     : your observation
    lam   : lambda of poisson distribution
    lower : if lower is False, calculate the upper tail CDF
     N/A k N/A int n N/A N/A lam 0.0 N/A N/A N/A Exception Lambda must > 0 N/A lower N/A N/A N/A lam 700 N/A N/A N/A __poisson_cdf_large_lambda k lam N/A N/A N/A __poisson_cdf k lam N/A N/A N/A lam 700 N/A N/A N/A __poisson_cdf_Q_large_lambda k lam N/A N/A N/A __poisson_cdf_Q k lam N/A __poisson_cdf N/A N/A k a N/A N/A N/A Poisson CDF For small lambda. If a > 745, this will return
    incorrect result.

     N/A N/A k 0 N/A N/A 0 N/A next N/A exp N/A a N/A cdf next N/A i N/A xrange 1 N/A k 1 N/A N/A last next N/A next N/A N/A last a i N/A cdf N/A cdf next N/A N/A cdf 1 N/A N/A 1 N/A N/A cdf N/A __poisson_cdf_large_lambda N/A N/A k a N/A N/A N/A Slower poisson cdf for large lambda.
    
     N/A N/A k 0 N/A N/A 0 N/A num_parts N/A int N/A a LSTEP N/A last_part N/A a LSTEP N/A lastexp N/A exp N/A last_part N/A next EXPSTEP N/A num_parts 1 N/A cdf next N/A i N/A xrange 1 N/A k 1 N/A N/A last next N/A next N/A N/A last a i N/A cdf N/A cdf next N/A N/A N/A next EXPTHRES N/A cdf EXPTHRES N/A N/A N/A num_parts 1 N/A N/A cdf EXPSTEP N/A next EXPSTEP N/A num_parts 1 N/A N/A cdf lastexp N/A lastexp 1 N/A i N/A xrange num_parts N/A N/A cdf EXPSTEP N/A cdf lastexp N/A cdf N/A __poisson_cdf_Q N/A N/A k a N/A N/A N/A internal Poisson CDF evaluater for upper tail with small
    lambda.

     N/A N/A k 0 N/A N/A 1 N/A next N/A exp N/A a N/A i N/A xrange 1 N/A k 1 N/A N/A last next N/A next N/A N/A last a i N/A cdf 0 N/A i N/A k 1 N/A N/A next 0 N/A N/A last next N/A next N/A N/A last a i N/A cdf next N/A i 1 N/A cdf N/A __poisson_cdf_Q_large_lambda N/A N/A k a N/A N/A N/A Slower internal Poisson CDF evaluater for upper tail with large
    lambda.
    
     N/A N/A k 0 N/A N/A 1 N/A num_parts N/A int N/A a LSTEP N/A last_part N/A a LSTEP N/A lastexp N/A exp N/A last_part N/A next EXPSTEP N/A num_parts 1 N/A i N/A xrange 1 N/A k 1 N/A N/A last next N/A next N/A N/A last a i N/A N/A next EXPTHRES N/A N/A N/A num_parts 1 N/A N/A next EXPSTEP N/A num_parts 1 N/A N/A cdf lastexp N/A lastexp 1 N/A cdf 0 N/A i N/A k 1 N/A N/A next 0 N/A N/A last next N/A next N/A N/A last a i N/A cdf next N/A i 1 N/A N/A N/A next EXPTHRES N/A cdf EXPTHRES N/A N/A N/A num_parts 1 N/A N/A cdf EXPSTEP N/A next EXPSTEP N/A num_parts 1 N/A N/A cdf lastexp N/A lastexp 1 N/A i N/A xrange num_parts N/A N/A cdf EXPSTEP N/A cdf lastexp N/A cdf N/A poisson_cdf_inv N/A N/A cdf lam maximum N/A 1000 N/A N/A inverse poisson distribution.

    cdf : the CDF
    lam : the lambda of poisson distribution

    note: maxmimum return value is 1000
    and lambda must be smaller than 740.
     N/A N/A lam 740 N/A N/A N/A cdf 0 N/A cdf 1 N/A N/A N/A Exception CDF must >= 0 and <= 1 N/A N/A N/A cdf 0 N/A N/A 0 N/A sum2 0 N/A newval N/A exp N/A lam N/A sum2 newval N/A i N/A xrange 1 N/A maximum 1 N/A N/A sumold sum2 N/A last newval N/A newval N/A N/A last lam i N/A sum2 N/A sum2 newval N/A N/A N/A sumold cdf N/A cdf sum2 N/A N/A i N/A maximum N/A poisson_cdf_Q_inv N/A N/A cdf lam maximum N/A 1000 N/A N/A inverse poisson distribution.

    cdf : the CDF
    lam : the lambda of poisson distribution

    note: maxmimum return value is 1000
    and lambda must be smaller than 740.
     N/A N/A lam 740 N/A N/A N/A cdf 0 N/A cdf 1 N/A N/A N/A Exception CDF must >= 0 and <= 1 N/A N/A N/A cdf 0 N/A N/A 0 N/A sum2 0 N/A newval N/A exp N/A lam N/A sum2 newval N/A i N/A xrange 1 N/A maximum 1 N/A N/A sumold sum2 N/A last newval N/A newval N/A N/A last lam i N/A sum2 N/A sum2 newval N/A N/A N/A sumold cdf N/A cdf sum2 N/A N/A i N/A maximum N/A poisson_pdf N/A N/A k a N/A N/A N/A Poisson PDF.

    PDF(K,A) is the probability that the number of events observed in
    a unit time period will be K, given the expected number of events
    in a unit time.
     N/A N/A a 0 N/A N/A 0 N/A N/A N/A N/A exp N/A a N/A pow a k N/A factorial k N/A binomial_coef N/A N/A n k N/A N/A N/A BINOMIAL_COEF computes the Binomial coefficient C(N,K)

    n,k are integers.
     N/A mn N/A min k N/A n k N/A N/A mn 0 N/A N/A 0 N/A N/A N/A mn 0 N/A N/A 1 N/A N/A mx N/A max k N/A n k N/A cnk N/A float N/A mx 1 N/A i N/A xrange 2 N/A mn 1 N/A N/A cnk N/A N/A cnk N/A mx i i N/A cnk N/A binomial_cdf N/A N/A x a b lower N/A True N/A N/A  BINOMIAL_CDF compute the binomial CDF.

    CDF(x)(A,B) is the probability of at most X successes in A trials,
    given that the probability of success on a single trial is B.
     N/A lower N/A N/A N/A _binomial_cdf_f x a b N/A N/A N/A _binomial_cdf_r x a b N/A _binomial_cdf_r N/A N/A x a b N/A N/A N/A N/A x 0 N/A N/A 1 N/A N/A N/A a x N/A N/A 0 N/A N/A N/A b 0 N/A N/A 0 N/A N/A N/A b 1 N/A N/A 1 N/A N/A argmax N/A int N/A a b N/A N/A x argmax N/A N/A seedpdf N/A binomial_pdf argmax a b N/A pdf seedpdf N/A cdf pdf N/A i N/A xrange N/A argmax 1 x -1 N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A pdf seedpdf N/A i argmax N/A True N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A i 1 N/A cdf N/A min 1 cdf N/A cdf N/A float N/A %.10e cdf N/A cdf N/A N/A pdf N/A binomial_pdf N/A x 1 a b N/A cdf pdf N/A i N/A x 1 N/A True N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A i 1 N/A cdf N/A min 1 cdf N/A cdf N/A float N/A %.10e cdf N/A cdf N/A _binomial_cdf_f N/A N/A x a b N/A N/A N/A N/A x 0 N/A N/A 0 N/A N/A N/A a x N/A N/A 1 N/A N/A N/A b 0 N/A N/A 1 N/A N/A N/A b 1 N/A N/A 0 N/A N/A argmax N/A int N/A a b N/A N/A x argmax N/A N/A seedpdf N/A binomial_pdf argmax a b N/A pdf seedpdf N/A cdf pdf N/A i N/A xrange N/A argmax 1 -1 -1 N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A pdf seedpdf N/A i N/A xrange argmax x N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A cdf N/A min 1 cdf N/A cdf N/A float N/A %.10e cdf N/A cdf N/A N/A pdf N/A binomial_pdf x a b N/A cdf pdf N/A i N/A xrange N/A x 1 -1 -1 N/A N/A pdf N/A N/A N/A N/A a i b N/A 1 b N/A i 1 N/A N/A pdf 0.0 N/A N/A N/A cdf pdf N/A cdf N/A min 1 cdf N/A cdf N/A float N/A %.10e cdf N/A cdf N/A binomial_cdf_inv N/A N/A cdf a b N/A N/A N/A BINOMIAL_CDF_INV inverts the binomial CDF.

     N/A N/A N/A cdf 0 N/A cdf 1 N/A N/A N/A Exception CDF must >= 0 or <= 1 N/A cdf2 0 N/A a N/A int a N/A x N/A xrange 0 N/A a 1 N/A N/A pdf N/A binomial_pdf x a b N/A cdf2 N/A cdf2 pdf N/A N/A cdf cdf2 N/A N/A x N/A x N/A binomial_pdf N/A N/A x a b N/A N/A N/A binomial PDF by H. Gene Shin
    
     N/A N/A a 1 N/A N/A 0 N/A N/A N/A N/A x 0 N/A a x N/A N/A 0 N/A N/A N/A b 0 N/A N/A N/A x 0 N/A N/A 1 N/A N/A 0 N/A N/A N/A b 1 N/A N/A N/A x a N/A N/A 1 N/A N/A 0 N/A N/A N/A x N/A a x N/A N/A p N/A 1 b N/A mn N/A a x N/A mx x N/A N/A p b N/A mn x N/A mx N/A a x N/A pdf 1 N/A t 0 N/A q N/A xrange 1 N/A mn 1 N/A N/A pdf N/A N/A N/A N/A a q 1 p N/A N/A mn q 1 N/A N/A pdf 1e-100 N/A N/A N/A pdf 0.001 N/A N/A pdf N/A 1 p N/A t 1 N/A N/A pdf 1e+100 N/A N/A N/A N/A pdf 1000.0 N/A t mx N/A N/A pdf N/A 1 p N/A t 1 N/A i N/A xrange N/A mx t N/A N/A pdf N/A 1 p N/A pdf N/A float N/A %.10e pdf N/A pdf N/A facotrial N/A N/A n N/A N/A N/A N!.
    
     N/A N/A n 0 N/A N/A 0 N/A fact 1 N/A i N/A xrange 2 N/A n 1 N/A N/A fact N/A fact i N/A fact N/A test N/A N/A N/A N/A N/A N/A 1 N/A binomial_cdf 11679 12988 0.177023 N/A N/A N/A __name__ __main__ N/A N/A N/A test