Is it possible to ttest a variable weighted by another variable in the dataset? So, to ttest the weighted average. The variable that I want to be tested are several stock betas (variable created by regressions) that have to be weighted by market values (each stock beta has a corresponding stock market value). I read somewhere that it is possible to set it up as a regression problem, but I am not sure how to.