Maximal information coefficient (MIC) maximum mutual information coefficient

Source: Internet
Author: User
Tags in python

Mic is a method used to calculate the correlation between variables in a large data set, which is effective: no assumptions are made on the distribution of data, and the correlations between variables (both linear and nonlinear) are estimated

Download the compressed file in the link below and unzip it to compile:

http://pan.baidu.com/s/1bSEG2a

1. Open matlab switch to the following directory

cd ..... \minepy-1.2.0\minepy-1.2.0\matlab

2. Compiling the mine.c file with the MEX directive

Mex MINE_MEX.C. /libmine/mine.c

3. The Mine_mex.mex (or Mine_mex.mexw32 file, depending on the system) will be obtained under the current directory (/matlab/)

4. Put the MINE.M and mine_mex.mexw32 files in the same folder to use

5. Official Examples:

Operation Result:

A mic value of 1.0 proves that there is a strong correlation between x and Y (the sinusoidal relationship is used in the example) and that the mic can detect nonlinear correlations

Note: X and y must be line vectors

PS: The installation package in the link can also be installed in Python, if the link fails, you can leave a message in the blog, and give the receiving mailbox.

Reference Links:

http://blog.csdn.net/u014271612/article/details/51781250

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.