Is there a way to find $min), :c in mathbbR$?Computation of $mathbbE[min(U+W,V+W)]$is this solution correct about joint distribution?Find CDF of $Z:=minX,Y$Show that two random variables are independentMax(min()) random variable problemIs there a way to find $minE$Let $X$ and $Y$ be independent random variables. Find $ mathbb P max(X, Y) - min(X, Y) gt 0.2 $.Finding $mathbbEleft(g left(min(X,c) right)right)$, where $g(X) simexp(1)$ and $c$ : constant.Finding the moment generating function of $min(Y,1)$Find $E(textmin(X_1,X_2,X_3))$ where each $X_i$ is exponential with parameter $i$

What are the rules for concealing thieves' tools (or items in general)?

PTIJ: Which Dr. Seuss books should one obtain?

Error in master's thesis, I do not know what to do

Why is "la Gestapo" feminine?

How can a new country break out from a developed country without war?

UK Tourist Visa- Enquiry

Is xar preinstalled on macOS?

What is it called when someone votes for an option that's not their first choice?

How to read string as hex number in bash?

Difficulty understanding group delay concept

What (if any) is the reason to buy in small local stores?

Why is participating in the European Parliamentary elections used as a threat?

Exposing a company lying about themselves in a tightly knit industry: Is my career at risk on the long run?

Animating wave motion in water

What will the Frenchman say?

CLI: Get information Ubuntu releases

TDE Master Key Rotation

Is a square zero matrix positive semidefinite?

Isn't the word "experience" wrongly used in this context?

How to remove space in section title at KOMA-Script

How to test the sharpness of a knife?

When should a starting writer get his own webpage?

Justification failure in beamer enumerate list

Did Nintendo change its mind about 68000 SNES?



Is there a way to find $minX-c$?


Computation of $mathbbE[min(U+W,V+W)]$is this solution correct about joint distribution?Find CDF of $Z:=minX,Y$Show that two random variables are independentMax(min()) random variable problemIs there a way to find $minX-c$Let $X$ and $Y$ be independent random variables. Find $ mathbb P max(X, Y) - min(X, Y) gt 0.2 $.Finding $mathbbEleft(g left(min(X,c) right)right)$, where $g(X) simexp(1)$ and $c$ : constant.Finding the moment generating function of $min(Y,1)$Find $E(textmin(X_1,X_2,X_3))$ where each $X_i$ is exponential with parameter $i$













3












$begingroup$


Suppose X is a random variable, such that $F(t) := P(X < t) in C(mathbbR)$. Is there a way to find $minX-c$? Here $m$ stands for median.



I know the solutions for two particular cases: (and they both use a similar method):



If $X sim U[a, b]$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c + t < a\
0 & quad textif c - t > b\
frac2tb - a & quad textif a < c - t < c + t < b\
fracc + t - ab - a & quad textif c - t < a < c + t < b\
1 & quad textif c - t < a < b < c + t\
fracb - c + tb - a & quad textif a < c - t < b < c + t
endcases
$$

That results in $$m(|X-c|) = begincases
fracb + a2 - c & quad textif c < frac3a + b4\
fracb - a4 & quad textif c in [frac3a + b4; fraca+3b4]\
c - fraca + b2 & quad textif c > fraca+3b4 endcases$$

And that means, that $minX-c = fracb - a4$.



If $X sim Exp(lambda)$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c < -t\
1 - e^-lambda(c + t)) & quad textif c in [-t; t]\
2e^-lambda csinh(lambda t) & quad textif c > t endcases
$$

That results in $$m(|X-c|) = begincases
fracln2lambda - c & quad textif c < fracln22lambda\
fracarsinh(frace^lambda c4)lambda & quad textif c > fracln22lambda endcases$$

And that means, that $minX-c = fracln22lambda$



However, I failed to apply this method to the general case.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
    $endgroup$
    – antkam
    Mar 13 at 14:34










  • $begingroup$
    @antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:07










  • $begingroup$
    oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
    $endgroup$
    – antkam
    Mar 13 at 17:18











  • $begingroup$
    Unless... do you mean you are minimizing $median(|X-c|)$?
    $endgroup$
    – antkam
    Mar 13 at 17:19






  • 1




    $begingroup$
    @antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:54
















3












$begingroup$


Suppose X is a random variable, such that $F(t) := P(X < t) in C(mathbbR)$. Is there a way to find $minX-c$? Here $m$ stands for median.



I know the solutions for two particular cases: (and they both use a similar method):



If $X sim U[a, b]$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c + t < a\
0 & quad textif c - t > b\
frac2tb - a & quad textif a < c - t < c + t < b\
fracc + t - ab - a & quad textif c - t < a < c + t < b\
1 & quad textif c - t < a < b < c + t\
fracb - c + tb - a & quad textif a < c - t < b < c + t
endcases
$$

That results in $$m(|X-c|) = begincases
fracb + a2 - c & quad textif c < frac3a + b4\
fracb - a4 & quad textif c in [frac3a + b4; fraca+3b4]\
c - fraca + b2 & quad textif c > fraca+3b4 endcases$$

And that means, that $minX-c = fracb - a4$.



If $X sim Exp(lambda)$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c < -t\
1 - e^-lambda(c + t)) & quad textif c in [-t; t]\
2e^-lambda csinh(lambda t) & quad textif c > t endcases
$$

That results in $$m(|X-c|) = begincases
fracln2lambda - c & quad textif c < fracln22lambda\
fracarsinh(frace^lambda c4)lambda & quad textif c > fracln22lambda endcases$$

And that means, that $minX-c = fracln22lambda$



However, I failed to apply this method to the general case.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
    $endgroup$
    – antkam
    Mar 13 at 14:34










  • $begingroup$
    @antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:07










  • $begingroup$
    oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
    $endgroup$
    – antkam
    Mar 13 at 17:18











  • $begingroup$
    Unless... do you mean you are minimizing $median(|X-c|)$?
    $endgroup$
    – antkam
    Mar 13 at 17:19






  • 1




    $begingroup$
    @antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:54














3












3








3


0



$begingroup$


Suppose X is a random variable, such that $F(t) := P(X < t) in C(mathbbR)$. Is there a way to find $minX-c$? Here $m$ stands for median.



I know the solutions for two particular cases: (and they both use a similar method):



If $X sim U[a, b]$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c + t < a\
0 & quad textif c - t > b\
frac2tb - a & quad textif a < c - t < c + t < b\
fracc + t - ab - a & quad textif c - t < a < c + t < b\
1 & quad textif c - t < a < b < c + t\
fracb - c + tb - a & quad textif a < c - t < b < c + t
endcases
$$

That results in $$m(|X-c|) = begincases
fracb + a2 - c & quad textif c < frac3a + b4\
fracb - a4 & quad textif c in [frac3a + b4; fraca+3b4]\
c - fraca + b2 & quad textif c > fraca+3b4 endcases$$

And that means, that $minX-c = fracb - a4$.



If $X sim Exp(lambda)$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c < -t\
1 - e^-lambda(c + t)) & quad textif c in [-t; t]\
2e^-lambda csinh(lambda t) & quad textif c > t endcases
$$

That results in $$m(|X-c|) = begincases
fracln2lambda - c & quad textif c < fracln22lambda\
fracarsinh(frace^lambda c4)lambda & quad textif c > fracln22lambda endcases$$

And that means, that $minX-c = fracln22lambda$



However, I failed to apply this method to the general case.










share|cite|improve this question











$endgroup$




Suppose X is a random variable, such that $F(t) := P(X < t) in C(mathbbR)$. Is there a way to find $minX-c$? Here $m$ stands for median.



I know the solutions for two particular cases: (and they both use a similar method):



If $X sim U[a, b]$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c + t < a\
0 & quad textif c - t > b\
frac2tb - a & quad textif a < c - t < c + t < b\
fracc + t - ab - a & quad textif c - t < a < c + t < b\
1 & quad textif c - t < a < b < c + t\
fracb - c + tb - a & quad textif a < c - t < b < c + t
endcases
$$

That results in $$m(|X-c|) = begincases
fracb + a2 - c & quad textif c < frac3a + b4\
fracb - a4 & quad textif c in [frac3a + b4; fraca+3b4]\
c - fraca + b2 & quad textif c > fraca+3b4 endcases$$

And that means, that $minX-c = fracb - a4$.



If $X sim Exp(lambda)$, then $$P(|X - c| < t) = P(c - t < X < c + t) =
begincases
0 & quad textif c < -t\
1 - e^-lambda(c + t)) & quad textif c in [-t; t]\
2e^-lambda csinh(lambda t) & quad textif c > t endcases
$$

