Results 1 to 5 of 5

Math Help - Conditional probability

  1. #1
    Newbie
    Joined
    Aug 2012
    From
    Madrid, Spain
    Posts
    5

    Conditional probability

    Hello,

    This problem has arosen in my work and I need help to solve it, because my calculations do not match with the simulation I made in Matlab.

    Imagine a generator A of blocks of numbers {0,1,2} separated by spaces {-} with block lenght between m and M. These blocks are received by a box B that process them in this way:
    - If the blocks start by 0 and end by 1, the block remains as it was.
    - Else, the blocks are trimmed in both ways until it starts by 0 and ends by 1. The trimmed part are substituted by spaces.
    - If after the trimming the block is shorter than m, or it's not possible to achieve the structure 0..1, B only sends spaces.

    Example: (m=3)

    A generates: ----00101011200-, and B transforms into: ----00101011----
    A generates: --1112100020102-, and B transforms into: -------000201---
    A generates: --1111210122111-, and B transforms into: ---------------- (-01- can be achieved but its length is 2<m)


    Question:
    P= P(B generates '1' | A generates '1'), (Probability of B generates a '1' conditioned to A has generated a '1')

    I think it's better to work with Q = 1-P = 1-P(B generates a space | A generates '1')
    Last edited by jgonzalf; August 19th 2013 at 04:40 AM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,651
    Thanks
    602

    Re: Conditional probability

    Hey jgonzalf.

    Can you show us the simulation code as well as the probabilities that you have worked out?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Aug 2012
    From
    Madrid, Spain
    Posts
    5

    Re: Conditional probability

    Hi Chiro,
    I am afraid is too long and I reduced part of the problem to be easy to analyze here. My previous analysis is:
    - I think there are different probabilities to produce different types of blocks. Let's say:
    -> P1: probability of block is sent as it was. Ex: ---0201- -> ---0201-
    -> P2: probability of block is trimmed by left: Ex: -11102001-- -> ----02001--
    -> P3: probability of block is trimmed by right: Ex: -0002210000- -> -000221-----
    -> P4: probability of block is trimmed by both sides. Ex: -111202221222-- -> -----02221-----
    -> P5: probability of block can't be transformed and B sends spaces: ---11112--- -> -----------
    P1+P2+P3+P4+P5=1
    So, P= P(B generates '1' | A generates '1') = sum_{i} P(B generates '1' | A generates '1' and B in block type i)*P(Block type i | A generates '1')
    but it's not easy to calculate.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,651
    Thanks
    602

    Re: Conditional probability

    Could you model this as a Markov model? If it can (and you have a finite number of transitions), then you could solve the distribution as well as the long run distribution for particular states.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Aug 2012
    From
    Madrid, Spain
    Posts
    5

    Re: Conditional probability

    Hi Chiro, I'll try it. Thanks for your kind help.
    Javier.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: July 22nd 2011, 01:39 AM
  2. Conditional Probability using the Law of Total Probability
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: October 7th 2010, 03:01 AM
  3. Continuous probability - conditional probability
    Posted in the Statistics Forum
    Replies: 1
    Last Post: October 1st 2009, 01:21 AM
  4. Conditional Probability
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: September 22nd 2009, 09:36 AM
  5. Conditional Probability
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: April 24th 2009, 12:07 AM

Search Tags


/mathhelpforum @mathhelpforum