About Introduction to Linear Algebra

Linear algebra is a field of mathematics that is universally agreed to be a prerequisite to a deeper understanding of machine learning. Although linear algebra is a large field with many esoteric theories and findings, the nuts and bolts tools and notations taken from the field are practical for machine learning practitioners. With a solid foundation of what linear algebra is, it is possible to focus on just the good or relevant parts. In this tutorial, you will discover what exactly linear algebra is from a machine learning perspective. After completing this tutorial, you will know:

  •  Linear algebra is the mathematics of data.
  • Linear algebra has had a marked impact on the field of statistics
  • Linear algebra underlies many practical mathematical tools, such as Fourier series and computer graphics.

1.1 Tutorial Overview

This tutorial is divided into 4 parts; they are:

  1. Linear Algebra
  2. Numerical Linear Algebra
  3. Linear Albebra and Statistics
  4. Applications of Linear Algebra

1.2 Linear Algebra

Linear algebra is a branch of mathematics, but the truth of it is that linear algebra is the mathematics of data. Matrices and vectors are the language of data. Linear algebra is about linear combinations. That is, using arithmetic on columns of numbers called vectors and arrays of numbers called matrices, to create new columns and arrays of numbers. Linear algebra is the study of lines and planes, vector spaces and mappings that are required for linear transforms.

      It is a relatively young field of study, having initially been formalized in the 1800s in order to find unknowns in systems of linear equations. A linear equation is just a series of terms and mathematical operations where some terms are unknown; for example:

                                                y = 4 × x + 1  

 Equations like this are linear in that they describe a line on a two-dimensional graph. The line comes from plugging in different values into the unknown x to find out what the equation or model does to the value of y. We can line up a system of equations with the same form with two or more unknowns; for example:

                                                y = 0.1 × x1 + 0.4 × x2

                                                y = 0.3 × x1 + 0.9 × x2

                                                y = 0.2 × x1 + 0.3 × x2

              The column of y values can be taken as a column vector of outputs from the equation. The two columns of integer values are the data columns, say a1 and a2, and can be taken as a matrix A. The two unknown values x1 and x2 can be taken as the coefficients of the equation and together form a vector of unknowns b to be solved. We can write this compactly using linear algebra notation as:

                                         y = A · b      

          Problems of this form are generally challenging to solve because there are more unknowns (here we have 2) than there are equations to solve (here we have 3). Further, there is often no single line that can satisfy all of the equations without error. Systems describing problems we are often interested in (such as a linear regression) can have an infinite number of solutions. This gives a small taste of the very core of linear algebra that interests us as machine learning practitioners. Much of the rest of the operations are about making this problem and problems like it easier to understand and solve.

 1.3 Numerical Linear Algebra       

 The application of linear algebra in computers is often called numerical linear algebra. “numerical” linear algebra is really applied linear algebra. — Page ix, Numerical Linear Algebra, 1997.

It is more than just the implementation of linear algebra operations in code libraries; it also includes the careful handling of the problems of applied mathematics, such as working with the limited floating point precision of digital computers. Computers are good at performing linear algebra calculations, and much of the dependence on Graphical Processing Units (GPUs) by modern machine learning methods such as deep learning is because of their ability to compute linear algebra operations fast.

        Efficient implementations of vector and matrix operations were originally implemented in the FORTRAN programming language in the 1970s and 1980s and a lot of code, or code ported from those implementations, underlies much of the linear algebra performed using modern programming languages, such as Python. Three popular open source numerical linear algebra libraries that implement these functions are:

  • Linear Algebra Package, or LAPACK.
  • Basic Linear Algebra Subprograms, or BLAS (a standard for linear algebra libraries).
  • Automatically Tuned Linear Algebra Software, or ATLAS.

1.4 Linear Algebra and Statistics

Linear algebra is a valuable tool in other branches of mathematics, especially statistics. Usually students studying statistics are expected to have seen at least one semester of linear algebra (or applied algebra) at the undergraduate level.

                                                — Page xv, Linear Algebra and Matrix Analysis for Statistics, 2014.

The impact of linear algebra is important to consider, given the foundational relationship both fields have with the field of applied machine learning. Some clear fingerprints of linear algebra on statistics and statistical methods include:

  • Use of vector and matrix notation, especially with multivariate statistics.
  • Solutions to least squares and weighted least squares, such as for linear regression.
  • Estimates of mean and variance of data matrices.
  • The covariance matrix that plays a key role in multinomial Gaussian distributions.
  • Principal component analysis for data reduction that draws many of these elements together.

As you can see, modern statistics and data analysis, at least as far as the interests of a machine learning practitioner are concerned, depend on the understanding and tools of linear algebra.

1.5 Applications of Linear Algebra

        As linear algebra is the mathematics of data, the tools of linear algebra are used in many domains. In his classical book on the topic titled Introduction to Linear Algebra, Gilbert Strang provides a chapter dedicated to the applications of linear algebra. In it, he demonstrates specific mathematical tools rooted in linear algebra. Briefly they are:

  • Matrices in Engineering, such as a line of springs.
  • Graphs and Networks, such as analyzing networks.
  • Markov Matrices, Population, and Economics, such as population growth.
  • Linear Programming, the simplex optimization method.
  • Fourier Series: Linear Algebra for functions, used widely in signal processing.
  • Linear Algebra for statistics and probability, such as least squares for regression.
  • Computer Graphics, such as the various translation, rescaling and rotation of images.

        Another interesting application of linear algebra is that it is the type of mathematics used by Albert Einstein in parts of his theory of relativity. Specifically tensors and tensor calculus. He also introduced a new type of linear algebra notation to physics called Einstein notation, or the Einstein summation convention.

1.6 Further Reading

This section provides more resources on the topic if you are looking to go deeper.

1.6.1 Books

  • Introduction to Linear Algebra, 2016.

        http://amzn.to/2j2J0g4

  • Numerical Linear Algebra, 1997.

        http://amzn.to/2kjEF4S

  • Linear Algebra and Matrix Analysis for Statistics, 2014.

        http://amzn.to/2A9ceNv

1.6.2 Articles

  •  Linear Algebra on Wikipedia.

        https://en.wikipedia.org/wiki/Linear_algebra

  • Linear Algebra Category on Wikipedia.

        https://en.wikipedia.org/wiki/Category:Linear_algebra 

  • Linear Algebra List of Topics on Wikipedia.

        https://en.wikipedia.org/wiki/List_of_linear_algebra_topics

  • LAPACK on Wikipedia.

        https://en.wikipedia.org/wiki/LAPACK

  • Basic Linear Algebra Subprograms on Wikipedia.

        https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms

  • Automatically Tuned Linear Algebra Software on Wikipedia.

        https://en.wikipedia.org/wiki/Automatically_Tuned_Linear_Algebra_Software

  • Einstein notation on Wikipedia.

        https://en.wikipedia.org/wiki/Einstein_notation

  • Mathematics of general relativity on Wikipedia.

        https://en.wikipedia.org/wiki/Mathematics_of_general_relativity

1.7 Summary

In this tutorial, you discovered a gentle introduction to linear algebra from a machine learning perspective. Specifically, you learned:

  • Linear algebra is the mathematics of data.
  • Linear algebra has had a marked impact on the field of statistics.
  • Linear algebra underlies many practical mathematical tools, such as Fourier series and computer graphics.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值