That results in $$m(|X-c|) = begincases
fracln2lambda - c & quad textif c < fracln22lambda\
fracarsinh(frace^lambda c4)lambda & quad textif c > fracln22lambda endcases$$

And that means, that $minX-c = fracln22lambda$



However, I failed to apply this method to the general case.







probability probability-theory optimization median






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 13 at 19:11







Yanior Weg

















asked Mar 13 at 7:43









Yanior WegYanior Weg

2,52911246




2,52911246







  • 1




    $begingroup$
    I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
    $endgroup$
    – antkam
    Mar 13 at 14:34










  • $begingroup$
    @antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:07










  • $begingroup$
    oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
    $endgroup$
    – antkam
    Mar 13 at 17:18











  • $begingroup$
    Unless... do you mean you are minimizing $median(|X-c|)$?
    $endgroup$
    – antkam
    Mar 13 at 17:19






  • 1




    $begingroup$
    @antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:54













  • 1




    $begingroup$
    I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
    $endgroup$
    – antkam
    Mar 13 at 14:34










  • $begingroup$
    @antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:07










  • $begingroup$
    oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
    $endgroup$
    – antkam
    Mar 13 at 17:18











  • $begingroup$
    Unless... do you mean you are minimizing $median(|X-c|)$?
    $endgroup$
    – antkam
    Mar 13 at 17:19






  • 1




    $begingroup$
    @antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
    $endgroup$
    – Yanior Weg
    Mar 13 at 17:54








1




1




$begingroup$
I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
$endgroup$
– antkam
Mar 13 at 14:34




$begingroup$
I must be missing something basic: $X$ is an random variable, so for any choice of $c$ we have $Y_c = m|X-c|$ which is also a random variable. What exactly are you minimizing? $E[Y_c]$?
$endgroup$
– antkam
Mar 13 at 14:34












$begingroup$
@antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
$endgroup$
– Yanior Weg
Mar 13 at 17:07




$begingroup$
@antkam, in this question, $m(X)$ is such a real number $t$, that $P(X < t) = frac12$. If I am not mistaken, that is the definition of the median of a continuous random variable.
$endgroup$
– Yanior Weg
Mar 13 at 17:07












$begingroup$
oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
$endgroup$
– antkam
Mar 13 at 17:18





$begingroup$
oh, haha, I thought $m|X-c|$ the vertical bars are absolute value. :) So you mean you are minimizing the $median(X-c)$? But that doesn't make sense either as $median(X-c) = median(X) - c$ as it's just shifting the horizontal axis...
$endgroup$
– antkam
Mar 13 at 17:18













$begingroup$
Unless... do you mean you are minimizing $median(|X-c|)$?
$endgroup$
– antkam
Mar 13 at 17:19




$begingroup$
Unless... do you mean you are minimizing $median(|X-c|)$?
$endgroup$
– antkam
Mar 13 at 17:19




1




1




$begingroup$
@antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
$endgroup$
– Yanior Weg
Mar 13 at 17:54





$begingroup$
@antkam, yes, I mean $median(|X -c|)$. The vertical bars actually stand for absolute value.
$endgroup$
– Yanior Weg
Mar 13 at 17:54











1 Answer
1






active

oldest

votes


















1












$begingroup$

Not a full solution but an idea that gives useful shortcuts (sometimes).



Imagine the PDF of $X$ as a picture. The the PDF of $X-c$ is of course just shifting, and $|X-c|$ is then folding around $c$.



What is $median(|X-c|)$? Since $|X-c|$ has a definite lower bound at $0$, the median is just the point $m>0$ where the CDF of $|X-c|$ reaches exactly $P(|X-c| < m) = 1/2$. If you "unfold" the picture, this corresponds to points $-m, m$ where:



$$P(-m < X-c < m) = 1/2 = P(c-m < X < c+m)$$



Think of your optimization as running over all $c, m$ values, but subject to the constraint above, and your objective is minimize $m$.



But this is equivalent to minimizing $b-a over 2$ over all possible $a,b$ values, constrained by:



$$P(a < X < b) = 1/2 = CDF(b) - CDF(a)$$



So generically, you can do this: For every $a$, define $B(a)$ to be the value $b$ s.t. $CDF(b) - CDF(a) = 1/2$. Then you find the $a$ which minimizes $B(a)-a over 2$.



