I have a set of events of type 1, and their start and end times. And a set of events of type 2, and their start and end times. I'm struggling to wrap my head around how I can test whether these two event types are occurring independently of each other, or whether one tends to follow the other (in terms of the times at which it happens). I can think of some fairly simplistic ways of looking into it (e.g. histogramming the time between an event of type 1 and the next one of type 2). But I wondered if this might fit into some branch of statistics that I'm not familiar with, that someone could point me towards?
A little more info: this relates to data from a group of animals feeding from a machine that has space only for one animal at a time. (So event type 1 is animal 1 going to feed, and event type 2 is animal 2 going to feed, etc). So lack of independence would probably be seen by one animal feeding fairly shortly after the other. And it is not possible for them to feed concurrently. The real question is whether there is some kind of social structure to these young animals' feeding behaviour, or whether they just go to feed when they feel hungry. (There are also more than two animals in the pen, but I had been trying to keep my question as simple as possible. Realising now, that the extra detail is probably quite important! There are seven animals in the pen, so it is manageable to look at it pairwise if that's easier.)