Skip to content

EstebanMqz/Inv.Transform-and-Rejection-Sampling

 
 

Repository files navigation

Inverse Transform & Rejection Sampling

Tools:
Actions: Repo-Visualization-Badge
Main Text-Editor: VSCode-Badge Jupyter-Badge
Language: Python-Badge LaTeX-Badge Markdown-Badge yaml-Badge
Libraries:Numpy-BadgePandas-Badge Scipy-Badge Matplotlib-Badge
Web-Interface: React-Badge
Version Control: GitHub-Badge Git-Badge

Git-Commads

License: License: MIT

Repo Visualization:

Repository Jupyter



Description

Contact:

Website LinkedIn Portfolio E-mail

GitHub Logo Github

MarcoSC08

Results:
  1. $f_1(x)$ over validation function $t_1(x)$ with scipy optimize.fmin.

f1_t1



(see nbviewer in Repo Visualization 2-3)

  1. Maximization arg max. in LaTeX

  2. Inverse Transform Method in LaTeX.

  3. Inverse Transform Method with matplotlib.

IT

  1. Acceptance-Rejection Method within $f_1(x)$ over $t_1(x)$.

ARf1_t1

Rejected values $\approx$ 0.256

  1. Acceptance-Rejection Method of $f_1(x)$ over $t_2(x)$.

ARf1_t2

Rejected values $\approx$ 0.486

  1. Acceptance-Rejection Method of $f_2(x)$ over $t_1(x)$ and $f_2(x)$ over $t_3(x)$.

ARf2_t1

Rejected values $\approx$ 0.446

ARf2_t3

Rejected values $\approx$ 0.506

Considerations:
  • Rejection sampling can be used with given/unknown functions $f(x)$ with its densities modelled by KDEs or other methods.
  • Proposing $t(x)$ can be hard.
References:

Releases

No releases published

Packages

No packages published

Languages

  • HTML 66.9%
  • Jupyter Notebook 33.1%