I'd like to compare two different ways of computing the correlation between two random…
- User
I'd like to compare two different ways of computing the correlation between two random variables. Y is lightly correlated to X (let's say 0.15 Pearson's correlation). I will run an experiment where I use the same sequence of N_t "X" values, and measure the "Y" values. I will then repeat this experiment N_r times, where the X values are always the same sequence, but the Y values have some varying noise component that's unrelated to X. The two ways I want to compute correlation are:
- Simply compute the correlation between all X values concatenated together with all "measured" Y Values.
- Average each all of the corresponding Y values across the repetitions, and then compute the correlation between X and the averaged Y.
Please prepare analytic formulas for these two approaches, and then provide a simplified analytic formula for the ratio of method 1 to method 2, simplified as much as possible. You may assume constant noise variance across repetitions and zero mean noise.
Assistant
Method 1: Correlation between all X and Y values:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.