This document outlines the key topics covered in Chapter 2 of the book "Linear Algebra" by Jin Ho Lee. The chapter introduces fundamental concepts in linear algebra including scalars, vectors, matrices, and tensors. It describes operations on these objects such as matrix multiplication and vector dot products. Important matrix properties and special types of matrices like identity, inverse, diagonal, and symmetric matrices are defined. Linear dependence, spans, and vector spaces are discussed. Various vector and matrix norms are also introduced.
Higher braiding gates, a new kind of quantum gate, are introduced. These are matrix solutions of the polyadic braid equations (which differ from the generalized Yang-Baxter equations). Such gates support a special kind of multi-qubit entanglement which can speed up key distribution and accelerate the execution of algorithms. Ternary braiding gates acting on three qubit states are studied in detail. We also consider exotic non-invertible gates which can be related to qubit loss, and define partial identities (which can be orthogonal), partial unitarity, and partially bounded operators (which can be non-invertible). We define two classes of matrices, the star and circle types, and find that the magic matrices (connected with the Cartan decomposition) belong to the star class. The general algebraic structure of the classes introduced here is described in terms of semigroups, ternary and 5-ary groups and modules. The higher braid group and its representation by higher braid operators are given. Finally, we show that for each multi-qubit state there exist higher braiding gates which are not entangling, and the concrete conditions to be non-entangling are given for the binary and ternary gates discussed.
The peer-reviewed International Journal of Engineering Inventions (IJEI) is started with a mission to encourage contribution to research in Science and Technology. Encourage and motivate researchers in challenging areas of Sciences and Technology.
A new kind of quantum gates, higher braiding gates, as matrix solutions of the polyadic braid equations (different from the generalized Yang–Baxter equations) is introduced. Such gates lead to another special multiqubit entanglement that can speed up key distribution and accelerate algorithms. Ternary braiding gates acting on three qubit states are studied in detail. We also consider exotic non-invertible gates, which can be related with qubit loss, and define partial identities (which can be orthogonal), partial unitarity, and partially bounded operators (which can be non-invertible). We define two classes of matrices, star and circle ones, such that the magic matrices (connected with the Cartan decomposition) belong to the star class. The general algebraic structure of the introduced classes is described in terms of semigroups, ternary and 5-ary groups and modules. The higher braid group and its representation by the higher braid operators are given. Finally, we show, that for each multiqubit state, there exist higher braiding gates that are not entangling, and the concrete conditions to be non-entangling are given for the obtained binary and ternary gates.
Higher braiding gates, a new kind of quantum gate, are introduced. These are matrix solutions of the polyadic braid equations (which differ from the generalized Yang-Baxter equations). Such gates support a special kind of multi-qubit entanglement which can speed up key distribution and accelerate the execution of algorithms. Ternary braiding gates acting on three qubit states are studied in detail. We also consider exotic non-invertible gates which can be related to qubit loss, and define partial identities (which can be orthogonal), partial unitarity, and partially bounded operators (which can be non-invertible). We define two classes of matrices, the star and circle types, and find that the magic matrices (connected with the Cartan decomposition) belong to the star class. The general algebraic structure of the classes introduced here is described in terms of semigroups, ternary and 5-ary groups and modules. The higher braid group and its representation by higher braid operators are given. Finally, we show that for each multi-qubit state there exist higher braiding gates which are not entangling, and the concrete conditions to be non-entangling are given for the binary and ternary gates discussed.
The peer-reviewed International Journal of Engineering Inventions (IJEI) is started with a mission to encourage contribution to research in Science and Technology. Encourage and motivate researchers in challenging areas of Sciences and Technology.
A new kind of quantum gates, higher braiding gates, as matrix solutions of the polyadic braid equations (different from the generalized Yang–Baxter equations) is introduced. Such gates lead to another special multiqubit entanglement that can speed up key distribution and accelerate algorithms. Ternary braiding gates acting on three qubit states are studied in detail. We also consider exotic non-invertible gates, which can be related with qubit loss, and define partial identities (which can be orthogonal), partial unitarity, and partially bounded operators (which can be non-invertible). We define two classes of matrices, star and circle ones, such that the magic matrices (connected with the Cartan decomposition) belong to the star class. The general algebraic structure of the introduced classes is described in terms of semigroups, ternary and 5-ary groups and modules. The higher braid group and its representation by the higher braid operators are given. Finally, we show, that for each multiqubit state, there exist higher braiding gates that are not entangling, and the concrete conditions to be non-entangling are given for the obtained binary and ternary gates.
New Oscillation Criteria for Second Order Neutral Difference Equationsinventionjournals
In this paper, we discuss the oscillatory properties of a class of second order neutral difference equation relating oscillation of these equation to existence of positive solutions to associated first order neutral difference inequalities. Our assumptions allow application to difference equations with delayed and advanced arguments, and not only. Examples are given to illustrate our results
JEE Mathematics/ Lakshmikanta Satapathy/ Indefinite Integration QA part 21/ Question on Indefinite integration is solved resolving the integrand into partial fractions
Introduction to Abstract Algebra by
D. S. Malik
Creighton University
John N. Mordeson
Creighton University
M.K. Sen
Calcutta University
It includes the most important sections of abstract mathematics like Sets, Relations, Integers, Groups, Permutation Groups, Subgroups and Normal Subgroups, Homomorphisms and Isomorphisms of Groups, Rings etc.
This book is grate not only for those who study in mathematics departments, but for all who want to start with abstract mathematics. Abstract mathematics is very important for computer sciences and engineering.
Bound State Solution of the Klein–Gordon Equation for the Modified Screened C...BRNSS Publication Hub
We present solution of the Klein–Gordon equation for the modified screened Coulomb potential (Yukawa) plus inversely quadratic Yukawa potential through formula method. The conventional formula method which constitutes a simple formula for finding bound state solution of any quantum mechanical wave equation, which is simplified to the form; 2122233()()''()'()()0(1)(1)kksAsBscsssskssks−++ψ+ψ+ψ=−−. The bound state energy eigenvalues and its corresponding wave function obtained with its efficiency in spectroscopy.
Key words: Bound state, inversely quadratic Yukawa, Klein–Gordon, modified screened coulomb (Yukawa), quantum wave equation
This book has been written mainly as an aid to Electrical/Electronic, Computer Engineering Technology students in the University and Polytechnic Education Sector preparing for Circuit Theory Examination aimed at achieving an improved result.
The book covers the National Board Technical Education i Nigeria Curriculum for Circuit Theory Courses in National Diploma and Higher National Diploma programmes.
Students are advice to attempt the questions on their own before writing the answer (solution). The analysis and solutions for each question is immediately after the problems (question).
ENGR. KADIRI, KAMORU OLUWATOYIN Ph, D
International Journal of Computational Engineering Research(IJCER)ijceronline
International Journal of Computational Engineering Research (IJCER) is dedicated to protecting personal information and will make every reasonable effort to handle collected information appropriately. All information collected, as well as related requests, will be handled as carefully and efficiently as possible in accordance with IJCER standards for integrity and objectivity.
Exact Bound State Solution of Qdeformed Woods-Saxon Plus Modified Coulomb Pot...ijrap
In this work, we obtained an exact solution to Schrodinger equation using q-deformed Woods-Saxon plus modified Coulomb potential Using conventional Nikiforov-Uvarov method. We also obtained the energy eigen value and its associated total wave function . This potential with some suitable conditions reduces to two well known potentials namely: the Yukawa and coulomb potential. Finally, we obtained the numerical results for energy eigen value with different values of q as dimensionless parameter. The result shows that the values of the energies for different quantum number(n) is negative(bound state condition) and increases with an increase in the value of the dimensionless parameter(arbitrary constant). The graph in figure (1) shows the different energy levels for a particular quantum number.
New Oscillation Criteria for Second Order Neutral Difference Equationsinventionjournals
In this paper, we discuss the oscillatory properties of a class of second order neutral difference equation relating oscillation of these equation to existence of positive solutions to associated first order neutral difference inequalities. Our assumptions allow application to difference equations with delayed and advanced arguments, and not only. Examples are given to illustrate our results
JEE Mathematics/ Lakshmikanta Satapathy/ Indefinite Integration QA part 21/ Question on Indefinite integration is solved resolving the integrand into partial fractions
Introduction to Abstract Algebra by
D. S. Malik
Creighton University
John N. Mordeson
Creighton University
M.K. Sen
Calcutta University
It includes the most important sections of abstract mathematics like Sets, Relations, Integers, Groups, Permutation Groups, Subgroups and Normal Subgroups, Homomorphisms and Isomorphisms of Groups, Rings etc.
This book is grate not only for those who study in mathematics departments, but for all who want to start with abstract mathematics. Abstract mathematics is very important for computer sciences and engineering.
Bound State Solution of the Klein–Gordon Equation for the Modified Screened C...BRNSS Publication Hub
We present solution of the Klein–Gordon equation for the modified screened Coulomb potential (Yukawa) plus inversely quadratic Yukawa potential through formula method. The conventional formula method which constitutes a simple formula for finding bound state solution of any quantum mechanical wave equation, which is simplified to the form; 2122233()()''()'()()0(1)(1)kksAsBscsssskssks−++ψ+ψ+ψ=−−. The bound state energy eigenvalues and its corresponding wave function obtained with its efficiency in spectroscopy.
Key words: Bound state, inversely quadratic Yukawa, Klein–Gordon, modified screened coulomb (Yukawa), quantum wave equation
This book has been written mainly as an aid to Electrical/Electronic, Computer Engineering Technology students in the University and Polytechnic Education Sector preparing for Circuit Theory Examination aimed at achieving an improved result.
The book covers the National Board Technical Education i Nigeria Curriculum for Circuit Theory Courses in National Diploma and Higher National Diploma programmes.
Students are advice to attempt the questions on their own before writing the answer (solution). The analysis and solutions for each question is immediately after the problems (question).
ENGR. KADIRI, KAMORU OLUWATOYIN Ph, D
International Journal of Computational Engineering Research(IJCER)ijceronline
International Journal of Computational Engineering Research (IJCER) is dedicated to protecting personal information and will make every reasonable effort to handle collected information appropriately. All information collected, as well as related requests, will be handled as carefully and efficiently as possible in accordance with IJCER standards for integrity and objectivity.
Exact Bound State Solution of Qdeformed Woods-Saxon Plus Modified Coulomb Pot...ijrap
In this work, we obtained an exact solution to Schrodinger equation using q-deformed Woods-Saxon plus modified Coulomb potential Using conventional Nikiforov-Uvarov method. We also obtained the energy eigen value and its associated total wave function . This potential with some suitable conditions reduces to two well known potentials namely: the Yukawa and coulomb potential. Finally, we obtained the numerical results for energy eigen value with different values of q as dimensionless parameter. The result shows that the values of the energies for different quantum number(n) is negative(bound state condition) and increases with an increase in the value of the dimensionless parameter(arbitrary constant). The graph in figure (1) shows the different energy levels for a particular quantum number.
E-Cordial Labeling of Some Mirror GraphsWaqas Tariq
Let G be a bipartite graph with a partite sets V1 and V2 and G\' be the copy of G with corresponding partite sets V1\' and V2\' . The mirror graph M(G) of G is obtained from G and G\' by joining each vertex of V2 to its corresponding vertex in V2\' by an edge. Here we investigate E-cordial labeling of some mirror graphs. We prove that the mirror graphs of even cycle Cn, even path Pn and hypercube Qk are E-cordial graphs.
Embedding and np-Complete Problems for 3-Equitable GraphsWaqas Tariq
We present here some important results in connection with 3-equitable graphs. We prove that any graph G can be embedded as an induced subgraph of a 3-equitable graph. We have also discussed some properties which are invariant under embedding. This work rules out any possibility of obtaining a forbidden subgraph characterization for 3-equitable graphs.
Complex Number,
Mathematical Requirement,
Geometrical Requirement,
Conventions,
Representation,
Modulus And Argument,
Real Vs Complex Numbers ,
Purely Real Complex Number ,
Purely Imaginary Complex Number ,
Equality Between Two Complex Numbers ,
Operation on Complex Number ,
Polar Form of Complex Number ,
About Other Than Origin ,
Properties of Complex Number ,
Logarithm of Complex Number ,
Parametric Conversion,
De Moivre’s Theorem ,
Properties of the Arguments ,
Roots of a Complex Number ,
Analytical Complex Numbers ,
Limit & Continuity,
Poles & Zeros,
Complex Derivative ,
Complex Integration ,
IJERA (International journal of Engineering Research and Applications) is International online, ... peer reviewed journal. For more detail or submit your article, please visit www.ijera.com
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
GridMate - End to end testing is a critical piece to ensure quality and avoid...ThomasParaiso2
End to end testing is a critical piece to ensure quality and avoid regressions. In this session, we share our journey building an E2E testing pipeline for GridMate components (LWC and Aura) using Cypress, JSForce, FakerJS…
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIVladimir Iglovikov, Ph.D.
Presented by Vladimir Iglovikov:
- https://www.linkedin.com/in/iglovikov/
- https://x.com/viglovikov
- https://www.instagram.com/ternaus/
This presentation delves into the journey of Albumentations.ai, a highly successful open-source library for data augmentation.
Created out of a necessity for superior performance in Kaggle competitions, Albumentations has grown to become a widely used tool among data scientists and machine learning practitioners.
This case study covers various aspects, including:
People: The contributors and community that have supported Albumentations.
Metrics: The success indicators such as downloads, daily active users, GitHub stars, and financial contributions.
Challenges: The hurdles in monetizing open-source projects and measuring user engagement.
Development Practices: Best practices for creating, maintaining, and scaling open-source libraries, including code hygiene, CI/CD, and fast iteration.
Community Building: Strategies for making adoption easy, iterating quickly, and fostering a vibrant, engaged community.
Marketing: Both online and offline marketing tactics, focusing on real, impactful interactions and collaborations.
Mental Health: Maintaining balance and not feeling pressured by user demands.
Key insights include the importance of automation, making the adoption process seamless, and leveraging offline interactions for marketing. The presentation also emphasizes the need for continuous small improvements and building a friendly, inclusive community that contributes to the project's growth.
Vladimir Iglovikov brings his extensive experience as a Kaggle Grandmaster, ex-Staff ML Engineer at Lyft, sharing valuable lessons and practical advice for anyone looking to enhance the adoption of their open-source projects.
Explore more about Albumentations and join the community at:
GitHub: https://github.com/albumentations-team/albumentations
Website: https://albumentations.ai/
LinkedIn: https://www.linkedin.com/company/100504475
Twitter: https://x.com/albumentations
Large Language Model (LLM) and it’s Geospatial Applications
Ch.2 Linear Algebra
1. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Chapter 2 Linear Algebra
JIN HO LEE
2018-5-20
JIN HO LEE Chapter 2 Linear Algebra
2. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Contents
• 2.1 Scalars, Vectors, Matrices and Tensors
• 2.2 Multiplying Matrices and Vectors
• 2.3 Identity and Inverse Matrices
• 2.4 Linear Dependence and Span
• 2.5 Norms
• 2.6 Special Kinds of Matrices and Vectors
• 2.7 Eigendecomposition
• 2.8 Singular Value Decomposition
• 2.9 The Moore-Penrose Pseudoinverse
• 2.10 The Trace Operator
• 2.11 The Determinant
• 2.12 Example: Principal Components Analysis
JIN HO LEE Chapter 2 Linear Algebra
3. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.1 Scalars, Vectors, Matrices and Tensors
□ Definitions
• Scalar : A scalar is just a single number.
• Vectors : A vector is an array of numbers. x 가
n-dimensional vector 라면 x1, x2, · · · , xn ∈ R 이 존재해서
x =
x1
x2
...
xn
로 표현 가능하다. x1, x2, · · · , xn 을 x의 entry라고 한다.
JIN HO LEE Chapter 2 Linear Algebra
4. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.1 Scalars, Vectors, Matrices and Tensors
S 를 index set 이라고 하자. 예를 들어, x 의 dimension 이 7
이고 S = {1, 3, 6} 일 때, xS = {x1, x3, x6}를 의미한다. 또한
x−2 은 index 중 2가 아닌 x의 모든 entry 들의 집합을 의미한다.
즉, x−2 = {x1, x3, x4, x5, x6, x7}. 마찬가지로 x−S 는 index 가 S
의 원소가 아닌 x의 entry 들의 집합이다. 즉,
x−S = {x2, x4, x5, x7} 을 의미한다.
• Matrices : A matrix is a 2-dimensional array of numbers. If a
real-valued matrix A has a height of m and a width of n, then
we say that A ∈ Rm×n.
JIN HO LEE Chapter 2 Linear Algebra
5. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.1 Scalars, Vectors, Matrices and Tensors
Sometimes we write
A = (Ai,j)1≤j≤n
1≤i≤m
it means that
A =
A1,1 A1,2 · · · A1,n
...
...
...
...
Am,1 Am,2 · · · Am,n
matrix A의 i 번째 행을 Ai,: 로 표기한다. 마찬가지로 A의 j 번째
열을 A:,j 로 표기한다.
JIN HO LEE Chapter 2 Linear Algebra
6. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.1 Scalars, Vectors, Matrices and Tensors
real valued function f 가 있을 때 matrix 에 적용할 수 있는데,
방법은 entry를 각각 f로 보내는 것이다. 예를 들어 f(x) = 2x
이고 A =
[
1 2
3 4
]
이면 f(A)i,j =
[
f(1) f(2)
f(3) f(4)
]
=
[
2 4
6 8
]
이다.
• Tensors : 3차원 이상의 숫자 배열을 tensor 라고 한다. A 의
(i, j, k) coordinate를 Ai,j,k 로 쓰자.
• Transpose : The transpose of a matrix AT is the mirror
image of the matrix across a diagonal line, called the main
diagonal, that is
(AT
)i,j = Aj,i.
JIN HO LEE Chapter 2 Linear Algebra
7. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.2 Multiplying Matrices and Vectors
• matrix product : matrix A, B가 있을 때 matrix
multiplication C 는
Ci,j =
∑
k
Ai,kBk,j
로 정의된다. A 가 m × n matrix, B가 n × p matrix 이면 C는
m × p matrix 가 된다.
행렬의 크기(=행과 열의 갯수)가 같으면 element-wise
product(Hadamard product) A ⊙ B는 아래와 같의 정의된다:
(A ⊙ B)i,j = Ai,jBi,j.
JIN HO LEE Chapter 2 Linear Algebra
8. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.2 Multiplying Matrices and Vectors
두 개의 n- dimensional vector x, y 의 dot product x · y는 아래와
같이 정의된다:
x · y = xT
y
= x1y1 + · · · + xnyn
JIN HO LEE Chapter 2 Linear Algebra
9. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.3 Identity and Inverse Matrices
• Identity matrix : The n-dimensional identity matrix In
defined by
(In)i,j = δ(i, j)
where
δ(i, j) =
{
1 if i = j,
0 if i ̸= j,
• Matrix inverses : The matrix inverse of A is denoted as A−1,
and it is defined as the matrix such that
AA−1
= In.
JIN HO LEE Chapter 2 Linear Algebra
10. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.4 Linear Dependence and Span
scalar c1, · · · , cn 와 vector v(1), · · · , v(n) 가 있을 때
∑
i
civ(i)
= c1v(1)
+ · · · + ckv(n)
형태를 linear combination 이라고 한다.
vector 들의 집합 S = {v1, · · · , vn}가 있을 때, S가 span 하는
벡터공간 아래와 같이 정의된다:
{c1v1 + · · · + cnvn|c1, · · · , cn ∈ R}.
Example
v = [1, 2]T 일 때 {v1}가 span 하는 벡터공간은 아래와 같다:
{cv = [c, 2c]|c ∈ R}.
JIN HO LEE Chapter 2 Linear Algebra
11. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.4 Linear Dependence and Span
m × n matrix A의 column들로 이루어진 집합 {A:,1, · · · , A:,n}가
span하는 vector space 를 A의 column space 또는 range 라고
한다. 마찬가지로 A의 row들로 이루어진 집합 {A1,:, · · · , Am,:}
가 span하는 vector space 를 A의 row space라고 한다.
Definition
A set of vectors is linearly independent if no vector in the set
is a linear combination of the other vectors.
Definition
A square matrix with linearly dependent columns is known as
singular.
JIN HO LEE Chapter 2 Linear Algebra
12. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.5 Norms
Definition
A norm is any function f that satisfies the following properties:
• f(x) = 0 ⇒ x = 0
• f(x + y) ≤ f(x) + f(y) (the triangular inequality)
• ∀α ∈ R, f(αx) = |α|f(x)
JIN HO LEE Chapter 2 Linear Algebra
13. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.5 Norms
Example
The Lp norm is given by
||x||p =
(
∑
i
|xi|p
)1
p
for all p ∈ R, p ≥ 1. The L2 norm is known as the Euclidean
norm.
Example
Given a vector x = (x1, · · · , xn), the max norm is defined by
||x||∞ = max
i
|xi|.
JIN HO LEE Chapter 2 Linear Algebra
14. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.5 Norms
Example
Given a matrix A, the Frobenius norm is defined by
||A||F =
√∑
i,j
A2
i,j.
JIN HO LEE Chapter 2 Linear Algebra
15. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.6 Special Kinds of Matrices and Vectors
Definition
A matrix D is diagonal if Di,j = 0 for i ̸= j.
Given a vector v = (v1, · · · , vn), we write diag(v) to denote a
square diagonal matrix whose diagonal entries are given by the
entries of the vector v. For a vector v = (1, 2), we have
diag(v) =
[
1 0
0 2
]
It is clear that diag(v)x = v ⊙ x for any vector x. If vi ̸= 0 for
any i = 1, · · · , n, we denote
diag(v)−1
= diag([1/v1, · · · , 1/vn]T
).
JIN HO LEE Chapter 2 Linear Algebra
16. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.6 Special Kinds of Matrices and Vectors
A matrix A is symmetric if AT = A.
A unit vector is a vector with unit norm:
||x||2 = 1.
A vector x and a vector y are orthogonal to each other if
xTy = 0. If the vectors are not only orthogonal but also have
unit norm, we call them orthonormal.
A matrix A is orthogonal if
AAT
= AT
A = I.
This implies that
A−1
= AT
.
JIN HO LEE Chapter 2 Linear Algebra
17. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.7 Eigendecomposition
Definition
An eigenvector of a square matrix A is a non-zero vector v
such that multiplication by A alters only the scale of v:
Av = λv.
The scalar λ is known as the eigenvalue corresponding to this
eigenvector
eigenvector에 scalar product 를 해도 eigenvector 가 되므로
우리는 항상 unit eigenvector만 다루기로 하자.
JIN HO LEE Chapter 2 Linear Algebra
18. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.7 Eigendecomposition
Suppose that a matrix A has n linearly independent
eigenvectors, {v(1), · · · , v(n)}, with corresponding eigenvalues
{λ1, ..., λn}. We may concatenate all of the eigenvectors to
form a matrix V with one eigenvector per column:
V = [v(1), · · · , v(n)]. Likewise, we can concatenate the
eigenvalues to form a vector λ = [λ1, · · · , λn].
The eigendecomposition of A is then given by
A = V diag(λ) V−1
.
JIN HO LEE Chapter 2 Linear Algebra
19. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.8 Singular Value Decomposition(SVD)
A matrix A can be broken into product of 3 matrices as follow:
Am×n = Um×mΛm×nVT
n×n
where
• UTU = I, VTV = I,
• columns of U are consists of orthonormal eigenvectors of
AAT, (i.e. UTU = I)
• columns of V are consists of orthonormal eigenvectors of
ATA, (i.e. VTV = I)
• S is a diagonal matrix containing square roots of eigenvalues
from U or V in descending order.
JIN HO LEE Chapter 2 Linear Algebra
20. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.8 Singular Value Decomposition(SVD)
For a symmatric matrix A, we can write A = UΛUT since
ATA = AAT. Then we have
AT
A = UΛUT
UΛUT
= UΛ2
UT
= Udiag(λ)UT
.
This implies that Λ2 = diag(λ).
A matrix whose eigenvalues are all positive is called positive
definite. A matrix whose eigenvalues are all positive or
zero-valued is called positive semidefinite. Positive
semidefinite matrices are interesting because they guarantee
that ∀x, xTAx ≥ 0. Positive definite matrices additionally
guarantee that xTAx = 0 ⇒ x = 0.
JIN HO LEE Chapter 2 Linear Algebra
21. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.9 The Moore-Penrose Pseudoinverse
이번 절에서는 nonsquare matrix 의 matrix inversion에 대해
알아보자.
Definition
The pseudoinverse of A is defined as a matrix
A+
= lim
α↘0
(AT
A + αI)−1
AT
.
여기서 lim
α↘0
는 α가 양수인 상태에서 0으로 가까이 간다는
의미이다. 다른 책에서는 lim
δ→0
(ATA + δ2I)−1AT 로 표현했는데
두 개는 같은 의미이다. 자세한 내용은 아래 파일을 참고!
http://www.math.ucla.edu/~laub/33a.2.12s/
mppseudoinverse.pdf
JIN HO LEE Chapter 2 Linear Algebra
22. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.9 The Moore-Penrose Pseudoinverse
matrix A 의 SVD가 A = UDVT 일 때, psedoinverse는 아래와
같다:
A+
= VD+
UT
.
JIN HO LEE Chapter 2 Linear Algebra
23. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.10 The Trace Operator
Definition
The trace operator gives the sum of all of the diagonal entries
of a matrix:
Tr(A) =
∑
i
Ai,i.
Lemma
1. ||A|||F =
√
Tr(AAT).
2. Tr(A) = Tr(AT).
3-1. Tr(ABC) = Tr(CAB) = Tr(BCA).
3-2. More generaly, Tr(
∏n
i=1 F(i)) = Tr(F(n)
∏n−1
i=1 F(i)).
4. For, A ∈ Rm×n, B ∈ Rn×m, Tr(AB) = Tr(BA).
JIN HO LEE Chapter 2 Linear Algebra
24. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.11 The Determinant
The determinant of a square matrix, denoted det(A), is a
function mapping matrices to real scalars. The determinant is
equal to the product of all the eigenvalues of the matrix. The
absolute value of the determinant can be thought of as a
measure of how much multiplication by the matrix expands or
contracts space.
자세한 내용은 wiki의 determinant, cofactor expansion 을
참고하자!
JIN HO LEE Chapter 2 Linear Algebra
25. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
n-dimensional points {x(1), · · · , x(m)} 이 있다고 하자. 이번
절에서는 lossy comprehension에 대해 알아보자. 여기서 lossy
comprehension 이란, point 갯수는 줄이는데 precision은 조금만
낮추는 것을 의미한다.(즉, 데이터 수는 줄이지만 정보는 조금만
잃는 상태를 원한다)
한 가지 방법은 l n에 대해서 f : Rn → Rl 을 이용하여
encoding 하는 것이다. 각각의 i에 대해 f(x(i)) = c(i) 로 차원을
축소하고, decoder g : Rl → Rn 을 사용하여 다시 차원을
복귀시켜 원래의 값과 비슷하게 만드는것이 목표이다. 앞으로는
x ≈ g(f(x)) 로 만든 다음 두 값의 차이를 loss function 으로 놓고
그것을 minimize 하려고 한다.
JIN HO LEE Chapter 2 Linear Algebra
26. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
g 는 (n × l)− matrix D로 놓을 수 있다. 우리는 D를 orthonomal
이라고 가정하자.
f(x) = c 일 때, 우리의 목표는
c∗
= argmin
c
||x − g(c)||2
2
를 찾는 것이다. 이제 수식을 풀어보자.
||x − g(c)||2
2 = (x − g(c))T
(x − g(c))
= xT
x − xT
g(c) − g(c)T
x + g(x)T
g(c)
= xT
x − 2xT
g(c) + g(c)T
g(c) (1)
여기서 x, g(c)T ∈ Rn 이므로 matrix multiplication xTg(c)와
g(c)Tx 모두 실수이므로 xTg(c) = g(c)Tx 이다.
JIN HO LEE Chapter 2 Linear Algebra
27. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
수식 (1)에서 xTx는 x에 대한 함수이므로 argmin
c
에 의해
영향을 받지 않는다. 또한 g는 orthonormal matrix D라고
했으므로 DTD = Il 을 이용하여, (1)을 아래와 같이 쓸 수 있다.
c∗
= argmin
c
−2xT
Dc + cT
DT
Dc
= argmin
c
−2xT
Dc + cT
c (2)
수식 (2)의 함수 h(c) = −2xTDc + cTc의 minimum을 체크하기
위해 미분값이 0이 되는 조건을 체크해보자.
∇c(−2xT
Dc + cT
c) = −2DxT
+ 2c = 0
c = DT
x.
따라서 f(x) = DTx 이다.
JIN HO LEE Chapter 2 Linear Algebra
28. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
We define the PCA representation operation:
r(x) = g(f(x)) = DDT
x.
이제 최적의 D 를 찾아보자. D는 reconstruction error 가 작아야
하므로 아래의 식을 만족시키는 D∗ 를 찾으면 된다.
D∗
= argmin
D
√∑
i,j
(x
(i)
j − r(x
(i)
j ))2 subject to DT
D = Il
앞에서 D는 orthonormal 이라고 가정했기때문에 DTD = Il
조건이 들어갔다.
JIN HO LEE Chapter 2 Linear Algebra
29. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
먼저 l = 1인 경우에 대해 알아보자.
d∗
= argmin
d
∑
i
||x(i)
− ddT
x(i)
||2
2 subject to ||d||2 = 1. (3)
l = 1이므로 d = D는 (n × l) = (n × 1)− matrix 이므로
n-dimensional vector이다. 즉, matrix multiplication dTx(i) 의
결과는 실수이므로 ddTx(i) 는 d라는 vector에 dTx(i) 라는 scalar
를 scalar multiplication 한 것이어서 ddTx(i) = dTx(i)d 를 얻을
수 있다. 그리고 scalar 는 자기 자신의 transpose 이므로
(dTx(i))T = x(i)T
d 이다.
JIN HO LEE Chapter 2 Linear Algebra
30. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
Thus we have
d∗
= argmin
d
∑
i
||x(i)
− dT
x(i)
d||2
2 subject to ||d||2 = 1
= argmin
d
∑
i
||x(i)
− x(i)T
dd||2
2 subject to ||d||2 = 1
Let X ∈ Rm×n and Xi,: = x(i)T
∈ Rn. It is clear that
||X||F =
n∑
i=1
||x(i)T
||F. (4)
JIN HO LEE Chapter 2 Linear Algebra
31. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
(4)와 trace의 성질 Tr(A) = Tr(AT)을 이용하여 (3)은 아래와
같이 변형할 수 있다:
d∗
= argmin
d
∑
i
||X − ddT
x(i)
||2
2 subject to ||d||2 = 1
because (x(i)T
− ddTx(i)T
)T = x(i) − x(i)ddT. We can simplify
the Frobenious norm as follows:
argmin
d
||X − XddT||2
F
= argmin
d
Tr((X − XddT)T(X − XddT))
= argmin
d
(−Tr(XTXddT) − Tr(ddTXTX) + Tr(ddTXTXddT))
JIN HO LEE Chapter 2 Linear Algebra
32. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
(XTXddT)T = ddTXTX 이므로 (2.52)를 이용하여 위의 식을
아래와 같이 변형할 수 있다:
= argmin
d
(−2Tr(XT
XddT
) + Tr(XT
XddT
ddT
)).
이제 constraint dTd = 1 을 이용해서 다시 정리해보자.
argmin
d
(−2Tr(XT
XddT
)+Tr(XT
XddT
ddT
)) subject to dT
d = 1
= argmin
d
(−2Tr(XT
XddT
) + Tr(XT
XddT
) subject to dT
d = 1
= argmin
d
(−Tr(XT
XddT
)) subject to dT
d = 1
JIN HO LEE Chapter 2 Linear Algebra
33. Chapter 2
Linear
Algebra
JIN HO LEE
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.12 Example: Principal Components Analysis
= argmax
d
Tr(XT
XddT
) subject to dT
d = 1
식 (2.52)를 이용해서 아래의 결과를 얻을 수 있다:
= argmax
d
Tr(dT
XT
Xd) subject to dT
d = 1
이 문제는 eigendecomposition 을 이용하여 풀 수 있다. (d 는
XTX의 가장 큰 eigenvector의 eigenvector).
l 1의 경우에 행렬 D는 l largest eigenvalue의 eigenvector
들이다.
JIN HO LEE Chapter 2 Linear Algebra