Can we compute the Gaussian tail quickly with decent precision? (Former "Is this logistic approximation to the Gaussian integral valid?")
Import du
Cette question était classée sans réponse par le forum à la collecte. Cela ne certifie pas qu’elle est un problème ouvert de recherche ; consultez les réponses et l’historique de la source.
Les énoncés et les résumés sont en anglais. Les repères ci-dessous et les articles Wikipédia disponibles en français vous aident à les lire. La source permet de retrouver la formulation complète et les discussions.
Énoncé du problème (anglais)
The original text is below. I suggest the following edit and reopening:
In some practical applications there is a need to evaluate the antiderivative for the Gaussian function on the line quickly while super-duper precision is not required. What is the quickest algorithm you can suggest for that purpose that would work for any value of the argument and give some decent accuracy?
The following code snippet can be used to compute the Gaussian tail , where
Erf(x)=\frac 2{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt $$ is the standard error function, on $[0,+\infty)$ so that the relative error for the proposed $g(x)\approx G(x)$ is under 1% on the entire positive semi-axis. You still need to reflect to get the values for negative $x$ after that, which can be viewed as a slight drawback. The snippet uses 1 exponentiation, 11 multiplications/divisions, and 6 additions/subtraction for the main routine. ```text real q=1/2/pi, qq=1-q, r=(pi^2-1)/(2*pi)/sqrt(pi), s=sqrt(pi), t=3/pi; real g(real x) { real y=x*x, w=exp(y/3), ww=w*w, www=w*ww; return 1/(qq-r*x+1.3*(ww-1/www-t*y)+(s*x+q)*www); } ``` Can one do better in terms of speed, accuracy, or both? I believe that reaching the accuracy of 0.1% on the entire (semi-)axis without sacrificing the speed significantly may be quite challenging, but I'll be happy to be proved wrong. If you find this reformulation interesting enough, please, vote to reopen. If you can improve it even further, don't hesitate to edit. Fedja The original text: I have worked on an empirical approximation of the primitive of the Gaussian function using the logistic function framework. I noticed that the graph of the Gaussian integral (i.e., the cumulative distribution function of the standard normal distribution) has a shape similar to a logistic sigmoid. Based on this, I hypothesized that it might be possible to approximate the Gaussian primitive using a logistic-type function of the form:F(x) \approx \frac{\sqrt{\pi}}{1 + e^{-r(x)}}
r(x) \approx \frac{\sqrt{\pi}}{3} x^3 - \frac{4}{\sqrt{\pi}} x
F(x) \approx \frac{\sqrt{\pi}}{1 + e^{- \left( \frac{\sqrt{\pi}}{3} x^3 - \frac{4}{\sqrt{\pi}} x \right)}}
\int_{-\infty}^{x} e^{-t^2} dt
\Phi_L(x) = \frac{1}{1 + e^{- \left( \frac{\sqrt{\pi}}{6\sqrt{2}} x^3 - \frac{4}{\sqrt{2\pi}} x \right)}}
\text{erf}_L(x) = 2\Phi_L(x) - 1
This approximation was obtained using tables of the standard normal distribution and a change of variable, followed by empirical regression of the function $r(x)$. The regression gave $R^2 = 1$, suggesting a strong fit. My questions are: - Is this type of approximation known in the literature? - Is there a theoretical justification for why the Gaussian primitive resembles a logistic sigmoid? - Are there limitations I should be aware of (e.g., outside of $x \in [-3, 3]$)? I would be grateful for any mathematical feedback, criticism, or suggestions for improvement. Thank you! — Binyegui Meyanga Amos HermannÉnoncé et contexte adaptés de MathOverflow · Hermann
CC BY-SA 4.0 · Mise en forme adaptée ; formules conservées · Historique de la source
Repères pour comprendre
- Graphe
- Un ensemble de sommets reliés par des arêtes. Le degré d’un sommet compte les arêtes qui le touchent ; l’énoncé précise si le graphe est orienté ou autorise des arêtes multiples.
Sources et statut d’origine
- MathOverflow Statut dans la source : unanswered at collection
Dernière activité sur la question :
Couverture, sources et méthode
Ce compteur mesure les fiches importées, y compris des variantes distinctes. Il ne mesure pas le nombre total de questions mathématiques ouvertes dans le monde. Une même fiche peut appartenir à plusieurs domaines et sources.
Le répertoire n’est ni exhaustif ni actualisé en temps réel. « Signalé ouvert » décrit le classement observé dans la source à la date d’import ; chaque fiche importée n’a pas fait l’objet d’une vérification scientifique indépendante. Les 32 fiches expliquées ont été examinées séparément.
Formal Conjectures : seuls les énoncés « research open » sans preuve formelle signalée sont retenus ; leur balise est contrôlée dans une version précise du dépôt. Les variantes restent distinctes. Un « sorry » ne suffit pas à établir qu’un problème est ouvert.
Erdős : les problèmes résolus, indépendants ou accompagnés d’une solution Lean sont exclus, y compris « open (Lean) ». Les correspondances exactes avec les énoncés principaux de Formal Conjectures sont fusionnées.
Open Problem Garden : l’index des problèmes ouverts est croisé avec celui des résolus ; le spam, les clones identifiés et certains statuts obsolètes sont écartés. Les énoncés et leurs définitions sont attribués aux pages originales ; les formules sont conservées et le contenu reste sous GFDL. Les doublons reconnus entre sources sont regroupés, sans prétendre résoudre toutes les équivalences mathématiques.
OEIS : extraction directe des commentaires et formules conjecturaux, une fiche par suite, avec exclusion des résolutions mentionnées. MathOverflow et Math Stack Exchange : questions classées sans réponse par leur API, hors publications fermées et rubriques non scientifiques. Ces questions restent distinctes des conjectures signalées ouvertes. La collecte est partielle et datée ; les auteurs et licences figurent sur chaque fiche.
Des exclusions documentées tiennent compte des annonces récentes et des conflits de statut. Une variante plus forte ou un cas particulier peut rester ouvert après la résolution d’un autre énoncé.
Attribution : The Formal Conjectures Authors ; teorth/erdosproblems et ses contributeurs ; Open Problem Garden et ses contributeurs. Chaque source conserve sa licence.
- Formal Conjectures · 1 924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18 857 · CC BY-SA 4.0
- MathOverflow · 19 035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)