creating conditional probability distribution

Vatsa

New Member
#1
I have a system which visits two locations and collects signals every 10 seconds. It is well known that A causes B to occur but not all the time. So, I am trying to find a conditional probability distribution of B given A.

The data looks like following:

A B
----------
1 0
1 1
1 0
1 0
..........
there are about 10,000 rows

How do I use the above to create a conditional distribution: P(B|A) i.e. probability of B hapenning given A.

I was thinking about using logistic regression but all I can see getting a fit of logistic regression form. What after that?