Suppose I do A/B testing and I collect many observations. An observation is the visit of a client into the store. I collect if the client bought something, the value of the eventual purchase, if the client was exposed to the treatment or control (treatment or control could be anything like how I arrange products into the store, or whatever). Additionally I can segment my clients into various nominal groups, and suppose right know I segment my clients into age groups like: child, young, adult, old.
I know I can run an independence test for control/treatment vs age group, by counting them, having the ability to answer if the age group distribution on control is different than the age distribution on treatment.
Noting with $I_{buy}$ an indicator function which has value $1$ if the client bought something or not, I think I can also study if the effect of the treatment is different for different age groups of the clients. This can be translated as: "the intention of the client to buy something".
My question is if I use the purchase value instead of $I_{buy}$, can I do a chi square independence test to study if the effect of the treatment is the same for all age groups for "how much clients have spent"? I did not seen something like that in literature, but I think that because chi square test uses the assumption that the value from each cell can be approximated with a normal distribution (at least this is what I think, because it is considered a multinomial which is approximated with a normal distribution) I might use the same test if I can safely assume the values from each cells are normally distributed. The sum of purchases usually is approximated considered a log normal so I could take a log. Another approach would be to use the mean values considering that the mean values of the purchases in each cell is normally distributed due to central limit theorem.
[Later edit]
I knew about the proof of chi-square test provided here. However I disagree that we need the counts for my case. In the standard count case the counts are used to prove that the counts are used to compute the covariance structure of the variable.
After that it is found another random variable in the form of $g-<g,p>p$, where $g$ is a sequence of i.i.d. standard normal sequence and $p = (\sqrt(p_1), \sqrt(p_2), .., \sqrt(p_r))$ with $||p||^2_2=1$ (a unit vector). It is proved that the new vector has the same covariance structure as our vector derived from counts (technically it is the vector of terms from chi-square test which asymptotically is a sequence of normal i.i.d. variables ).
Later on, based on some other things it was shown that the 2nd norm of that vector is $\chi^2_{r-1}$ distributed.
Now my point is that I don't need counts for my case. The point is that counts are useful for the standard count test to find the covariance structure. However, instead a vector of counts I have a sequence of i.i.d. normal variables. I consider each or $r$ normal variable as the sum of all the random variables which happens to stay in the r-th category. As a side note, in the original case, for each r-th term the r.v. is a sum of Bernoulli i.i.d trials which is distributed as binomial (to the limit as normal), and in my case for each r-th component is a sum of Gaussian i.i.d. values, which is also Gaussian. We note also that the expected proportions from each category remains the same for both cases.
Now what I tried to find if anybody found a way to prove that this sequence of i.i.d. normal variables with given expected proportions has the same covariance structure. Intuitively I would expect it to happen, but I am not yet able to prove that myself. Now I see that it looks there's no answer in the literature yet. I will try to prove that myself. But before that I will try a lot of simulations (since basically I am a programmer).