# Linear Algebra for Data Science in R

This course is an introduction to linear algebra, one of the most important mathematical topics underpinning data science.

4 Hours15 Videos56 Exercises10,800 Learners4000 XP

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

## Course Description

Linear algebra is one of the most important set of tools in applied mathematics and data science. In this course, you’ll learn how to work with vectors and matrices, solve matrix-vector equations, perform eigenvalue/eigenvector analyses and use principal component analysis to do dimension reduction on real-world datasets. All analyses will be performed in R, one of the world’s most-popular programming languages.

1. 1

### Introduction to Linear Algebra

Free

In this chapter, you will learn about the key objects in linear algebra, such as vectors and matrices. You will understand why they are important and how they interact with each other.

Motivations
50 xp
Creating Vectors in R
100 xp
The Algebra of Vectors
100 xp
Creating Matrices in R
100 xp
Matrix-Vector Operations
50 xp
Matrix-Vector Compatibility
50 xp
Matrix Multiplication as a Transformation
100 xp
Reflections
100 xp
Matrix-Matrix Calculations
50 xp
Matrix Multiplication Compatibility
50 xp
Matrix Multiplication - Order Matters
100 xp
Intro to The Matrix Inverse
100 xp
2. 2

### Matrix-Vector Equations

Many machine learning algorithms boil down to solving a matrix-vector equation. In this chapter, you learn what matrix-vector equations are trying to accomplish and how to solve them in R.

3. 3

### Eigenvalues and Eigenvectors

Matrix operations are complex. Eigenvalue/eigenvector analyses allow you to decompose these operations into simpler ones for the sake of image recognition, genomic analysis, and more!

4. 4

### Principal Component Analysis

“Big Data” is ubiquitous in data science and its applications. However, redundancy in these datasets can be problematic. In this chapter, we learn about principal component analysis and how it can be used in dimension reduction.

Datasets

NFL Player datasetWNBA Massey Matrix datasetWNBA Point Differentials dataset

Collaborators

David CamposChester IsmayShon Inouye

Prerequisites

Introduction to R

#### Eric Eager

Data Scientist at Pro Football Focus

Eric Eager is a data scientist for Pro Football Focus, where he analyzes data for all 32 National Football League teams and over 40 college football teams. Before joining PFF in 2018, he was a professor in the Department of Mathematics and Statistics at the University of Wisconsin – La Crosse, where he published over 20 papers in mathematical biology and the scholarship of teaching and learning while securing more than \$300,000 in National Science Foundation funding for undergraduate mentorship.

## What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden