Probability distribution for smallest angle between 3 lines












2












$begingroup$


I was running a computer simulation to get the distribution of smallest angle between 3 random lines (in $2$D) lying on the unit circle (i.e. lines between the center and the circumference). Explicitly, I draw 3 numbers uniformly in $[0,2pi]$. I define $v_i = (cos{theta_i},sin{theta_i})$, and calculate
$$
dtheta_1 = arccos (v_1cdot v_2)
$$

$$
dtheta_2 = arccos (v_1cdot v_3)
$$

$$
dtheta_3 = arccos (v_2cdot v_3)
$$

I calculate $Theta = min{dtheta_1,dtheta_2,dtheta_3}$. I run this a lot of times to get a distribution:
enter image description here



where the $x$-axis is $Theta$ in radians.
I do not know how exactly to calculate this analytically, but even more importantly I look for intuition. This distribution tells us that the most probable result is that two out of three randomly chosen directions will fall on top of each other. This is counter-intuitive for me. My (obviously wrong) intuition tells me that this should peak around (maybe not exactly) the mean, $frac{pi}{3}$.










share|cite|improve this question











$endgroup$












  • $begingroup$
    so this is a histogram of $Theta$ values right ?
    $endgroup$
    – Ahmad Bazzi
    Jan 9 at 13:13












  • $begingroup$
    @AhmadBazzi Yes
    $endgroup$
    – Joshhh
    Jan 9 at 13:15










  • $begingroup$
    When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
    $endgroup$
    – Accidental Statistician
    Jan 9 at 13:24










  • $begingroup$
    @AccidentalStatistician The latter
    $endgroup$
    – Joshhh
    Jan 9 at 13:29










  • $begingroup$
    You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
    $endgroup$
    – Stockfish
    Jan 9 at 14:06


















2












$begingroup$


I was running a computer simulation to get the distribution of smallest angle between 3 random lines (in $2$D) lying on the unit circle (i.e. lines between the center and the circumference). Explicitly, I draw 3 numbers uniformly in $[0,2pi]$. I define $v_i = (cos{theta_i},sin{theta_i})$, and calculate
$$
dtheta_1 = arccos (v_1cdot v_2)
$$

$$
dtheta_2 = arccos (v_1cdot v_3)
$$

$$
dtheta_3 = arccos (v_2cdot v_3)
$$

I calculate $Theta = min{dtheta_1,dtheta_2,dtheta_3}$. I run this a lot of times to get a distribution:
enter image description here



where the $x$-axis is $Theta$ in radians.
I do not know how exactly to calculate this analytically, but even more importantly I look for intuition. This distribution tells us that the most probable result is that two out of three randomly chosen directions will fall on top of each other. This is counter-intuitive for me. My (obviously wrong) intuition tells me that this should peak around (maybe not exactly) the mean, $frac{pi}{3}$.










share|cite|improve this question











$endgroup$












  • $begingroup$
    so this is a histogram of $Theta$ values right ?
    $endgroup$
    – Ahmad Bazzi
    Jan 9 at 13:13












  • $begingroup$
    @AhmadBazzi Yes
    $endgroup$
    – Joshhh
    Jan 9 at 13:15










  • $begingroup$
    When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
    $endgroup$
    – Accidental Statistician
    Jan 9 at 13:24










  • $begingroup$
    @AccidentalStatistician The latter
    $endgroup$
    – Joshhh
    Jan 9 at 13:29










  • $begingroup$
    You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
    $endgroup$
    – Stockfish
    Jan 9 at 14:06
















2












2








2


1



$begingroup$


I was running a computer simulation to get the distribution of smallest angle between 3 random lines (in $2$D) lying on the unit circle (i.e. lines between the center and the circumference). Explicitly, I draw 3 numbers uniformly in $[0,2pi]$. I define $v_i = (cos{theta_i},sin{theta_i})$, and calculate
$$
dtheta_1 = arccos (v_1cdot v_2)
$$

$$
dtheta_2 = arccos (v_1cdot v_3)
$$

$$
dtheta_3 = arccos (v_2cdot v_3)
$$

I calculate $Theta = min{dtheta_1,dtheta_2,dtheta_3}$. I run this a lot of times to get a distribution:
enter image description here



