Loading [MathJax]/extensions/tex2jax.js
MRFFL: MR Fortran Finance Library 2024-12-28
Computational Tools For Finance
All Namespaces Files Functions Variables
mrffl_stats.f90 File Reference

Statstical tools supporting MRFFL. More...

Go to the source code of this file.

Modules

module  mrffl_stats
 Some statstical utilities supporting other MRFFL modules.
 

Functions/Subroutines

integer(kind=ik) function, public mrffl_stats::rand_int (upper_bound, optional_lower_bound)
 Return random integer in U([optional_lower_bound,upper_bound)) – optional_lower_bound is 0 if missing.
 
real(kind=rk) function, public mrffl_stats::rand_real (upper_bound, optional_lower_bound)
 Return random real value in U([optional_lower_bound,upper_bound)) – optional_lower_bound is 0 if missing.
 
real(kind=rk) function, public mrffl_stats::resample_tail (data, tail_length)
 Return random value from among the last tail_length elements of data.
 
real(kind=rk) function, public mrffl_stats::resample_head (data, head_length)
 Return random value from among the first head_length elements of data.
 
subroutine, public mrffl_stats::mean_and_variance (mean, variance, data)
 Return mean & variance of elements in an array.
 
real(kind=rk) function, public mrffl_stats::rand_norm_std ()
 Return random value from the standard normal distribution.
 
real(kind=rk) function, public mrffl_stats::rand_norm_std_box ()
 Return random value from the standard normal distribution using the Box-Muller transform.
 
real(kind=rk) function, public mrffl_stats::rand_norm_std_probit_clip ()
 Return random value from the standard normal distribution in [-5.612, 5.612] using the Probit function.
 
real(kind=rk) function, public mrffl_stats::rand_norm_std_probit ()
 Return random value from the standard normal distribution using the Probit function.
 
real(kind=rk) function, public mrffl_stats::rand_norm (mean, variance)
 Return random value from the specified normal distribution.
 
real(kind=rk) function, public mrffl_stats::rand_log_norm (mu, sigma)
 Return random value from the specified log-normal distribution.
 
real(kind=rk) function, public mrffl_stats::probit (p)
 Probit function – i.e.
 
real(kind=rk) function mrffl_stats::poly_eval (p, x)
 Evaluate a univariate polynomial.
 
subroutine, public mrffl_stats::geometric_brownian_motion (step_values, s0, mu, sigma)
 Compute a set of random steps in a GBM process.
 
subroutine, public mrffl_stats::zero_clipped_brownian_motion (step_values, s0, mu, sigma)
 Compute a set of random steps in a zero clipped browinan motion.
 

Detailed Description

Statstical tools supporting MRFFL.

Author
Mitch Richling http://www.mitchr.me/
Date
2024-12-19
Keywords
finance fortran monte carlo inflation cashflow time value of money tvm percentages taxes stock market
Standards
F2023
See also
https://github.com/richmit/FortranFinance

.H.E.!!

Definition in file mrffl_stats.f90.