0
votes

Is there a way to perform the chi-squared test of independence without having the expected value?

1
If you can assume the data is normally distributed, you can use an expected value as the mean of the observations. If not, you cannot use chi-squared analysis. The issue isn't not having an expected value.Alexander Huszagh

1 Answers

2
votes

I'm unsure as to what type of data you are looking at, but perhaps you could try looking at the documentation for scipy library listed here. The scipy library has a chi-squared function which may be of use to you

from scipy.stats import chisquare  
chisquare([ <your data points>])

Hope this helps.