where the $x$-axis is $Theta$ in radians.
I do not know how exactly to calculate this analytically, but even more importantly I look for intuition. This distribution tells us that the most probable result is that two out of three randomly chosen directions will fall on top of each other. This is counter-intuitive for me. My (obviously wrong) intuition tells me that this should peak around (maybe not exactly) the mean, $frac{pi}{3}$.










share|cite|improve this question











$endgroup$




I was running a computer simulation to get the distribution of smallest angle between 3 random lines (in $2$D) lying on the unit circle (i.e. lines between the center and the circumference). Explicitly, I draw 3 numbers uniformly in $[0,2pi]$. I define $v_i = (cos{theta_i},sin{theta_i})$, and calculate
$$
dtheta_1 = arccos (v_1cdot v_2)
$$

$$
dtheta_2 = arccos (v_1cdot v_3)
$$

$$
dtheta_3 = arccos (v_2cdot v_3)
$$

I calculate $Theta = min{dtheta_1,dtheta_2,dtheta_3}$. I run this a lot of times to get a distribution:
enter image description here



where the $x$-axis is $Theta$ in radians.
I do not know how exactly to calculate this analytically, but even more importantly I look for intuition. This distribution tells us that the most probable result is that two out of three randomly chosen directions will fall on top of each other. This is counter-intuitive for me. My (obviously wrong) intuition tells me that this should peak around (maybe not exactly) the mean, $frac{pi}{3}$.







probability random-variables






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 9 at 13:31







Joshhh

















asked Jan 9 at 12:47









JoshhhJoshhh

1,039411




1,039411












  • $begingroup$
    so this is a histogram of $Theta$ values right ?
    $endgroup$
    – Ahmad Bazzi
    Jan 9 at 13:13












  • $begingroup$
    @AhmadBazzi Yes
    $endgroup$
    – Joshhh
    Jan 9 at 13:15










  • $begingroup$
    When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
    $endgroup$
    – Accidental Statistician
    Jan 9 at 13:24










  • $begingroup$
    @AccidentalStatistician The latter
    $endgroup$
    – Joshhh
    Jan 9 at 13:29










  • $begingroup$
    You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
    $endgroup$
    – Stockfish
    Jan 9 at 14:06




















  • $begingroup$
    so this is a histogram of $Theta$ values right ?
    $endgroup$
    – Ahmad Bazzi
    Jan 9 at 13:13












  • $begingroup$
    @AhmadBazzi Yes
    $endgroup$
    – Joshhh
    Jan 9 at 13:15










  • $begingroup$
    When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
    $endgroup$
    – Accidental Statistician
    Jan 9 at 13:24










  • $begingroup$
    @AccidentalStatistician The latter
    $endgroup$
    – Joshhh
    Jan 9 at 13:29










  • $begingroup$
    You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
    $endgroup$
    – Stockfish
    Jan 9 at 14:06


















$begingroup$
so this is a histogram of $Theta$ values right ?
$endgroup$
– Ahmad Bazzi
Jan 9 at 13:13






$begingroup$
so this is a histogram of $Theta$ values right ?
$endgroup$
– Ahmad Bazzi
Jan 9 at 13:13














$begingroup$
@AhmadBazzi Yes
$endgroup$
– Joshhh
Jan 9 at 13:15




$begingroup$
@AhmadBazzi Yes
$endgroup$
– Joshhh
Jan 9 at 13:15












$begingroup$
When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
$endgroup$
– Accidental Statistician
Jan 9 at 13:24




$begingroup$
When you say "random lines", what are you referring to? Are you referring to the lines connecting your three points, or the lines connecting those points to the centre?
$endgroup$
– Accidental Statistician
Jan 9 at 13:24












$begingroup$
@AccidentalStatistician The latter
$endgroup$
– Joshhh
Jan 9 at 13:29




$begingroup$
@AccidentalStatistician The latter
$endgroup$
– Joshhh
Jan 9 at 13:29












$begingroup$
You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
$endgroup$
– Stockfish
Jan 9 at 14:06






$begingroup$
You could use $cos(x-y) = cos(x) cos(y) + sin(x) sin(y)$ to simplify $dtheta_i$. Then you find that every $dtheta_i$ is following the same triangle distribution after which you can compute the distribution of the minimum by standard means.
$endgroup$
– Stockfish
Jan 9 at 14:06












2 Answers
2






active

oldest

votes


















0












$begingroup$

