{"id":14977119,"url":"https://github.com/weijie-chen/linear-algebra-with-python","last_synced_at":"2025-05-15T02:09:22.475Z","repository":{"id":39798863,"uuid":"268608991","full_name":"weijie-chen/Linear-Algebra-With-Python","owner":"weijie-chen","description":"Lecture Notes for Linear Algebra Featuring Python. This series of lecture notes will walk you through all the must-know concepts that set the foundation of data science or advanced quantitative skillsets. Suitable for statistician/econometrician, quantitative analysts, data scientists and etc. to quickly refresh the linear algebra with the assistance of Python computation and visualization.","archived":false,"fork":false,"pushed_at":"2024-09-05T16:40:42.000Z","size":20554,"stargazers_count":2417,"open_issues_count":2,"forks_count":585,"subscribers_count":81,"default_branch":"master","last_synced_at":"2025-05-15T02:09:15.224Z","etag":null,"topics":["computational-science","data-analysis","data-science","data-visualization","diagonalization","eigenvalues","eigenvectors","gram-schmidt","jupyter","linear-algebra","linear-transformations","mathematics","matrix","matrix-calculations","multivariate-normal-distribution","null-space","python","singular-value-decomposition","symmetric-matrices","vector-space"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weijie-chen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-01T19:07:55.000Z","updated_at":"2025-05-13T19:11:16.000Z","dependencies_parsed_at":"2024-11-19T19:06:12.157Z","dependency_job_id":"bc272493-d6dd-47d6-8a39-60202308c9a3","html_url":"https://github.com/weijie-chen/Linear-Algebra-With-Python","commit_stats":{"total_commits":195,"total_committers":6,"mean_commits":32.5,"dds":0.5435897435897437,"last_synced_commit":"c6d61e37f6e5f62fd57cf8882a0f32c7710e1359"},"previous_names":["macroanalyst/linear_algebra_with_python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weijie-chen%2FLinear-Algebra-With-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weijie-chen%2FLinear-Algebra-With-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weijie-chen%2FLinear-Algebra-With-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weijie-chen%2FLinear-Algebra-With-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weijie-chen","download_url":"https://codeload.github.com/weijie-chen/Linear-Algebra-With-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259384,"owners_count":22040820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computational-science","data-analysis","data-science","data-visualization","diagonalization","eigenvalues","eigenvectors","gram-schmidt","jupyter","linear-algebra","linear-transformations","mathematics","matrix","matrix-calculations","multivariate-normal-distribution","null-space","python","singular-value-decomposition","symmetric-matrices","vector-space"],"created_at":"2024-09-24T13:55:07.871Z","updated_at":"2025-05-15T02:09:22.457Z","avatar_url":"https://github.com/weijie-chen.png","language":"Jupyter Notebook","readme":"\u003cfont color='purple' size=2.5\u003e\u003ci\u003eUpdated on Aug 2024\u003c/i\u003e\u003c/font\u003e\n![Presentation1](https://user-images.githubusercontent.com/59842360/159695863-678be5bc-d146-4340-9592-003ad93241e1.jpg)\n# Lectures of Linear Algebra\n\nThese lecture notes are intended for introductory linear algebra courses, suitable for university students, programmers, data analysts, algorithmic traders and etc. \n\nThe lectures notes are loosely based on several textbooks:\n\n1. \u003cb\u003e\u003ci\u003eLinear Algebra and Its Applications\u003c/i\u003e\u003c/b\u003e by Gilbert Strang \n2. \u003cb\u003e\u003ci\u003eLinear Algebra and Its Applications\u003c/i\u003e\u003c/b\u003e by David Lay \n3. \u003cb\u003e\u003ci\u003eIntroduction to Linear Algebra With Applications\u003c/i\u003e\u003c/b\u003e by DeFranza \u0026 Gagliardi\n4. \u003cb\u003e\u003ci\u003eLinear Algebra With Applications\u003c/i\u003e\u003c/b\u003e by Gareth Williams\n\n![cover-min](https://user-images.githubusercontent.com/59842360/83939172-64df6c00-a7e3-11ea-80b1-058af696d5a3.png)\n\nHowever, the crux of the course is not about proving theorems, but to demonstrate the practices and visualization of the concepts. Thus we will not engage in precise deduction or notation, rather we aim to clarify the elusive concepts and thanks to Python/MATLAB, the task is much easier now.\n\n## Prerequisites\nThough the lectures are for beginners, it is beneficial that attendants had certain amount of exposure to linear algebra and calculus.\n\nAnd also the attendee are expected to have basic knowledge (3 days training would be enough) of \n- [x] Python\n- [x] NumPy\n- [x] Matplotlib\n- [x] SymPy\n\nAll the codes are written in an \u003cb\u003eintuitive manner\u003c/b\u003e rather than efficient or professional coding style, therefore the codes are exceedingly straightforward, I presume barely anyone would have difficulty in understanding the codes.\n\n## Environment Setup\nI use poetry to management environment, if you happen to use VS code like me, please follow the steps below:\n1. In Windows powershell and install poetry ``` (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -p```\n2. Navigate to ```cd $env:APPDATA\\Python\\Scripts```, check if poetry being installed.\n3. Open a notepad ```notepad $profile``` and set alias for poetry ```Set-Alias poetry \"C:\\Users\\user\\AppData\\Roaming\\Python\\Scripts\\poetry.exe\"``` in notepad, I prefered this way, because sometimes setting env path not working in windows.\n4. Reload profile by ```. $profile```.\n5. If you are on your personal computer ```Set-ExecutionPolicy RemoteSigned -Scope CurrentUser``` to unstrict your execution policy and choose Y.\n6. Resume the default restricted policy for security ```Set-ExecutionPolicy Restricted -Scope CurrentUser```.\n7. Now check ```poetry --version```, if you see the version printed, good to go.\n8. You choose to use ```poetry update```, or just manage version at your own convenience.\n\n## What to Expect from Notes\nThese notes will equip you with most needed and basic knowledge for other subjects, such as Data Science, Econometrics, Mathematical Statistics, Financial Engineering, Control Theory and etc., which heavily rely on linear algebra. Please go through the tutorial patiently, you will certainly have a better grasp of the fundamental concepts of linear algebera. Then further step is to study the special matrices and their application with your domain knowledge.  \n\n## Contents\nPlease access my webiste for better reading experience: [Linear Algebra for Python](https://www.weijiechen.com/linear-algebra-with-python-book/linear-algebra-index.html)\u003cbr\u003e\n[Chapter 1 - Linear Equation System](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%201%20-%20Linear%20Equation%20System.html)\u003cbr\u003e\n[Chapter 2 - Basic Matrix Algebra](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%202%20-%20Basic%20Matrix%20Algebra.html)\u003cbr\u003e\n[Chapter 3 - Determinant](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%203%20-%20Determinant.html)\u003cbr\u003e\n[Chapter 4 - LU Factorization](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%204%20-%20LU%20Factorization.html)\u003cbr\u003e\n[Chapter 5 - Vector Addition, Subtraction and Scalar Multiplication](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%205%20-%20Vector%20Addition%2C%20Subtraction%20and%20Scalar%20Multiplication.html)\u003cbr\u003e\n[Chapter 6 - Linear Combination](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%206%20-%20Linear%20Combination.html)\u003cbr\u003e\n[Chapter 7 - Linear Independence](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%207%20-%20Linear%20Independence.html)\u003cbr\u003e\n[Chapter 8 - Vector Space and Subspace](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%208%20-%20Vector%20Space%20and%20Subspace.html)\u003cbr\u003e\n[Chapter 9 - Basis and Dimension](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%209%20-%20Basis%20and%20Dimension.html)\u003cbr\u003e\n[Chapter 10 -Null Space vs Col Space, Row Space and Rank](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2010%20-Null%20Space%20vs%20Col%20Space%2C%20Row%20Space%20and%20Rank.html)\u003cbr\u003e\n[Chapter 11 - Linear Transformation](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2011%20-%20Linear%20Transformation.html)\u003cbr\u003e\n[Chapter 12 - Eigenvalues and Eigenvectors](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2012%20-%20Eigenvalues%20and%20Eigenvectors.html)\u003cbr\u003e\n[Chapter 13b - Principal Component Analysis](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2013b%20-%20Principal%20Component%20Analysis.html)\u003cbr\u003e\n[Chapter 13a - Diagonalization](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2013a%20-%20Diagonalization.html)\u003cbr\u003e\n[Chapter 14 - Applications to Dynamic System](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2014%20-%20Applications%20to%20Dynamic%20System.html)\u003cbr\u003e\n[Chapter 15 - Innear Product and Orthogonality](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2015%20-%20Innear%20Product%20and%20Orthogonality.html)\u003cbr\u003e\n[Chapter 16 - Gram-Schmidt Process and QR Decomposition](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2016%20-%20Gram-Schmidt%20Process%20and%20QR%20Decomposition.html)\u003cbr\u003e\n[Chapter 17 - Symmetric Matrices , Quadratic Form and Cholesky Decomposition](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2017%20-%20Symmetric%20Matrices%20%2C%20Quadratic%20Form%20and%20Cholesky%20Decomposition.html)\u003cbr\u003e\n[Chapter 18 - The Singular Value Decomposition](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2018%20-%20The%20Singular%20Value%20Decomposition.html)\u003cbr\u003e\n[Chapter 19 - Multivariate Normal Distribution](https://www.weijiechen.com/linear-algebra-with-python-book/qmd/Chapter%2019%20-%20Multivariate%20Normal%20Distribution.html)\u003cbr\u003e\n\n## Screen Shots Examples\n![截图01](https://user-images.githubusercontent.com/59842360/122352881-6b043e80-cf47-11eb-9ca4-8f52c93c0efa.jpg)\n![截图03](https://user-images.githubusercontent.com/59842360/122352926-78212d80-cf47-11eb-9bb4-c33e03b7f085.jpg)\n![截图00](https://user-images.githubusercontent.com/59842360/122352940-7b1c1e00-cf47-11eb-9f80-e26454d4baaf.jpg)\n![截图00](https://user-images.githubusercontent.com/59842360/126001287-9f8de290-3940-4000-b5db-7b12d8b70005.jpg)\n![截图01](https://user-images.githubusercontent.com/59842360/126001290-d342db9f-76eb-41ce-98b2-208075bd4640.jpg)\n![截图02](https://user-images.githubusercontent.com/59842360/126001291-5cee0e1b-d02b-4912-9d27-65eaaff13178.jpg)\n![截图03](https://user-images.githubusercontent.com/59842360/126001463-0b262316-0032-482e-bb0f-1ccbbd3a2835.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweijie-chen%2Flinear-algebra-with-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweijie-chen%2Flinear-algebra-with-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweijie-chen%2Flinear-algebra-with-python/lists"}