Why is Linear Algebra Useful?
365 Data Science 365 Data Science
322K subscribers
145,081 views
4.5K

 Published On Apr 9, 2019

👉Sign up for Our Complete Data Science Training with 57% OFF: https://bit.ly/3sJATc9
👉 Download Our Free Data Science Career Guide: https://bit.ly/47Eh6d5

Why is linear algebra actually useful? There very many applications of linear algebra. In data science, in particular, there are several ones of high importance. Some are easy to grasp, others not just yet. In this lesson, we will explore 3 of them:

• Vectorized code also known as array programming
• Image recognition
• Dimensionality reduction

Okay. Let’s start from the simplest and probably the most commonly used one – vectorized
code. We can certainly claim that the price of a house depends on its size. Suppose you know
that the exact relationship for some neighborhood is given by the equation:

Price equals 10,190 + 223 times size. Moreover, you know the sizes of 5 houses 693, 656, 1060, 487, and 1275 square feet.

What you want to do is plug-in each size in the equation and find the price of each house,
right?

Well, for the first one we get: 10190 + 223 times 693 equals 164,729. Then we can find the next one, and so on, until we find all prices.

Now, if we have 100 houses, doing that by hand would be quite tedious, wouldn’t it?

One way to deal with that problem is by creating a loop. You can iterate over the sizes, multiplying
each of them by 223, and adding 10,190. However, we are smarter than that, aren’t we? We know some linear algebra already. Let’s explore these two objects:

A 5 by 2 matrix and a vector of length 2. The matrix contains a column of 1s and another – with the sizes of the houses. The vector contains 10,190 and 223 – the numbers from the equation.
If we go about multiplying them, we will get a vector of length 5. The first element will be equal to:

1 times 10,190 plus 693 times 223. The second to:
1 times 10,190 plus 656 times 223. And so on.


â–ş Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScie...

â–ş VISIT our website: https://bit.ly/365ds

🤝 Connect with us LinkedIn:   / 365datascience  

365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists.

We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online.

Check out our Data Science Career guides:    • How to Become a... (Data and AI Caree...  

#LinearAlgebra #Math #DataScience

show more

Share/Embed