Message Boards Message Boards

Production of two conditional probability functions?

Posted 8 years ago

I wrote a little messy conditional probability distribution. In the output, however, the numerator shows like p [A] [B|A], rather than P(A) P(B|A). Any suggestions?

A=Subscript[k,1] ? Subscript[k,i] 
B= Subscript[answer,1] ? incorrect
\[ScriptCapitalC] = Subscript[k,1] ? Subscript[k,i] 
num = p[A]\[Times]p[B|A]
denom =p[A]\[Times]p[B|A] +p[\[ScriptCapitalC]]
p[A|B] = num/ denom
POSTED BY: Vivian Lyu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract