<article style="font-size: 16px;">
<div>
<section>
<div>
<div>
<h2> <a href="https://medium.com/towards-data-science/data-science-in-the-real-world/home" rel="noopener noreferrer" target="_blank"><strong>现实世界中的数据科学</strong></a> <span style="font-weight: bold;">(</span><a href="https://medium.com/towards-data-science/data-science-in-the-real-world/home" rel="noopener noreferrer" target="_blank"><strong>Data Science in the Real World</strong></a><span style="font-weight: bold;">)</span></h2>
<p><em>This article aims to present two ways of calculating non linear correlation between any number of discrete variables. The objective for a data analysis project is twofold : on the one hand, to know the amount of information the variables share with each other, and therefore, to identify whether the data available contain the information one is looking for ; and on the other hand, to identify which minimum set of variables contains the most important amount of useful information.</em></p>
<p> <em>本文旨在介绍两种计算任意数量的离散变量之间的非线性相关性的方法。</em> <em>数据分析项目的目标是双重的:一方面,了解变量之间共享的信息量,从而确定可用数据是否包含人们正在寻找的信息;</em> <em>另一方面,确定哪些最小变量集包含最重要的有用信息量。</em> </p>
<h1> <strong>变量之间的不同类型的关系</strong> <span style="font-weight: bold;">(</span><strong>The different types of relationships between variables</strong><span style="font-weight: bold;">)</span></h1>
<h2> 线性度 <span style="font-weight: bold;">(</span>Linearity<span style="font-weight: bold;">)</span></h2>
<p>The best-known relationship between several variables is the linear one. This is the type of relationships that is measured by the classical correlation coefficient: the closer it is, in absolute value, to 1, the more the variables are linked by an exact linear relationship.</p>
<p> 几个变量之间最著名的关系是线性关系。 这是用经典相关系数衡量的关系类型:绝对值越接近1,变量之间通过精确的线性关系链接的越多。 </p>
<p>However, there are plenty of other potential relationships between variables, which cannot be captured by the measurement of conventional linear correlation.</p>
<p> 但是,变量之间还有许多其他潜在的关系,无法通过常规线性相关性的测量来捕获。 </p>
<figure style="display:block;text-align:center;">
<div>
<div>
<div>
<div>
<div style="text-align: center;">
<img alt="Image for post" height="450" src="https://beijingoptbbs.oss-cn-beijing.aliyuncs.com/cs/5606289-9da1d09c50b863587afd7c5faef7398e.png" style="outline: none;" width="700">
</div>
</div>
</div>
</div>
</div>
<figcaption>
Correlation between X and Y is almost 0%
</figcaption>
<figcaption>
X和Y之间的相关性几乎为0%
</figcaption>
</figure>
<p>To find such non-linear relationships between variables, other correlation measures should be used. The price to pay is to work only with discrete, or discretized, variables.</p>
<p> 为了找到变量之间的这种非线性关系,应该使用其他相关度量。 要付出的代价是仅对离散变量或离散变量起作用。 </p>
<p>In addition to that, having a method for calculating multivariate correlations makes it possible to take into account the two main types of interaction that variables may present: relationships of information redundancy or complementarity.</p>
<p> 除此之外,拥有一种用于计算多元相关性的方法,可以考虑变量可能呈现的两种主要交互类型:信息冗余或互补性的关系。 </p>
<h2> 冗余 <span style="font-weight: bold;">(</span>Redundancy<span style="font-weight: bold;">)</span></h2>
<p>When two variables (hereafter, <em>X</em> and <em>Y</em>) share information in a redundant manner, the amount of information provided by both variables <em>X</em> and <em>Y</em> to predict <em>Z</em> will be inferior to the sum of the amounts of information provided by <em>X</em> to predict <em>Z</em>, and by <em>Y</em> to predict <em>Z</em>.</p>
<p> 当两个变量(以下<em>,X</em>和<em>Y)</em>以冗余的方式共享信息,由两个变量<em>X</em>和<em>Y</em>中提供的信息来预测的<em>Z</em>量将不如由<em>X</em>所提供的预测的<em>Z</em>信息的量的总和,和由<em>Y</em>预测<em>Z。</em> </p>
<p>In the extreme case, <em>X = Y</em>. Then, if the values taken by <em>Z</em> can be correctly predicted 50% of the times by <em>X</em> (and <em>Y</em>), the values taken by <em>Z</em> cannot be predicted perfectly (i.e. 100% of the times) by the variables <em>X</em> and <em>Y</em> together.</p>
<p> 在极端情况下, <em>X = Y。</em> 然后,如果可以通过<em>X</em> (和<em>Y</em> )正确地预测<em>Z</em>所取的值的50%,则变量<em>X</em>和<em>Y不能</em>一起完美地预测<em>Z</em>所取的值(即100%的时间)。 </p>
<pre class="blockcode"><code class="blockcode" |
|