Multivariate normality test in Python [closed]

南笙酒味 提交于 2019-11-29 19:12:04

问题


Is there a multivariate normality test available in any of packages in Python?

I have heard of some scipy functions but are they applicable to multivariate data? I have a dataset with 30000 datapoints each point with 1024 variables. I want to check if these variables have multivariate normal distribution. How do I do this in Python.


回答1:


Using scipy you can create samples of random variable from multivariate normal distribution. See here.

If you already have a sample that was generated using multivariate normal distribution, but you don't know its parameters, you can use maximum likelihood estimator to estimate them (see this example).

If you have a sample and you want to test if it was generated using multivariate normal distribution, you can use goodness of fit test. See this discussion for relevant scipy methods.



来源:https://stackoverflow.com/questions/43065018/multivariate-normality-test-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!