By: S.M. Sajjadi Islamic Azad University, Parsian Branch, Parsian,Iran.

Slides:



Advertisements
Similar presentations
General Linear Model With correlated error terms  =  2 V ≠  2 I.
Advertisements

Chapter Matrices Matrix Arithmetic
pH Emission Spectrum Emission(3 λ) λ1 λ2 λ3 A λ λ1λ2λ3λ1λ2λ3 A Ex 1 Emission(3 λ) λ1λ2λ3λ1λ2λ3 A Ex 2 Emission(3 λ) λ1λ2λ3λ1λ2λ3 A Ex 3 λ1λ2λ3λ1λ2λ3.
بنام خدا 1. An Introduction to multi-way analysis Mohsen Kompany-Zareh IASBS, Nov 1-3, Session one.
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Fitting the PARAFAC model Giorgio Tomasi Chemometrics group, LMT,MLI, KVL Frederiksberg. Denmark
Mathematics. Matrices and Determinants-1 Session.
Maths for Computer Graphics
In the Name of God. Morteza Bahram Department of Chemistry, Faculty of Science, Urmia University, Urmia, Iran
Economics 2301 Matrices Lecture 12. Inner Product Let a' be a row vector and b a column vector, both being n-tuples, that is vectors having n elements:
Two-way Analysis of Three-way Data. Two-way Analysis of Two-way Data = X D Y D = X Y 23.
Review of Matrix Algebra
Cache Memories May 5, 2008 Topics Generic cache memory organization Direct mapped caches Set associative caches Impact of caches on performance EECS213.
1 Neural Nets Applications Vectors and Matrices. 2/27 Outline 1. Definition of Vectors 2. Operations on Vectors 3. Linear Dependence of Vectors 4. Definition.
1 Matrices Rosen 6 th ed., §3.8 2 Matrices A matrix is a rectangular array of numbers.A matrix is a rectangular array of numbers. An m  n (“m by n”)
PARAFAC is an N -linear model for an N-way array For an array X, it is defined as  denotes the array elements  are the model parameters  F is the number.
1 2. The PARAFAC model Quimiometria Teórica e Aplicada Instituto de Química - UNICAMP.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Matrix Approach to Simple Linear Regression KNNL – Chapter 5.
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Fundamentals of matrices
Chapter 1: Matrices Definition 1: A matrix is a rectangular array of numbers arranged in horizontal rows and vertical columns. EXAMPLE:
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
Chapter 2 Systems of Linear Equations and Matrices Section 2.4 Multiplication of Matrices.
MATLAB Basics With a brief review of linear algebra by Lanyi Xu modified by D.G.E. Robertson.
LINEAR ALGEBRA. 2 BASIC CONCEPTS A Matrix is a rectangular arrays of numbers (real or complex) enclosed in brackets for instance The numbers a 11,…a mn.
1 6. Other issues Quimiometria Teórica e Aplicada Instituto de Química - UNICAMP.
1 A Fast-Nonegativity-Constrained Least Squares Algorithm R. Bro, S. D. Jong J. Chemometrics,11, , 1997 By : Maryam Khoshkam.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 6 Solving Normal Equations and Estimating Estimable Model Parameters.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Matrices A matrix is a table or array of numbers arranged in rows and columns The order of a matrix is given by stating its dimensions. This is known as.
Efficient computation of Robust Low-Rank Matrix Approximations in the Presence of Missing Data using the L 1 Norm Anders Eriksson and Anton van den Hengel.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/21 Module.
Matrices Matrices A matrix (say MAY-trix) is a rectan- gular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal.
2009/9 1 Matrices(§3.8)  A matrix is a rectangular array of objects (usually numbers).  An m  n (“m by n”) matrix has exactly m horizontal rows, and.
Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.
Discrete Mathematics 1 Kemal Akkaya DISCRETE MATHEMATICS Lecture 16 Dr. Kemal Akkaya Department of Computer Science.
Prepared by Deluar Jahan Moloy Lecturer Northern University Bangladesh
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
THREE-WAY COMPONENT MODELS pages By: Maryam Khoshkam 1.
Introduction to Linear Algebra Mark Goldman Emily Mackevicius.
Matrices: Simplifying Algebraic Expressions Combining Like Terms & Distributive Property.
3.6 Solving Systems Using Matrices You can use a matrix to represent and solve a system of equations without writing the variables. A matrix is a rectangular.
1 Cache Memory. 2 Outline Cache mountain Matrix multiplication Suggested Reading: 6.6, 6.7.
1.3 Solutions of Linear Systems
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
Matrices Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 A matrix is a rectangular array of real numbers. Each entry.
Quimiometria Teórica e Aplicada Instituto de Química - UNICAMP
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
Rank Annihilation Based Methods. p n X The rank of matrix X is equal to the number of linearly independent vectors from which all p columns of X can be.
LINEAR MODELS AND MATRIX ALGEBRA
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Matrices. Matrix A matrix is an ordered rectangular array of numbers. The entry in the i th row and j th column is denoted by a ij. Ex. 4 Columns 3 Rows.
An Introduction to Model-Free Chemical Analysis Hamid Abdollahi IASBS, Zanjan Lecture 3.
13.4 Product of Two Matrices
12-1 Organizing Data Using Matrices
Estimation Techniques for High Resolution and Multi-Dimensional Array Signal Processing EMS Group – Fh IIS and TU IL Electronic Measurements and Signal.
Structure from motion Input: Output: (Tomasi and Kanade)
CIS 5590: Large-Scale Matrix Decomposition Tensors and Applications
MATRICES MATRIX OPERATIONS.
2.2 Introduction to Matrices
Structure from motion Input: Output: (Tomasi and Kanade)
Writing Cache Friendly Code
Presentation transcript:

