I'm working in python stack (scipy/numpy/pandas) and I need to do a linear fit on a list of (x,y) points that have added noise from some distribution conditioned on x and other global properties. Are any specific methods available to measure and visualize the levels of heteroscedasticity in my data?
Some of the tests listed on the Wikipedia page for Heteroscedasticity can be found in the scipy.stats package. Under the circumstances, the statsmodels package (which is built on top of scipy) may be a better bet. There is an entire module dedicated to Heteroscedasticity tests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With