However, graphically this view gives you some possibility for shortcuts. You're trying to find a range $(a,b)$, as narrow as possible, which still contains $1/2$ of the probability. So you look at the PDF and in many well-known cases the solution is visually obvious. E.g.



  • For $X sim U[a,b]$ it is obvious that any range of width $w = b-a over 2$ which is entirely $subset [a,b]$ will do. So your minimal $m = w over 2 = b - a over 4$ and you actually have a choice of $c$ from the 25% to the 75% point.


  • For $X sim Exp(lambda)$ the PDF is strictly decreasing, so the optimal range must be at the front, i.e. of the form $(0,b)$. You also need $CDF(b) - CDF(0) = CDF(b) = 1/2$, so $b = median(X)$. From wikipedia :) we have $median(X) = ln 2 over lambda$, so your minimal $m = b - 0 over 2 = ln 2 over 2 lambda$


  • For any $X$ whose PDF is symmetric about its mean, and which decreases monotonically away from the mean, first shift it to zero-mean, then by symmetry your optimal range is $(-z, z)$ which contains $1/2$ of the probability. So you look up $z = CDF^-1(3/4)$. In case of $N(0,1)$ you can look this up easily. In case of a triangle or a trapezoid, you do a bit of geometry.


Many "common" PDFs have a single peak and decays on both sides, so the optimal range must include that. Many also have symmetry. Whether there are closed form solutions will depend on the math details but at least you now know where to look. Hope this helps!






share|cite|improve this answer