First of all, we simplify the problem by noticing that the angles $dtheta_k$ are the absolute differences between pairs of the original angles $theta_k$. If we set one of the original angles to be $0$, this is equivalent to cutting a stick of length $2pi$ into three pieces, by making two cuts whose position on the stick is uniformly distributed, and looking at the distribution of the length of the shortest piece.



The total stick length doesn't matter, so this ties into various problems based around randomly breaking a stick into segments. This question might be a good place to start looking for approaches to the problem that help with intuition. In particular, this answer gives some intuition for the minimum value's distribution. I'd also add that the minimum value has a triangular distribution in the simpler case where you have several IID uniform variables, so these sorts of distributions are fairly common.



As a rough explanation, consider the size of the maximum angle. This will naturally tend to be larger, and larger values mean that there is less room left on the circle for the two smaller angles to be greatly different from each other. Thus, the smallest angle will be more likely to be small. Since there's nothing to counteract this at very small values, the distribution for the minimum angle is skewed in the way you observed.






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    It is a little hard to see, but the probability that $theta_1$ is less than $theta_2$ and $theta_3$ is $frac{2 pi - 3 theta_1}{2 pi}$. To see this, imagine that $theta_1in(0, 2pi/3)$, $v_1 = (1,0)$, $v_2 = (cos theta_1, sin theta_1)$, and $v_3=(cos alpha, sin alpha)$ where $alphain (-pi, pi)$. Then the only way that $theta_1$ can be less that $min(theta_2,theta_3)$ is if $alpha>2theta_1$ or $alpha<-theta_1$. (Note that $theta_2 = |alpha|$).



    If you now believe that
    $$
    P(theta_1 <min(theta_2,theta_3) | theta_1=theta) = frac{2 pi - 3 theta}{2 pi},
    $$

    then the cumulative distribution $F(beta)= P(theta_1<beta | theta_1 <min(theta_2,theta_3)$ is
    $$
    F(beta)= frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{int_{theta_1=0}^{2 pi/3}frac{2 pi - 3 theta_1}{2 pi};dtheta_1}
    $$

    $$
    = frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{pi/3}.
    $$

    The probability density function for $theta_1$ given $theta_1 <min(theta_2,theta_3)$ is
    $$
    F'(theta_1) = frac{frac{2 pi - 3 theta_1}{2 pi}}{pi/3} = frac3pi - frac{ 9theta_1}{2 pi^2}
    $$

    which matches your histogram.






    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%2f3067412%2fprobability-distribution-for-smallest-angle-between-3-lines%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0












      $begingroup$

      First of all, we simplify the problem by noticing that the angles $dtheta_k$ are the absolute differences between pairs of the original angles $theta_k$. If we set one of the original angles to be $0$, this is equivalent to cutting a stick of length $2pi$ into three pieces, by making two cuts whose position on the stick is uniformly distributed, and looking at the distribution of the length of the shortest piece.



      The total stick length doesn't matter, so this ties into various problems based around randomly breaking a stick into segments. This question might be a good place to start looking for approaches to the problem that help with intuition. In particular, this answer gives some intuition for the minimum value's distribution. I'd also add that the minimum value has a triangular distribution in the simpler case where you have several IID uniform variables, so these sorts of distributions are fairly common.



      As a rough explanation, consider the size of the maximum angle. This will naturally tend to be larger, and larger values mean that there is less room left on the circle for the two smaller angles to be greatly different from each other. Thus, the smallest angle will be more likely to be small. Since there's nothing to counteract this at very small values, the distribution for the minimum angle is skewed in the way you observed.






      share|cite|improve this answer











      $endgroup$


















        0












        $begingroup$

        First of all, we simplify the problem by noticing that the angles $dtheta_k$ are the absolute differences between pairs of the original angles $theta_k$. If we set one of the original angles to be $0$, this is equivalent to cutting a stick of length $2pi$ into three pieces, by making two cuts whose position on the stick is uniformly distributed, and looking at the distribution of the length of the shortest piece.



        The total stick length doesn't matter, so this ties into various problems based around randomly breaking a stick into segments. This question might be a good place to start looking for approaches to the problem that help with intuition. In particular, this answer gives some intuition for the minimum value's distribution. I'd also add that the minimum value has a triangular distribution in the simpler case where you have several IID uniform variables, so these sorts of distributions are fairly common.



        As a rough explanation, consider the size of the maximum angle. This will naturally tend to be larger, and larger values mean that there is less room left on the circle for the two smaller angles to be greatly different from each other. Thus, the smallest angle will be more likely to be small. Since there's nothing to counteract this at very small values, the distribution for the minimum angle is skewed in the way you observed.






        share|cite|improve this answer











        $endgroup$
















          0












          0








          0





          $begingroup$

          First of all, we simplify the problem by noticing that the angles $dtheta_k$ are the absolute differences between pairs of the original angles $theta_k$. If we set one of the original angles to be $0$, this is equivalent to cutting a stick of length $2pi$ into three pieces, by making two cuts whose position on the stick is uniformly distributed, and looking at the distribution of the length of the shortest piece.



          The total stick length doesn't matter, so this ties into various problems based around randomly breaking a stick into segments. This question might be a good place to start looking for approaches to the problem that help with intuition. In particular, this answer gives some intuition for the minimum value's distribution. I'd also add that the minimum value has a triangular distribution in the simpler case where you have several IID uniform variables, so these sorts of distributions are fairly common.



          As a rough explanation, consider the size of the maximum angle. This will naturally tend to be larger, and larger values mean that there is less room left on the circle for the two smaller angles to be greatly different from each other. Thus, the smallest angle will be more likely to be small. Since there's nothing to counteract this at very small values, the distribution for the minimum angle is skewed in the way you observed.






          share|cite|improve this answer











          $endgroup$



          First of all, we simplify the problem by noticing that the angles $dtheta_k$ are the absolute differences between pairs of the original angles $theta_k$. If we set one of the original angles to be $0$, this is equivalent to cutting a stick of length $2pi$ into three pieces, by making two cuts whose position on the stick is uniformly distributed, and looking at the distribution of the length of the shortest piece.



          The total stick length doesn't matter, so this ties into various problems based around randomly breaking a stick into segments. This question might be a good place to start looking for approaches to the problem that help with intuition. In particular, this answer gives some intuition for the minimum value's distribution. I'd also add that the minimum value has a triangular distribution in the simpler case where you have several IID uniform variables, so these sorts of distributions are fairly common.



          As a rough explanation, consider the size of the maximum angle. This will naturally tend to be larger, and larger values mean that there is less room left on the circle for the two smaller angles to be greatly different from each other. Thus, the smallest angle will be more likely to be small. Since there's nothing to counteract this at very small values, the distribution for the minimum angle is skewed in the way you observed.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 9 at 14:41

























          answered Jan 9 at 14:32









          Accidental StatisticianAccidental Statistician

          1866




          1866























              0












              $begingroup$

              It is a little hard to see, but the probability that $theta_1$ is less than $theta_2$ and $theta_3$ is $frac{2 pi - 3 theta_1}{2 pi}$. To see this, imagine that $theta_1in(0, 2pi/3)$, $v_1 = (1,0)$, $v_2 = (cos theta_1, sin theta_1)$, and $v_3=(cos alpha, sin alpha)$ where $alphain (-pi, pi)$. Then the only way that $theta_1$ can be less that $min(theta_2,theta_3)$ is if $alpha>2theta_1$ or $alpha<-theta_1$. (Note that $theta_2 = |alpha|$).



              If you now believe that
              $$
              P(theta_1 <min(theta_2,theta_3) | theta_1=theta) = frac{2 pi - 3 theta}{2 pi},
              $$

              then the cumulative distribution $F(beta)= P(theta_1<beta | theta_1 <min(theta_2,theta_3)$ is
              $$
              F(beta)= frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{int_{theta_1=0}^{2 pi/3}frac{2 pi - 3 theta_1}{2 pi};dtheta_1}
              $$

              $$
              = frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{pi/3}.
              $$

              The probability density function for $theta_1$ given $theta_1 <min(theta_2,theta_3)$ is
              $$
              F'(theta_1) = frac{frac{2 pi - 3 theta_1}{2 pi}}{pi/3} = frac3pi - frac{ 9theta_1}{2 pi^2}
              $$

              which matches your histogram.






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                It is a little hard to see, but the probability that $theta_1$ is less than $theta_2$ and $theta_3$ is $frac{2 pi - 3 theta_1}{2 pi}$. To see this, imagine that $theta_1in(0, 2pi/3)$, $v_1 = (1,0)$, $v_2 = (cos theta_1, sin theta_1)$, and $v_3=(cos alpha, sin alpha)$ where $alphain (-pi, pi)$. Then the only way that $theta_1$ can be less that $min(theta_2,theta_3)$ is if $alpha>2theta_1$ or $alpha<-theta_1$. (Note that $theta_2 = |alpha|$).



                If you now believe that
                $$
                P(theta_1 <min(theta_2,theta_3) | theta_1=theta) = frac{2 pi - 3 theta}{2 pi},
                $$

                then the cumulative distribution $F(beta)= P(theta_1<beta | theta_1 <min(theta_2,theta_3)$ is
                $$
                F(beta)= frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{int_{theta_1=0}^{2 pi/3}frac{2 pi - 3 theta_1}{2 pi};dtheta_1}
                $$

                $$
                = frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{pi/3}.
                $$

                The probability density function for $theta_1$ given $theta_1 <min(theta_2,theta_3)$ is
                $$
                F'(theta_1) = frac{frac{2 pi - 3 theta_1}{2 pi}}{pi/3} = frac3pi - frac{ 9theta_1}{2 pi^2}
                $$

                which matches your histogram.






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  It is a little hard to see, but the probability that $theta_1$ is less than $theta_2$ and $theta_3$ is $frac{2 pi - 3 theta_1}{2 pi}$. To see this, imagine that $theta_1in(0, 2pi/3)$, $v_1 = (1,0)$, $v_2 = (cos theta_1, sin theta_1)$, and $v_3=(cos alpha, sin alpha)$ where $alphain (-pi, pi)$. Then the only way that $theta_1$ can be less that $min(theta_2,theta_3)$ is if $alpha>2theta_1$ or $alpha<-theta_1$. (Note that $theta_2 = |alpha|$).



                  If you now believe that
                  $$
                  P(theta_1 <min(theta_2,theta_3) | theta_1=theta) = frac{2 pi - 3 theta}{2 pi},
                  $$

                  then the cumulative distribution $F(beta)= P(theta_1<beta | theta_1 <min(theta_2,theta_3)$ is
                  $$
                  F(beta)= frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{int_{theta_1=0}^{2 pi/3}frac{2 pi - 3 theta_1}{2 pi};dtheta_1}
                  $$

                  $$
                  = frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{pi/3}.
                  $$

                  The probability density function for $theta_1$ given $theta_1 <min(theta_2,theta_3)$ is
                  $$
                  F'(theta_1) = frac{frac{2 pi - 3 theta_1}{2 pi}}{pi/3} = frac3pi - frac{ 9theta_1}{2 pi^2}
                  $$

                  which matches your histogram.






                  share|cite|improve this answer









                  $endgroup$



                  It is a little hard to see, but the probability that $theta_1$ is less than $theta_2$ and $theta_3$ is $frac{2 pi - 3 theta_1}{2 pi}$. To see this, imagine that $theta_1in(0, 2pi/3)$, $v_1 = (1,0)$, $v_2 = (cos theta_1, sin theta_1)$, and $v_3=(cos alpha, sin alpha)$ where $alphain (-pi, pi)$. Then the only way that $theta_1$ can be less that $min(theta_2,theta_3)$ is if $alpha>2theta_1$ or $alpha<-theta_1$. (Note that $theta_2 = |alpha|$).



                  If you now believe that
                  $$
                  P(theta_1 <min(theta_2,theta_3) | theta_1=theta) = frac{2 pi - 3 theta}{2 pi},
                  $$

                  then the cumulative distribution $F(beta)= P(theta_1<beta | theta_1 <min(theta_2,theta_3)$ is
                  $$
                  F(beta)= frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{int_{theta_1=0}^{2 pi/3}frac{2 pi - 3 theta_1}{2 pi};dtheta_1}
                  $$

                  $$
                  = frac{int_{theta_1=0}^beta frac{2 pi - 3 theta_1}{2 pi};dtheta_1}{pi/3}.
                  $$

                  The probability density function for $theta_1$ given $theta_1 <min(theta_2,theta_3)$ is
                  $$
                  F'(theta_1) = frac{frac{2 pi - 3 theta_1}{2 pi}}{pi/3} = frac3pi - frac{ 9theta_1}{2 pi^2}
                  $$

                  which matches your histogram.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 9 at 15:16









                  irchansirchans

                  1,06739




                  1,06739






























                      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%2f3067412%2fprobability-distribution-for-smallest-angle-between-3-lines%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

                      MongoDB - Not Authorized To Execute Command

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                      How to fix TextFormField cause rebuild widget in Flutter