
Discover how correlations and associations drive data-driven decisions using R, with practical sessions on numerical variables, categorical variables, and numerical and categorical analyses, including hypothesis testing and interpreting p-values.
Explore how covariance measures whether two variables move together, how to compute and interpret sample covariance, and the limitations of scale sensitivity that lead to using the correlation coefficient.
Explore how the population correlation coefficient standardizes covariance by the product of standard deviations, revealing the magnitude of the linear association between X and Y.
Watch how the correlation coefficient captures the strength and direction of the x–y association as data patterns move toward a straight line and toward perfect positive or negative correlation.
Compute the correlation between X and Y by estimating sample variance and covariance, then derive the correlation coefficient in R via manual steps or the cor function.
Assess whether a sample correlation indicates a true linear association by testing H0: rho = 0, versus H1: rho ≠ 0, using the t statistic and p-values with alpha.
Explore how to assess association between categorical variables using a cross-frequency table in R, illustrated by income class and gender, including sample size, percentages, and significance questions.
Assess whether income class and gender are independent using the chi-square test, comparing observed and expected cross-frequency tables under H0 to detect association.
Evaluate independence between two variables by constructing cross frequency tables, computing expected frequencies, and using the chi-square test to derive a p-value for deciding H0 vs H1.
Learn how to assess the association between a categorical variable and a numerical variable, using examples like gender and BMI, and apply these methods in R.
Compare mean medical charges for males and females to test for association with a t-test. Compute the statistic from sample means and s, and reject H0 if p < alpha.
Identify the conditions for testing association between numerical and categorical variables, including normality via the Shapiro test and homogeneity of variances via the Bartlett’s test.
Perform a t-test in R to compare mean medical charges for males and females, reporting t, df, and p-value. With p about 0.61, we fail to reject H0—no significant difference.
Learn how anova extends association testing from two-category to multi-category categorical variables, using the f-test to compare means across q categories of a numerical variable, and interpret p-values.
Exploring and assessing the strength of associations between variables/features plays a fundamental role in statistical analysis and machine learning.
I decided to create this course after leading many data science projects and coming across many data scientists struggling with the fundamentals of association between variables/features and hypothesis testing.
This course will be beneficial to junior analysts as well as to more experienced data scientists. In particular,
If you are an aspiring/junior data analyst/scientist, this course will contribute towards building the right foundation at an early stage of your career.
If you are an experienced data scientist, this course will help you to re-visit and eventually improve your understanding of the assessment of associations between variables/features.
The course is divided into three main sections.
The first section looks at the assessment and quantification of associations between numerical variables.
The second section focusses on the assessment of associations between categorical variables.
The third section covers the assessment of associations between numerical and categorical variables.
Each section discusses a number of statistical metrics in relation to associations between variables and then build statistical hypothesis tests to measure the strengths of these associations.
There are practical sessions throughout the course, where you will see how to implement the methods discussed in the course (using R) and to perform various hypothesis testing using real world datasets. Your will also learn and master how to interpret results in a broader context.
In addition, quiz is added at the end of each section. The objective of these quizzes is to help you to consolidate the main concepts covered in the course.
By the end of the course, you will have a clear and coherent understanding of covariances, correlations, t-test, Chi-squared test, ANOVA, F-test, and much more. In particular, you will know when to use these tests and how to ensure that the underlying assumptions are satisfied.