I conducted an experiment in which I measured the occurrence of some event A over time. I then intervened in the system, periodically introducing event B.
I hypothesise that event B affects the probability that event A will occur. I would also like to visualise the probability of event A occurring in the time period prior to and following event B.
I am unfamiliar with this type of analysis and would greatly appreciate answers to the above specific problems as well as any pointers to reading material. I would also appreciate suggestions from computationally inclined people for any python / R / matlab packages or routines useful for this type of analysis.