The click-through rate (CTR) is defined as the total number of clicks divided by the total number of impressions. The diversion unit is usually a cookie, as it is the case in the following course by Google:
https://www.udacity.com/course/ab-testing--ud257
In this setting, the same cookie can generate multiple views and clicks. I am trying to wrap my head around how this is a valid setup given that the data points that go into the calculation of the CTR are not independent. Why is it a valid metric to calculate in the context of hypothesis testing and using, for instance, various classical proportion tests? In addition, how does one go about doing a power analysis in this setting with dependent observations?
Thank you!