# Chi-Squared Test

I would be grateful if someone could explain to me how to use the chi-squared test to determine whether two sets of random variables generated using the random function on a computer are independent.

In other words, could you generate two sets of random numbers (of length, say, 50) and set out the calculations in detail to determine whether the random variables are independent using chi-squared.

Â© BrainMass Inc. brainmass.com October 5, 2022, 3:35 pm ad1c9bdddfhttps://brainmass.com/statistics/chi-squared-test/chi-squared-test-11358

#### Solution Summary

The solution discusses how to use the chi-squared test to determine whether two sets of random variables generated using the random function on a computer are independent.

In other words, could you generate two sets of random numbers (of length, say, 50) and set out the calculations in detail to determine whether the random variables are independent using chi-squared.