By: S.M. Sajjadi Islamic Azad University, Parsian Branch, Parsian,Iran

ScalarVector a = a (I×1) = Matrix A (I×J) = Three-way array A (I×J×K) =

c1c1 EEM c2c

Constructing Three-way Data Array by Stacking Two-way Data For two-way arrays it is useful to distinguish between special parts of the array, such as rows and columns. What are spatial parts in the three-way array? X( :, :, 1 ) = X1 X( :, :, 2 ) = X2 X(4×3×2) X(2×4×3)?? X(4×2×3)??

Rows, Columns and Tubes Row Tube Column 2 3 4

2 3 4 x jk (4×1) X( :, j, k ) Rows, Columns and Tubes Column

2 3 4 x jk (4×1) x ik (3×1) X( i, :, k )X( :, j, k ) Rows, Columns and Tubes Row Column

2 3 4 x jk (4×1) x ij (2×1) X( i, j, : ) x ik (3×1) X( i, :, k )X( :, j, k ) Rows, Columns and Tubes Row Tube Column

2 3 4 Horizental Vertical

2 3 4 X( i, :, : ) Horizental

Vertical X( :, j, : ) X( i, :, : ) Horizental

X( :, :, k ) Vertical X( i, :, : ) Horizental X( :, j, : )

There are five EEMs of different samples that contain two analytes.

2 3 4

2 3 4 X( :, : ) 4 63

permute ( X, [1 3 2] ) X ( :, : ) ?? ? 4 62

