{"id":24293,"date":"2023-09-23T07:30:00","date_gmt":"2023-09-23T07:30:00","guid":{"rendered":"https:\/\/machinelearningplus.com\/?p=24293"},"modified":"2023-09-23T14:42:24","modified_gmt":"2023-09-23T14:42:24","slug":"correlation","status":"publish","type":"post","link":"https:\/\/machinelearningplus.com\/statistics\/correlation\/","title":{"rendered":"Correlation &#8211; Connecting the Dots, the Role of Correlation in Data Analysis"},"content":{"rendered":"<p><strong>Correlation is a fundamental concept in statistics and data science. It quantifies the degree to which two variables are related. But what does this mean, and how can we use it to our advantage in real-world scenarios? Let\u2019s dive deep into understanding correlation, how to measure it, and its practical implications.<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.jpg\" alt=\"\" width=\"622\" height=\"415\" class=\"alignnone size-full wp-image-24300\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.jpg 622w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation-300x200.jpg 300w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/p>\n<p>In this Blog post we will learn:<\/p>\n<ol>\n<li><a href=\"#WhatisCorrelation\">What is Correlation?<\/a><\/li>\n<li><a href=\"#ImportanceofCorrelationinDataScience\"> Importance of Correlation in Data Science?<\/a><\/li>\n<li><a href=\"#HowtoMeasureCorrelation\">How to Measure Correlation?<\/a><br \/>\n 3.1. <a href=\"#TypsofCorrelation\">Typs of Correlation<\/a><br \/>\n 3.2. <a href=\"#PearsonCorrelationCoefficient\">Pearson Correlation Coefficient<\/a><br \/>\n 3.3. <a href=\"#Formula:\">Formula:<\/a><br \/>\n 3.4. <a href=\"#Explanation:\">Explanation:<\/a><br \/>\n 3.5. <a href=\"#Interpretation:\">Interpretation:<\/a><\/li>\n<li><a href=\"#CalculateCorrelationUsingPython\">Calculate Correlation Using Python<\/a><br \/>\n 4.1. <a href=\"#VisualizeCorrelations\">Visualize Correlations<\/a><br \/>\n 4.2. <a href=\"#TestforSignificanceinCorrelation\">Test for Significance in Correlation<\/a><br \/>\n 4.3. <a href=\"#HandleMultipleCorrelations\">Handle Multiple Correlations<\/a><br \/>\n 4.4. <a href=\"#VisualizingtheCorrelationMatrixwithaHeatmap\">Visualizing the Correlation Matrix with a Heatmap<\/a><br \/>\n 4.5. <a href=\"#HowtoAccountforNon-LinearCorrelations\">How to Account for Non-Linear Correlations?<\/a><\/li>\n<li><a href=\"#DifferenceBetweenCorrelationandCausation\">Difference Between Correlation and Causation?<\/a><\/li>\n<li><a href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ol>\n<h2>1. <a name='WhatisCorrelation'><\/a>What is Correlation?<\/h2>\n<p>Correlation refers to a statistical measure that represents the strength and direction of a linear relationship between two variables. If you&#8217;ve ever wondered if one event or variable has a relationship with another, you&#8217;re thinking about correlation. For instance, does the number of hours you study correlate with your exam scores?<\/p>\n<h2>2. <a name='ImportanceofCorrelationinDataScience'><\/a> Importance of Correlation in Data Science?<\/h2>\n<p>Understanding correlations can help data scientists:<\/p>\n<ol>\n<li>Discover relationships between variables.<\/li>\n<li>Determine important variables for predictive modeling.<\/li>\n<li>Uncover underlying patterns in data.<\/li>\n<li>Make better business decisions by understanding key drivers.<\/li>\n<\/ol>\n<h2>3. <a name='HowtoMeasureCorrelation'><\/a>How to Measure Correlation?<\/h2>\n<p>The most common measure of correlation is the Pearson correlation coefficient, often denoted as &#8216;r&#8217;. Its values range between -1 and 1. Here\u2019s what these values indicate:<\/p>\n<ul>\n<li>1 or -1: Perfect correlation; 1 is positive, -1 is negative.<\/li>\n<li>0: No correlation.<\/li>\n<li>Between 0 and \u00b11: Varying degrees of correlation, with strength increasing as it approaches \u00b11.<\/li>\n<\/ul>\n<h3>3.1. <a name='TypsofCorrelation'><\/a>Typs of Correlation<\/h3>\n<p><strong>Positive Correlation<\/strong>:<br \/>\n&#8211; Value: $r$ is between 0 and +1.<br \/>\n&#8211; Meaning: When one variable increases, the other also increases, and when one decreases, the other also decreases.<br \/>\n&#8211; Graphically, a positive correlation will generally display a line of best fit that slopes upwards.<\/p>\n<p><strong>Negative Correlation<\/strong>:<br \/>\n&#8211; Value: $r$ is between 0 and -1.<br \/>\n&#8211; Meaning: When one variable increases, the other decreases, and vice versa.<br \/>\n&#8211; Graphically, a negative correlation will typically show a line of best fit that slopes downwards.<\/p>\n<p><strong>No Correlation (Zero Correlation)<\/strong>:<br \/>\n&#8211; Value: $r$ is approximately 0.<br \/>\n&#8211; Meaning: Changes in one variable do not predict any particular change in the other variable. They move independently of each other.<br \/>\n&#8211; Graphically, data with no correlation will appear scattered with no discernible pattern or trend.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation_Types-1024x375.png\" alt=\"\" width=\"1024\" height=\"375\" class=\"alignnone size-large wp-image-24295\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation_Types-1024x375.png 1024w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation_Types-300x110.png 300w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation_Types-768x281.png 768w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation_Types.png 1174w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h3>3.2. <a name='PearsonCorrelationCoefficient'><\/a>Pearson Correlation Coefficient<\/h3>\n<p>The Pearson correlation coefficient, often denoted as $r$, quantifies the linear relationship between two variables. Let&#8217;s delve into its formula and understand its significance.<\/p>\n<h3>3.3. <a name='Formula:'><\/a>Formula:<\/h3>\n<p>Given two variables, $X$ and $Y$, with data points $x_1, x_2, &#8230;, x_n$ and $y_1, y_2, &#8230;, y_n$ respectively, the Pearson correlation coefficient, $r$, is formulated as:<\/p>\n<p>$<br \/>\nr = \\frac{\\sum_{i=1}^{n} (x_i &#8211; \\bar{x})(y_i &#8211; \\bar{y})}{\\sqrt{\\sum_{i=1}^{n} (x_i &#8211; \\bar{x})^2 \\sum_{i=1}^{n} (y_i &#8211; \\bar{y})^2}}<br \/>\n$<\/p>\n<p>Where:<br \/>\n&#8211; $\\bar{x}$ represents the mean of the $x$ values.<br \/>\n&#8211; $\\bar{y}$ represents the mean of the $y$ values.<\/p>\n<h3>3.4. <a name='Explanation:'><\/a>Explanation:<\/h3>\n<ol>\n<li><strong>Numerator<\/strong>:\n<ul>\n<li>The numerator, $\\sum_{i=1}^{n} (x_i &#8211; \\bar{x})(y_i &#8211; \\bar{y})$, sums up the product of the deviations of each data point from their respective averages. This evaluates if the deviations of one variable coincide with the deviations of the other.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Denominator<\/strong>:\n<ul>\n<li>The denominator ensures normalization of the coefficient, ensuring that $r$ remains between -1 and 1. The terms $\\sum_{i=1}^{n} (x_i &#8211; \\bar{x})^2$ and $\\sum_{i=1}^{n} (y_i &#8211; \\bar{y})^2$ sum the squared deviations of each data point from their means for $X$ and $Y$ respectively.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Outcome<\/strong>:\n<ul>\n<li>$r = 1$: Indicates a perfect positive linear relationship between $X$ and $Y$.<\/li>\n<li>$r = -1$: Signifies a perfect negative linear relationship between $X$ and $Y$.<\/li>\n<li>$r = 0$: Suggests no evident linear trend between the variables.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>3.5. <a name='Interpretation:'><\/a>Interpretation:<\/h3>\n<p>Envision plotting the data points of $X$ and $Y$ on a scatter plot. The Pearson correlation provides insight into how closely these points cluster around a straight line.<\/p>\n<ul>\n<li>An $r$ value near 1 implies that as $X$ elevates, $Y$ also tends to rise, resulting in an upward trending line.<\/li>\n<li>An $r$ value nearing -1 indicates that as $X$ escalates, $Y$ generally diminishes, yielding a downward trending line.<\/li>\n<li>A value approaching 0 indicates no discernible linear trend between the variables.<\/li>\n<\/ul>\n<p>However, a crucial note is that correlation doesn\u2019t signify causation. A strong correlation doesn&#8217;t necessarily indicate that one variable caused the other.<\/p>\n<h2>4. <a name='CalculateCorrelationUsingPython'><\/a>Calculate Correlation Using Python<\/h2>\n<p>Let&#8217;s assume you&#8217;re a teacher who wants to understand if there&#8217;s a relationship between the hours a student studies and their exam scores.<\/p>\n<p>Scenario: You have data on 5 students: hours studied and their corresponding exam scores.<\/p>\n<pre><code class=\"language-python\"># Python code to demonstrate correlation calculation\n\n# Importing required libraries\nimport numpy as np\nimport pandas as pd\n\n# Data\ndata = {\n    'Hours_Studied': [1, 2, 3, 4, 5],\n    'Exam_Score': [60, 75, 65, 85, 95]\n}\n\n# Convert to DataFrame\ndf = pd.DataFrame(data)\n\n# Calculate Pearson correlation\ncorrelation = df['Hours_Studied'].corr(df['Exam_Score'])\nprint(f'Correlation between Hours Studied and Exam Score is: {correlation:.2f}')\n<\/code><\/pre>\n<pre><code>Correlation between Hours Studied and Exam Score is: 0.88\n<\/code><\/pre>\n<p>This output suggests a strong positive correlation between study hours and exam scores.<\/p>\n<h3>4.1. <a name='VisualizeCorrelations'><\/a>Visualize Correlations<\/h3>\n<p>A scatter plot is a common way.<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\nplt.scatter(df['Hours_Studied'], df['Exam_Score'])\nplt.title('Scatter Plot of Hours Studied vs. Exam Score')\nplt.xlabel('Hours Studied')\nplt.ylabel('Exam Score')\nplt.grid(True)\nplt.show()\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_6_0-2.png\" alt=\"\" width=\"563\" height=\"453\" class=\"alignnone size-full wp-image-24297\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_6_0-2.png 563w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_6_0-2-300x241.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/p>\n<h3>4.2. <a name='TestforSignificanceinCorrelation'><\/a>Test for Significance in Correlation<\/h3>\n<p>It helps to determine if the observed correlation is statistically significant. This means we&#8217;re reasonably sure the correlation is real and not due to chance.<\/p>\n<pre><code class=\"language-python\">from scipy.stats import pearsonr\n\ncorr_coefficient, p_value = pearsonr(df['Hours_Studied'], df['Exam_Score'])\n\nprint(f'Correlation Coefficient: {corr_coefficient:.2f}')\nprint(f'P-value: {p_value:.5f}')\n<\/code><\/pre>\n<pre><code>Correlation Coefficient: 0.88\nP-value: 0.04692\n<\/code><\/pre>\n<p>If the p-value is below a threshold (commonly 0.05), the correlation is considered statistically significant.<\/p>\n<h3>4.3. <a name='HandleMultipleCorrelations'><\/a>Handle Multiple Correlations<\/h3>\n<p>In real-world datasets, you might want to check correlations between multiple variables. This can be done using a correlation matrix.<\/p>\n<pre><code class=\"language-python\">import pandas as pd\nurl = 'https:\/\/raw.githubusercontent.com\/selva86\/datasets\/master\/Iris.csv'\niris = pd.read_csv(url)\n\ncorrelation_matrix = iris.iloc[:,1:].corr()\nprint(correlation_matrix)\n<\/code><\/pre>\n<pre><code>               SepalLengthCm  SepalWidthCm  PetalLengthCm  PetalWidthCm\nSepalLengthCm       1.000000     -0.109369       0.871754      0.817954\nSepalWidthCm       -0.109369      1.000000      -0.420516     -0.356544\nPetalLengthCm       0.871754     -0.420516       1.000000      0.962757\nPetalWidthCm        0.817954     -0.356544       0.962757      1.000000\n<\/code><\/pre>\n<h3>4.4. <a name='VisualizingtheCorrelationMatrixwithaHeatmap'><\/a>Visualizing the Correlation Matrix with a Heatmap<\/h3>\n<p>Visualizing multiple correlations using a heatmap is a common and insightful way to quickly grasp relationships between multiple variables in a dataset. We&#8217;ll use the Python libraries like <code>pandas<\/code> and <code>seaborn<\/code>, to display these correlations.<\/p>\n<p>For larger datasets, visualizing this matrix as a heatmap can be insightful.<\/p>\n<pre><code class=\"language-python\">import seaborn as sns\n\nplt.figure(figsize=(6,3), dpi =100)\nsns.heatmap(correlation_matrix ,annot=True, linewidth=.5)\nplt.title('Correlation Heatmap of Student Performance Metrics')\nplt.show()\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_12_0.png\" alt=\"\" width=\"589\" height=\"390\" class=\"alignnone size-full wp-image-24298\" srcset=\"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_12_0.png 589w, https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/output_12_0-300x199.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/p>\n<ul>\n<li><code>annot=True<\/code> ensures that the correlation values appear on the heatmap.<\/li>\n<li><code>cmap<\/code> specifies the color palette. In this case, we&#8217;ve chosen &#8216;coolwarm&#8217;, but there are various palettes available in seaborn.<\/li>\n<li><code>linewidths<\/code> determines the width of the lines that will divide each cell.<\/li>\n<li><code>vmin<\/code> and <code>vmax<\/code> are used to anchor the colormap, ensuring that the center is set at a meaningful value.<\/li>\n<\/ul>\n<h3>4.5. <a name='HowtoAccountforNon-LinearCorrelations'><\/a>How to Account for Non-Linear Correlations?<\/h3>\n<p>Pearson\u2019s correlation coefficient captures linear relationships. But what if the relationship is curved or nonlinear? Enter Spearman&#8217;s rank correlation. It&#8217;s based on ranked values rather than raw data.<\/p>\n<pre><code class=\"language-python\">spearman_corr = df['Hours_Studied'].corr(df['Exam_Score'], method='spearman')\nprint(f\"Spearman's Correlation: {spearman_corr:.2f}\")\n<\/code><\/pre>\n<pre><code>Spearman's Correlation: 0.90\n<\/code><\/pre>\n<h2>5. <a name='DifferenceBetweenCorrelationandCausation'><\/a>Difference Between Correlation and Causation?<\/h2>\n<p>It&#8217;s vital to note that correlation does not imply causation. Just because two variables are correlated doesn\u2019t mean one caused the other. Using our example, while hours studied and exam scores are correlated, it doesn&#8217;t mean studying longer always causes better scores. Other factors might play a role.<\/p>\n<h2>6. <a name='Conclusion'><\/a>Conclusion<\/h2>\n<p>Correlation is a powerful tool in data science, offering insights into relationships between variables. But it&#8217;s crucial to use it judiciously and remember that correlation doesn&#8217;t equate to causation. Python, with its rich library ecosystem, provides a many tools and methods to efficiently calculate, visualize, and interpret correlations.<\/p>\n<p>The key is to understand the data, choose the appropriate correlation measure, and always be aware of the underlying assumptions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Correlation is a fundamental concept in statistics and data science. It quantifies the degree to which two variables are related. But what does this mean, and how can we use it to our advantage in real-world scenarios? Let\u2019s dive deep into understanding correlation, how to measure it, and its practical implications. In this Blog post [&hellip;]<\/p>\n","protected":false},"author":38,"featured_media":24323,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[1873],"class_list":["post-24293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-statistics","tag-statisctics"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus<\/title>\n<meta name=\"description\" content=\"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/localhost:8080\/statistics\/correlation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus\" \/>\n<meta property=\"og:description\" content=\"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/localhost:8080\/statistics\/correlation\/\" \/>\n<meta property=\"og:site_name\" content=\"machinelearningplus\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-23T07:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-23T14:42:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/localhost:8080\/wp-content\/uploads\/2023\/09\/Correlation.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jagdeesh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jagdeesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/\"},\"author\":{\"name\":\"Jagdeesh\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/person\\\/b1493170590ee4eb9622bcaea5b3b7da\"},\"headline\":\"Correlation &#8211; Connecting the Dots, the Role of Correlation in Data Analysis\",\"datePublished\":\"2023-09-23T07:30:00+00:00\",\"dateModified\":\"2023-09-23T14:42:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/\"},\"wordCount\":1146,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Correlation.png\",\"keywords\":[\"Statisctics\"],\"articleSection\":[\"Statistics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/\",\"url\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/\",\"name\":\"Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Correlation.png\",\"datePublished\":\"2023-09-23T07:30:00+00:00\",\"dateModified\":\"2023-09-23T14:42:24+00:00\",\"description\":\"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/localhost:8080\\\/statistics\\\/correlation\\\/#primaryimage\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Correlation.png\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Correlation.png\",\"width\":1080,\"height\":1080,\"caption\":\"Correlation\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#website\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/\",\"name\":\"machinelearningplus\",\"description\":\"Learn Data Science (AI \\\/ ML) Online\",\"publisher\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/machinelearningplus.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#organization\",\"name\":\"machinelearningplus\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/MachineLearningplus-logo.svg\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/MachineLearningplus-logo.svg\",\"width\":348,\"height\":36,\"caption\":\"machinelearningplus\"},\"image\":{\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/#\\\/schema\\\/person\\\/b1493170590ee4eb9622bcaea5b3b7da\",\"name\":\"Jagdeesh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298\",\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298\",\"contentUrl\":\"https:\\\/\\\/machinelearningplus.com\\\/wp-content\\\/litespeed\\\/avatar\\\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298\",\"caption\":\"Jagdeesh\"},\"url\":\"https:\\\/\\\/machinelearningplus.com\\\/author\\\/jagdeesh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus","description":"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/localhost:8080\/statistics\/correlation\/","og_locale":"en_US","og_type":"article","og_title":"Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus","og_description":"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.","og_url":"https:\/\/localhost:8080\/statistics\/correlation\/","og_site_name":"machinelearningplus","article_published_time":"2023-09-23T07:30:00+00:00","article_modified_time":"2023-09-23T14:42:24+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/localhost:8080\/wp-content\/uploads\/2023\/09\/Correlation.png","type":"image\/png"}],"author":"Jagdeesh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jagdeesh","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/localhost:8080\/statistics\/correlation\/#article","isPartOf":{"@id":"https:\/\/localhost:8080\/statistics\/correlation\/"},"author":{"name":"Jagdeesh","@id":"https:\/\/machinelearningplus.com\/#\/schema\/person\/b1493170590ee4eb9622bcaea5b3b7da"},"headline":"Correlation &#8211; Connecting the Dots, the Role of Correlation in Data Analysis","datePublished":"2023-09-23T07:30:00+00:00","dateModified":"2023-09-23T14:42:24+00:00","mainEntityOfPage":{"@id":"https:\/\/localhost:8080\/statistics\/correlation\/"},"wordCount":1146,"commentCount":0,"publisher":{"@id":"https:\/\/machinelearningplus.com\/#organization"},"image":{"@id":"https:\/\/localhost:8080\/statistics\/correlation\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.png","keywords":["Statisctics"],"articleSection":["Statistics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/localhost:8080\/statistics\/correlation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/localhost:8080\/statistics\/correlation\/","url":"https:\/\/localhost:8080\/statistics\/correlation\/","name":"Correlation - Connecting the Dots, the Role of Correlation in Data Analysis - machinelearningplus","isPartOf":{"@id":"https:\/\/machinelearningplus.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/localhost:8080\/statistics\/correlation\/#primaryimage"},"image":{"@id":"https:\/\/localhost:8080\/statistics\/correlation\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.png","datePublished":"2023-09-23T07:30:00+00:00","dateModified":"2023-09-23T14:42:24+00:00","description":"Understand intricacies of correlation with our concise guide. Explore its importance, applications, and visual insights in data analysis.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/localhost:8080\/statistics\/correlation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/localhost:8080\/statistics\/correlation\/#primaryimage","url":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.png","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2023\/09\/Correlation.png","width":1080,"height":1080,"caption":"Correlation"},{"@type":"WebSite","@id":"https:\/\/machinelearningplus.com\/#website","url":"https:\/\/machinelearningplus.com\/","name":"machinelearningplus","description":"Learn Data Science (AI \/ ML) Online","publisher":{"@id":"https:\/\/machinelearningplus.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/machinelearningplus.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/machinelearningplus.com\/#organization","name":"machinelearningplus","url":"https:\/\/machinelearningplus.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/machinelearningplus.com\/#\/schema\/logo\/image\/","url":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2022\/05\/MachineLearningplus-logo.svg","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/uploads\/2022\/05\/MachineLearningplus-logo.svg","width":348,"height":36,"caption":"machinelearningplus"},"image":{"@id":"https:\/\/machinelearningplus.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/machinelearningplus.com\/#\/schema\/person\/b1493170590ee4eb9622bcaea5b3b7da","name":"Jagdeesh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298","url":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298","contentUrl":"https:\/\/machinelearningplus.com\/wp-content\/litespeed\/avatar\/8a303ceb6bbccb62c3dbc14787297f84.jpg?ver=1783623298","caption":"Jagdeesh"},"url":"https:\/\/machinelearningplus.com\/author\/jagdeesh\/"}]}},"_links":{"self":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts\/24293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/comments?post=24293"}],"version-history":[{"count":0,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/posts\/24293\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/media\/24323"}],"wp:attachment":[{"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/media?parent=24293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/categories?post=24293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/machinelearningplus.com\/wp-json\/wp\/v2\/tags?post=24293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}