數(shù)據(jù)科學中的實用線性代數(shù)(影印版)
出版時間:2023年03月
頁數(shù):311
“對于新手來說,線性代數(shù)的抽象本質(zhì)使他們難以看到這門學科有什么用處,盡管其應用十分廣泛。這本書很好地講授了線性代數(shù)的實際應用以及來龍去脈。”
——Thomas Nield
Nield Consulting Group,Essential Math for Data Science和Getting Started with SQL作者
如果你想從事計算或技術(shù)領(lǐng)域的工作,理解線性代數(shù)是少不了的。線性代數(shù)的研究對象是矩陣及其運算,是幾乎所有計算機算法和分析的數(shù)學基礎(chǔ)。但它在幾十年前的教科書中的呈現(xiàn)方式與專業(yè)人員如今用來解決現(xiàn)實世界問題的方式有很大不同。
這本來自Mike X Cohen的實用指南講授了以Python實現(xiàn)的線性代數(shù)的核心概念,包括如何在數(shù)據(jù)科學、機器學習、深度學習、計算模擬和生物醫(yī)學數(shù)據(jù)處理應用中使用它們。有了這本書,理解、實現(xiàn)和適應繁多的現(xiàn)代分析方法和算法將不再是問題。
本書適用于使用計算機技術(shù)和算法的業(yè)界人士和學生,內(nèi)容包括:
● 向量和矩陣的講解和應用
● 矩陣運算(各種矩陣乘法和變換)
● 獨立性、秩、轉(zhuǎn)置
● 線性代數(shù)中使用的重要分解(包括LU和QR)
● 特征分解和奇異值分解
● 最小二乘模型擬合和主成分分析等應用
- Preface
- 1. Introduction
- What Is Linear Algebra and Why Learn It?
- About This Book
- Prerequisites
- Mathematical Proofs Versus Intuition from Coding
- Code, Printed in the Book and Downloadable Online
- Code Exercises
- How to Use This Book (for Teachers and Self Learners)
- 2. Vectors, Part 1
- Creating and Visualizing Vectors in NumPy
- Operations on Vectors
- Vector Magnitude and Unit Vectors
- The Vector Dot Product
- Other Vector Multiplications
- Orthogonal Vector Decomposition
- Summary
- Code Exercises
- 3. Vectors, Part 2
- Vector Sets
- Linear Weighted Combination
- Linear Independence
- Subspace and Span
- Basis
- Summary
- Code Exercises
- 4. Vector Applications
- Correlation and Cosine Similarity
- Time Series Filtering and Feature Detection
- k-Means Clustering
- Code Exercises
- 5. Matrices, Part 1
- Creating and Visualizing Matrices in NumPy
- Matrix Math: Addition, Scalar Multiplication, Hadamard Multiplication
- Standard Matrix Multiplication
- Matrix Operations: Transpose
- Matrix Operations: LIVE EVIL (Order of Operations)
- Symmetric Matrices
- Summary
- Code Exercises
- 6. Matrices, Part 2
- Matrix Norms
- Matrix Spaces (Column, Row, Nulls)
- Rank
- Rank Applications
- Determinant
- Summary
- Code Exercises
- 7. Matrix Applications
- Multivariate Data Covariance Matrices
- Geometric Transformations via Matrix-Vector Multiplication
- Image Feature Detection
- Summary
- Code Exercises
- 8. Matrix Inverse
- The Matrix Inverse
- Types of Inverses and Conditions for Invertibility
- Computing the Inverse
- The Inverse Is Unique
- Moore-Penrose Pseudoinverse
- Numerical Stability of the Inverse
- Geometric Interpretation of the Inverse
- Summary
- Code Exercises
- 9. Orthogonal Matrices and QR Decomposition
- Orthogonal Matrices
- Gram-Schmidt
- QR Decomposition
- Summary
- Code Exercises
- 10. Row Reduction and LU Decomposition
- Systems of Equations
- Row Reduction
- LU Decomposition
- Summary
- Code Exercises
- 11. General Linear Models and Least Squares
- General Linear Models
- Solving GLMs
- GLM in a Simple Example
- Least Squares via QR
- Summary
- Code Exercises
- 12. Least Squares Applications
- Predicting Bike Rentals Based on Weather
- Polynomial Regression
- Grid Search to Find Model Parameters
- Summary
- Code Exercises
- 13. Eigendecomposition
- Interpretations of Eigenvalues and Eigenvectors
- Finding Eigenvalues
- Finding Eigenvectors
- Diagonalizing a Square Matrix
- The Special Awesomeness of Symmetric Matrices
- Eigendecomposition of Singular Matrices
- Quadratic Form, Definiteness, and Eigenvalues
- Generalized Eigendecomposition
- Summary
- Code Exercises
- 14. Singular Value Decomposition
- The Big Picture of the SVD
- SVD in Python
- SVD and Rank-1 “Layers” of a Matrix
- SVD from EIG
- SVD and the MP Pseudoinverse
- Summary
- Code Exercises
- 15. Eigendecomposition and SVD Applications
- PCA Using Eigendecomposition and SVD
- Linear Discriminant Analysis
- Low-Rank Approximations via SVD
- Summary
- Exercises
- 16. Python Tutorial
- Why Python, and What Are the Alternatives?
- IDEs (Interactive Development Environments)
- Using Python Locally and Online
- Variables
- Functions
- Visualization
- Translating Formulas to Code
- Print Formatting and F-Strings
- Control Flow
- Measuring Computation Time
- Getting Help and Learning More
- Summary
- Index
書名:數(shù)據(jù)科學中的實用線性代數(shù)(影印版)
國內(nèi)出版社:東南大學出版社
出版時間:2023年03月
頁數(shù):311
書號:978-7-5766-0588-4
原版書書名:Practical Linear Algebra for Data Science
原版書出版商:O'Reilly Media
Mike X Cohen
Mike X Cohen是荷蘭唐德斯研究所(拉德堡德大學醫(yī)學中心)的神經(jīng)科學副教授。他在科學編程、數(shù)據(jù)分析、統(tǒng)計學和相關(guān)主題的教學方面擁有20多年的經(jīng)驗,并且已經(jīng)創(chuàng)作了多門在線課程和教材。Mike身上有一種冷幽默感,喜歡紫色的東西。
The animal on the cover of Practical Linear Algebra for Data Science is a nays antelope, also known as the lowland nyala or simply nyala (Tragelaphus angasii). Female and juvenile nyalas are typically a light reddish-brown, while adult males have a dark brown or even grayish coat. Both males and females have white stripes along the body and white spots on the flank. Males have spiral-shaped horns that can grow up to 33 inches long, and their coats are much shaggier, with a long fringe hanging from their throats to their hindquarters and a mane of thick black hair along their spines. Females weigh about 130 pounds, while males can weigh as much as 275 pounds.
Nyalas are native to the woodlands of southeastern Africa, with a range that includes Malawi, Mozambique, South Africa, Eswatini, Zambia, and Zimbabwe. They are shy creatures, preferring to graze in the early morning, late afternoon, or nighttime, and spending most of the hot part of the day resting among cover. Nyalas form loose herds of up to ten animals, though older males are solitary. They are not territorial, though males will fight over dominance during mating.
Nyalas are considered a species of least concern, though cattle grazing, agriculture, and habitat loss pose a threat to them.