2 3 4 Matrisizing : X ( :, : ) permute ( X, [2 …)

There are five EEMs of different samples that contain two analytes. Please construct three kinds of three-way data array, i.e., consider each EEM as frontal, horizontal and vertical slices.

Vector multiplication a T b = scalar:  Inner product = scalar = I I  Outer product = Martix = I J I J

Vec-operator Vec of matrix A is the IJ vector AB = matrix = I J J K I K vectorized IJ

Kronecker product Hadamard product Khatri–Rao product * Tucker Weighted PARAFAC PARAFAC 

AB = 3 B3 B 4 B4 B 7 B7 B 3 B3 B 5 B5 B 8 B8 B 4 B4 B 12 B 3×4× 7×3× 5×8× 4×12× = kron(A,B)

AB = 3 B3 B 4 B4 B 7 B7 B 3 B3 B 5 B5 B 8 B8 B 4 B4 B 12 B =

A(I×J) B(K×M),

A= B = A 3× × × × × × × × = kron(A(:,1),B(:,1))  kron(A(:,2),B(:,2))

A and B are partitioned matrices with an equal number of partitions. A =[a 1, a 2,…, a n ] B =[b 1, b 2,…, b n ];. A B =

Hadamard or element wise product, which is defined for matrices A and B of equal size ( I × J )

+= K J I K J I K J I

-= K J I K J I K J I

K J I + E A B C Q G P R I J K

K J I = + E A B C N N N XkXk A B 2 2 = c k1 If N=2: c k2

Horizental Slices Vertical Slices Frontal Slices X k = AD k B = c k1 a 1 b 1 + c k2 a 2 b 2 Across all slices X k, the components a r and b r remain the same, only their weights d k1,..., d k2 are different. XkXk A B 2 2 = DkDk

There are excitation, emission and concentration matrix of two analytes.

= = X Sensitivity Matrix C S S = C + X Calibration step: Prediction Step: c = S + x

Frontal Slices X k = AD k B = c k1 a 1 b 1 + ·· ·+c kR a R b R We need to estimate the parameters A and B of the calibration model, which we can then use for future predictions.

Sample1: [c 11 c 12 ] Z (1) (4×3) Sample2: [c 21 c 22 ] Z (2) (4×3) 1.Vectorizing of Matrices Sample3: [c 31 c 32 ] Z (3) (4×3)

2. Folding of Vectorized Matrices Folding 3. Obtaining Sensitivity Matrix = S = C + X  For unknown matrix Z 0 calculate

Only contribution of first component Only contribution of another of component Matricized SVD a1,b1a1,b1 a2,b2a2,b2 K J I = A B C

b1b1 I J a1a1 b2b2 I J a2a2. A B =

Alternating least squares PARAFAC algorithm Algorithms for fitting the PARAFAC model are usually based on alternating least squares. This is advantageous because the algorithm is simple to implement, simple to incorporate constraints in, and because it guarantees convergence. However, it is also sometimes slow.

 The PARAFAC algorithm begins with an initial guess of the two loading modes The solution to the PARAFAC model can be found by alternating least squares (ALS) by successively assuming the loadings in two modes known and then estimating the unknown set of parameters of the last mode.  Determining the rank of three-way array

 Suppose initial estimates of B and C loading modes are given = K J I Matricizing I JK I N N

K N C N Khatri-Rao = I JK N I A = XZ + N B N J C  B=Z A

X (I×J×K)X (J×IK) B =X Z B + = J IK N J N Matricizing X (J×IK) = B (J×N) (C  A) T = B Z B T

X (I×J×K)X (K×IJ) = K IJ N K IKN Matricizing C =X Z C + X (K×IJ) = C (K×N) (B  A) T = C Z C T

5. Go to step 1 until relative change in fit is small Reconstructing Three-way Array from obtained A and B and C profiles 4-2. Calculating the norm of residual array

Initialize B and C 2 A = X (I×JK ) Z A (Z A Z A ) −1 3 B = X (J×IK ) Z B (Z B Z B ) −1 4 C = X (K×JI ) Z C (Z C Z C ) −1 Given: X of size I × J × K Go to step 1 until relative change in fit is small 5 ZA=CBZA=CB ZB=CAZB=CA ZC=BAZC=BA

 Please simulate a Three-way data by these matrices. There are excitation, emission and concentration matrix of two analytes.  Please do Khatri-Rao product of excitation and emission matrix.

 Requires excessive memory  An updating scheme by Harshman and Carroll and Chang o Slow convergence

با سپاس