Conditional probability, probability of the message being authentic:












0












$begingroup$


As communication security becomes more and more a problem, when a message is
received, it must authenticated, by using a secret enciphering key. Sometimes, though,
it can fall into wrong hands, thus allowing an unauthentic message to appear to be
authentic. Assume that 80% of all messages received are authentic. Furthermore,
assume that only 5% of all unauthentic messages are sent using the correct key and
that all authentic messages are sent using the correct key. Find the probability that
a message is authentic given that the correct key is used.



How do I compute this event, I've been scratching my head for the last half an hour and tried to look at the problem from different angles, I tried thinking of it as $ P(A/K) $ $A$ - message is authentic and $K$ - key is correct and then tried to compute with Bayes but it makes no sense since $P(K)$ is always going to be 1 since it is specified that the identified key is authentic and $P(K/A)$ would also result in 1, since the message is authentic the key will always be correct. Am I even making sense? I feel like I'm missing something right under my nose because at first glance it doesn't seem to be such a difficult problem, so I would appreciate some help...










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    As communication security becomes more and more a problem, when a message is
    received, it must authenticated, by using a secret enciphering key. Sometimes, though,
    it can fall into wrong hands, thus allowing an unauthentic message to appear to be
    authentic. Assume that 80% of all messages received are authentic. Furthermore,
    assume that only 5% of all unauthentic messages are sent using the correct key and
    that all authentic messages are sent using the correct key. Find the probability that
    a message is authentic given that the correct key is used.



    How do I compute this event, I've been scratching my head for the last half an hour and tried to look at the problem from different angles, I tried thinking of it as $ P(A/K) $ $A$ - message is authentic and $K$ - key is correct and then tried to compute with Bayes but it makes no sense since $P(K)$ is always going to be 1 since it is specified that the identified key is authentic and $P(K/A)$ would also result in 1, since the message is authentic the key will always be correct. Am I even making sense? I feel like I'm missing something right under my nose because at first glance it doesn't seem to be such a difficult problem, so I would appreciate some help...










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      As communication security becomes more and more a problem, when a message is
      received, it must authenticated, by using a secret enciphering key. Sometimes, though,
      it can fall into wrong hands, thus allowing an unauthentic message to appear to be
      authentic. Assume that 80% of all messages received are authentic. Furthermore,
      assume that only 5% of all unauthentic messages are sent using the correct key and
      that all authentic messages are sent using the correct key. Find the probability that
      a message is authentic given that the correct key is used.



      How do I compute this event, I've been scratching my head for the last half an hour and tried to look at the problem from different angles, I tried thinking of it as $ P(A/K) $ $A$ - message is authentic and $K$ - key is correct and then tried to compute with Bayes but it makes no sense since $P(K)$ is always going to be 1 since it is specified that the identified key is authentic and $P(K/A)$ would also result in 1, since the message is authentic the key will always be correct. Am I even making sense? I feel like I'm missing something right under my nose because at first glance it doesn't seem to be such a difficult problem, so I would appreciate some help...










      share|cite|improve this question









      $endgroup$




      As communication security becomes more and more a problem, when a message is
      received, it must authenticated, by using a secret enciphering key. Sometimes, though,
      it can fall into wrong hands, thus allowing an unauthentic message to appear to be
      authentic. Assume that 80% of all messages received are authentic. Furthermore,
      assume that only 5% of all unauthentic messages are sent using the correct key and
      that all authentic messages are sent using the correct key. Find the probability that
      a message is authentic given that the correct key is used.



      How do I compute this event, I've been scratching my head for the last half an hour and tried to look at the problem from different angles, I tried thinking of it as $ P(A/K) $ $A$ - message is authentic and $K$ - key is correct and then tried to compute with Bayes but it makes no sense since $P(K)$ is always going to be 1 since it is specified that the identified key is authentic and $P(K/A)$ would also result in 1, since the message is authentic the key will always be correct. Am I even making sense? I feel like I'm missing something right under my nose because at first glance it doesn't seem to be such a difficult problem, so I would appreciate some help...







      probability conditional-probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Feb 2 at 2:49









      The VirtuosoThe Virtuoso

      448




      448






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Let $A equiv text{{Message is authentic}}, K equiv text{{Message sent with correct key}}$.



          You want $$P(A|K) = frac{P(K|A)P(A)}{P(K)}$$



          You are correct that $P(K|A) = 1$ because $A subseteq K$. However $P(K) neq 1$. To find $P(K)$ we can use the law of total probability.



          Note that $A$ and $overline{A}$ partition the sample space. Then we have that



          begin{align}
          P(K) &= P(K|A) P(A) + P(K|overline{A}) P(overline{A})\
          &= 1cdot 0.80 + 0.5cdot0.20\
          &= 0.90
          end{align}



          Then finally we have



          $$P(K) = 8/9$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
            $endgroup$
            – The Virtuoso
            Feb 2 at 4:17












          Your Answer








          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%2f3096980%2fconditional-probability-probability-of-the-message-being-authentic%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$

          Let $A equiv text{{Message is authentic}}, K equiv text{{Message sent with correct key}}$.



          You want $$P(A|K) = frac{P(K|A)P(A)}{P(K)}$$



          You are correct that $P(K|A) = 1$ because $A subseteq K$. However $P(K) neq 1$. To find $P(K)$ we can use the law of total probability.



          Note that $A$ and $overline{A}$ partition the sample space. Then we have that



          begin{align}
          P(K) &= P(K|A) P(A) + P(K|overline{A}) P(overline{A})\
          &= 1cdot 0.80 + 0.5cdot0.20\
          &= 0.90
          end{align}



          Then finally we have



          $$P(K) = 8/9$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
            $endgroup$
            – The Virtuoso
            Feb 2 at 4:17
















          1












          $begingroup$

          Let $A equiv text{{Message is authentic}}, K equiv text{{Message sent with correct key}}$.



          You want $$P(A|K) = frac{P(K|A)P(A)}{P(K)}$$



          You are correct that $P(K|A) = 1$ because $A subseteq K$. However $P(K) neq 1$. To find $P(K)$ we can use the law of total probability.



          Note that $A$ and $overline{A}$ partition the sample space. Then we have that



          begin{align}
          P(K) &= P(K|A) P(A) + P(K|overline{A}) P(overline{A})\
          &= 1cdot 0.80 + 0.5cdot0.20\
          &= 0.90
          end{align}



          Then finally we have



          $$P(K) = 8/9$$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
            $endgroup$
            – The Virtuoso
            Feb 2 at 4:17














          1












          1








          1





          $begingroup$

          Let $A equiv text{{Message is authentic}}, K equiv text{{Message sent with correct key}}$.



          You want $$P(A|K) = frac{P(K|A)P(A)}{P(K)}$$



          You are correct that $P(K|A) = 1$ because $A subseteq K$. However $P(K) neq 1$. To find $P(K)$ we can use the law of total probability.



          Note that $A$ and $overline{A}$ partition the sample space. Then we have that



          begin{align}
          P(K) &= P(K|A) P(A) + P(K|overline{A}) P(overline{A})\
          &= 1cdot 0.80 + 0.5cdot0.20\
          &= 0.90
          end{align}



          Then finally we have



          $$P(K) = 8/9$$






          share|cite|improve this answer









          $endgroup$



          Let $A equiv text{{Message is authentic}}, K equiv text{{Message sent with correct key}}$.



          You want $$P(A|K) = frac{P(K|A)P(A)}{P(K)}$$



          You are correct that $P(K|A) = 1$ because $A subseteq K$. However $P(K) neq 1$. To find $P(K)$ we can use the law of total probability.



          Note that $A$ and $overline{A}$ partition the sample space. Then we have that



          begin{align}
          P(K) &= P(K|A) P(A) + P(K|overline{A}) P(overline{A})\
          &= 1cdot 0.80 + 0.5cdot0.20\
          &= 0.90
          end{align}



          Then finally we have



          $$P(K) = 8/9$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Feb 2 at 4:06









          AlexAlex

          52538




          52538












          • $begingroup$
            Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
            $endgroup$
            – The Virtuoso
            Feb 2 at 4:17


















          • $begingroup$
            Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
            $endgroup$
            – The Virtuoso
            Feb 2 at 4:17
















          $begingroup$
          Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
          $endgroup$
          – The Virtuoso
          Feb 2 at 4:17




          $begingroup$
          Thank you, I don't know why but the answer is supposed to be 0.987 but your response really makes sense so...
          $endgroup$
          – The Virtuoso
          Feb 2 at 4:17


















          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%2f3096980%2fconditional-probability-probability-of-the-message-being-authentic%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

          How to fix TextFormField cause rebuild widget in Flutter

          Npm cannot find a required file even through it is in the searched directory