# Optimization giving wildly different answers depending on box constraints

**URL:** <https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244>\
**Category:** Optimization (Mathematical)\
**Created:** [February 27, 2020, 5:19pm UTC](https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244 "2020-02-27T17:19:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 27, 2020, 5:33pm UTC](https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244/2 "2020-02-27T17:33:05Z")

</div>

Please don’t start yet another topic about

> [@How to fit a normal distribution to some points in the tail](https://discourse.julialang.org/t/how-to-fit-a-normal-distribution-to-some-points-in-the-tail/35233):
>
> I have some empirical values for the cdf of a distribution which should be close to Normal. These are for x = 1, 2, … , 13. They are as follows: [5.2909066017292616e-17, 2.998035847356917e-15, 2.893916126231429e-12, 2.893916126231429e-12, 5.984024927027287e-11, 9.828060393355409e-10, 1.3065783612939083e-8, 1.4263214765731293e-7, 1.2913225520247604e-6, 9.765050285646565e-6, 6.197926915196307e-5, 0.00033122740938565793, 0.001493228789321792] I would like to find a normal distribution that fits t…

and

> [@How to fit a normal approximation to data in Julia](https://discourse.julialang.org/t/how-to-fit-a-normal-approximation-to-data-in-julia/35045):
>
> I have an unnormalized array of counts for a probability mass function (derived from sampling from the true function). The array should be indexed from 0. 12 is the number of times a 0 occurred in the sample. 199 is the number of times a 1 occurred etc. counts = [12, 199, 3125, 29616, 175426, 662401, 1608671, 2477850, 2441350, 1580290, 709625, 235426, 60899, 12643, 2126, 296, 41, 4, 0, 0] I want to fit a normal approximation to this. My first attempt is to estimate its standard deviation. …

Instead of giving your problem more exposure (as you may expect), it just scatters solutions all over the place.

---

_[View the full topic](https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244)._