$endgroup$












    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "69"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3146231%2fis-there-a-way-to-find-min-mx-c-c-in-mathbbr%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    Not a full solution but an idea that gives useful shortcuts (sometimes).



    Imagine the PDF of $X$ as a picture. The the PDF of $X-c$ is of course just shifting, and $|X-c|$ is then folding around $c$.



    What is $median(|X-c|)$? Since $|X-c|$ has a definite lower bound at $0$, the median is just the point $m>0$ where the CDF of $|X-c|$ reaches exactly $P(|X-c| < m) = 1/2$. If you "unfold" the picture, this corresponds to points $-m, m$ where:



    $$P(-m < X-c < m) = 1/2 = P(c-m < X < c+m)$$



    Think of your optimization as running over all $c, m$ values, but subject to the constraint above, and your objective is minimize $m$.



    But this is equivalent to minimizing $b-a over 2$ over all possible $a,b$ values, constrained by:



    $$P(a < X < b) = 1/2 = CDF(b) - CDF(a)$$



    So generically, you can do this: For every $a$, define $B(a)$ to be the value $b$ s.t. $CDF(b) - CDF(a) = 1/2$. Then you find the $a$ which minimizes $B(a)-a over 2$.



    However, graphically this view gives you some possibility for shortcuts. You're trying to find a range $(a,b)$, as narrow as possible, which still contains $1/2$ of the probability. So you look at the PDF and in many well-known cases the solution is visually obvious. E.g.



    • For $X sim U[a,b]$ it is obvious that any range of width $w = b-a over 2$ which is entirely $subset [a,b]$ will do. So your minimal $m = w over 2 = b - a over 4$ and you actually have a choice of $c$ from the 25% to the 75% point.


    • For $X sim Exp(lambda)$ the PDF is strictly decreasing, so the optimal range must be at the front, i.e. of the form $(0,b)$. You also need $CDF(b) - CDF(0) = CDF(b) = 1/2$, so $b = median(X)$. From wikipedia :) we have $median(X) = ln 2 over lambda$, so your minimal $m = b - 0 over 2 = ln 2 over 2 lambda$


    • For any $X$ whose PDF is symmetric about its mean, and which decreases monotonically away from the mean, first shift it to zero-mean, then by symmetry your optimal range is $(-z, z)$ which contains $1/2$ of the probability. So you look up $z = CDF^-1(3/4)$. In case of $N(0,1)$ you can look this up easily. In case of a triangle or a trapezoid, you do a bit of geometry.


    Many "common" PDFs have a single peak and decays on both sides, so the optimal range must include that. Many also have symmetry. Whether there are closed form solutions will depend on the math details but at least you now know where to look. Hope this helps!






    share|cite|improve this answer











    $endgroup$

















      1












      $begingroup$

      Not a full solution but an idea that gives useful shortcuts (sometimes).



      Imagine the PDF of $X$ as a picture. The the PDF of $X-c$ is of course just shifting, and $|X-c|$ is then folding around $c$.



      What is $median(|X-c|)$? Since $|X-c|$ has a definite lower bound at $0$, the median is just the point $m>0$ where the CDF of $|X-c|$ reaches exactly $P(|X-c| < m) = 1/2$. If you "unfold" the picture, this corresponds to points $-m, m$ where:



      $$P(-m < X-c < m) = 1/2 = P(c-m < X < c+m)$$



      Think of your optimization as running over all $c, m$ values, but subject to the constraint above, and your objective is minimize $m$.



      But this is equivalent to minimizing $b-a over 2$ over all possible $a,b$ values, constrained by:



      $$P(a < X < b) = 1/2 = CDF(b) - CDF(a)$$



      So generically, you can do this: For every $a$, define $B(a)$ to be the value $b$ s.t. $CDF(b) - CDF(a) = 1/2$. Then you find the $a$ which minimizes $B(a)-a over 2$.



      However, graphically this view gives you some possibility for shortcuts. You're trying to find a range $(a,b)$, as narrow as possible, which still contains $1/2$ of the probability. So you look at the PDF and in many well-known cases the solution is visually obvious. E.g.



      • For $X sim U[a,b]$ it is obvious that any range of width $w = b-a over 2$ which is entirely $subset [a,b]$ will do. So your minimal $m = w over 2 = b - a over 4$ and you actually have a choice of $c$ from the 25% to the 75% point.


      • For $X sim Exp(lambda)$ the PDF is strictly decreasing, so the optimal range must be at the front, i.e. of the form $(0,b)$. You also need $CDF(b) - CDF(0) = CDF(b) = 1/2$, so $b = median(X)$. From wikipedia :) we have $median(X) = ln 2 over lambda$, so your minimal $m = b - 0 over 2 = ln 2 over 2 lambda$


      • For any $X$ whose PDF is symmetric about its mean, and which decreases monotonically away from the mean, first shift it to zero-mean, then by symmetry your optimal range is $(-z, z)$ which contains $1/2$ of the probability. So you look up $z = CDF^-1(3/4)$. In case of $N(0,1)$ you can look this up easily. In case of a triangle or a trapezoid, you do a bit of geometry.


      Many "common" PDFs have a single peak and decays on both sides, so the optimal range must include that. Many also have symmetry. Whether there are closed form solutions will depend on the math details but at least you now know where to look. Hope this helps!






      share|cite|improve this answer











      $endgroup$















        1












        1








        1





        $begingroup$

        Not a full solution but an idea that gives useful shortcuts (sometimes).



        Imagine the PDF of $X$ as a picture. The the PDF of $X-c$ is of course just shifting, and $|X-c|$ is then folding around $c$.



        What is $median(|X-c|)$? Since $|X-c|$ has a definite lower bound at $0$, the median is just the point $m>0$ where the CDF of $|X-c|$ reaches exactly $P(|X-c| < m) = 1/2$. If you "unfold" the picture, this corresponds to points $-m, m$ where:



        $$P(-m < X-c < m) = 1/2 = P(c-m < X < c+m)$$



        Think of your optimization as running over all $c, m$ values, but subject to the constraint above, and your objective is minimize $m$.



        But this is equivalent to minimizing $b-a over 2$ over all possible $a,b$ values, constrained by:



        $$P(a < X < b) = 1/2 = CDF(b) - CDF(a)$$



        So generically, you can do this: For every $a$, define $B(a)$ to be the value $b$ s.t. $CDF(b) - CDF(a) = 1/2$. Then you find the $a$ which minimizes $B(a)-a over 2$.



        However, graphically this view gives you some possibility for shortcuts. You're trying to find a range $(a,b)$, as narrow as possible, which still contains $1/2$ of the probability. So you look at the PDF and in many well-known cases the solution is visually obvious. E.g.



        • For $X sim U[a,b]$ it is obvious that any range of width $w = b-a over 2$ which is entirely $subset [a,b]$ will do. So your minimal $m = w over 2 = b - a over 4$ and you actually have a choice of $c$ from the 25% to the 75% point.


        • For $X sim Exp(lambda)$ the PDF is strictly decreasing, so the optimal range must be at the front, i.e. of the form $(0,b)$. You also need $CDF(b) - CDF(0) = CDF(b) = 1/2$, so $b = median(X)$. From wikipedia :) we have $median(X) = ln 2 over lambda$, so your minimal $m = b - 0 over 2 = ln 2 over 2 lambda$


        • For any $X$ whose PDF is symmetric about its mean, and which decreases monotonically away from the mean, first shift it to zero-mean, then by symmetry your optimal range is $(-z, z)$ which contains $1/2$ of the probability. So you look up $z = CDF^-1(3/4)$. In case of $N(0,1)$ you can look this up easily. In case of a triangle or a trapezoid, you do a bit of geometry.


        Many "common" PDFs have a single peak and decays on both sides, so the optimal range must include that. Many also have symmetry. Whether there are closed form solutions will depend on the math details but at least you now know where to look. Hope this helps!






        share|cite|improve this answer











        $endgroup$



        Not a full solution but an idea that gives useful shortcuts (sometimes).



        Imagine the PDF of $X$ as a picture. The the PDF of $X-c$ is of course just shifting, and $|X-c|$ is then folding around $c$.



        What is $median(|X-c|)$? Since $|X-c|$ has a definite lower bound at $0$, the median is just the point $m>0$ where the CDF of $|X-c|$ reaches exactly $P(|X-c| < m) = 1/2$. If you "unfold" the picture, this corresponds to points $-m, m$ where:



        $$P(-m < X-c < m) = 1/2 = P(c-m < X < c+m)$$



        Think of your optimization as running over all $c, m$ values, but subject to the constraint above, and your objective is minimize $m$.



        But this is equivalent to minimizing $b-a over 2$ over all possible $a,b$ values, constrained by:



        $$P(a < X < b) = 1/2 = CDF(b) - CDF(a)$$



        So generically, you can do this: For every $a$, define $B(a)$ to be the value $b$ s.t. $CDF(b) - CDF(a) = 1/2$. Then you find the $a$ which minimizes $B(a)-a over 2$.



        However, graphically this view gives you some possibility for shortcuts. You're trying to find a range $(a,b)$, as narrow as possible, which still contains $1/2$ of the probability. So you look at the PDF and in many well-known cases the solution is visually obvious. E.g.



        • For $X sim U[a,b]$ it is obvious that any range of width $w = b-a over 2$ which is entirely $subset [a,b]$ will do. So your minimal $m = w over 2 = b - a over 4$ and you actually have a choice of $c$ from the 25% to the 75% point.


        • For $X sim Exp(lambda)$ the PDF is strictly decreasing, so the optimal range must be at the front, i.e. of the form $(0,b)$. You also need $CDF(b) - CDF(0) = CDF(b) = 1/2$, so $b = median(X)$. From wikipedia :) we have $median(X) = ln 2 over lambda$, so your minimal $m = b - 0 over 2 = ln 2 over 2 lambda$


        • For any $X$ whose PDF is symmetric about its mean, and which decreases monotonically away from the mean, first shift it to zero-mean, then by symmetry your optimal range is $(-z, z)$ which contains $1/2$ of the probability. So you look up $z = CDF^-1(3/4)$. In case of $N(0,1)$ you can look this up easily. In case of a triangle or a trapezoid, you do a bit of geometry.


        Many "common" PDFs have a single peak and decays on both sides, so the optimal range must include that. Many also have symmetry. Whether there are closed form solutions will depend on the math details but at least you now know where to look. Hope this helps!







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Mar 13 at 23:32

























        answered Mar 13 at 19:33









        antkamantkam

        2,172212




        2,172212



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3146231%2fis-there-a-way-to-find-min-mx-c-c-in-mathbbr%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Moe incest case Sentencing See also References Navigation menu"'Australian Josef Fritzl' fathered four children by daughter""Small town recoils in horror at 'Australian Fritzl' incest case""Victorian rape allegations echo Fritzl case - Just In (Australian Broadcasting Corporation)""Incest father jailed for 22 years""'Australian Fritzl' sentenced to 22 years in prison for abusing daughter for three decades""RSJ v The Queen"

            Daza language Contents Vocabulary Phonology References External links Navigation menudaza1242Daza"Dazaga"eeee178086576

            Who is our nearest planetary neighbor, on average?Santa Claus flies to the South PoleSeven Spheres of Unequal Mass, a weighing problem with a twistDescribe a large integerFast Mental Calculation of $7.5^7$Math in Space (without the help of celebrities)Find the value of $bigstar$: Puzzle 8 - InequalityWho drinks beer while running anyway?A Crucial DeliveryRanking And AverageHow long will my money last at roulette?