Skip to content

Table generation repository for: Adaptive truncation of infinite sums: applications to Statistics

Notifications You must be signed in to change notification settings

wellington36/adaptive_truncation_table_generator

Repository files navigation

Adaptive Truncation Table Generator

  • comp_Z_iterations.py, has dependency:
    • utils/utils.py: function logdiffexp;
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/sequential_mp.py: The Sequential approach with brute force and mpmath structure;
    • src/fixed_mp.py: Evaluate a fixed numbers of terms
    • stan/comp_Z_brms_fixed.stan: The COM-Poisson normalising constant by brms with index error corrected and M increased from 10^4 to 10^6;

Run (check if auxiliary libraries are installed):

python comp_Z_iterations.py

image

  • comp_Z_errors.py, has dependency:
    • utils/utils.py: function logdiffexp;
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/sequential_mp.py: The Sequential approach with brute force and mpmath structure;
    • src/fixed_mp.py: Evaluate a fixed numbers of terms
    • stan/comp_Z_brms_fixed.stan: The COM-Poisson normalising constant by brms with index error corrected and M increased from 10^4 to 10^6;

Run (check if auxiliary libraries are installed):

python comp_Z_errors.py

image

  • domination_bp_over_stt.py, has dependency:
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/sum_to_threshold_mp.py: The Sum-to-threshold approach with mpmath structure;

Run:

python domination_bp_over_stt.py

image

  • comp_Z_approx_vs_bounding.py, has dependency:
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/fixed_mp.py: Evaluate a fixed numbers of terms

Run:

python comp_Z_approx_vs_bounding.py

image

  • p_series_iterations.py, has dependency:
    • src/integration_bound_mp.py: The Bounding pairs with integral test approach with mpmath structure;
    • src/sequential_mp.py: The Sequential approach with brute force and mpmath structure;

Run:

python p_series_iterations.py

image

image

  • poisson_factorial_ratio.py, has dependency:
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/sum_to_threshold_mp.py: The Sum-to-threshold approach with mpmath structure;
    • src/fixed_mp.py: Evaluate a fixed numbers of terms

Run:

python poisson_factorial_ratio.py

image

  • negative_binomial_model.py, has dependency:
    • src/bounding_pairs_mp.py: The Bounding pairs approach with mpmath structure;
    • src/sum_to_threshold_mp.py: The Sum-to-threshold approach with mpmath structure;
    • src/fixed_mp.py: Evaluate a fixed numbers of terms

Run:

python negative_binomial_model.py

image

About

Table generation repository for: Adaptive truncation of infinite sums: applications to Statistics

Resources

Stars

Watchers

Forks

Packages

No packages published