A toy data set holds configurations of two ferromagnetically coupled spins,

PHYSICS · Multi-part · Fermi University Physics · Mathematical Methods for Physics · Computational Physics · Linear algebra and vector spaces

Scientific Computing for Physicists, Ch Learning from physical data: regression, classification and principal components

Problem

A toy data set holds N=16N=16 configurations x=(s1,s2)\mathbf{x}=(s_1,s_2) of two ferromagnetically coupled spins, sj=±1s_j=\pm1, sampled at a temperature where aligned pairs are the more likely: 55 copies each of (+1,+1)(+1,+1) and (−1,−1)(-1,-1), and 33 copies each of (+1,−1)(+1,-1) and (−1,+1)(-1,+1). No configuration carries a label. ((a)) Find the mean configuration and the covariance matrix C=XTX/(N−1)C=X^{\mathsf{T}}X/(N-1) of the centred data XX. ((b)) Find the eigenvalues and unit eigenvectors of CC, and the fraction of the total variance carried by the first principal component. ((c)) Write the first principal component x⋅v1\mathbf{x}\cdot\mathbf{v}_1 in terms of the magnetisation per spin m=(s1+s2)/2m=(s_1+s_2)/2, and give its value for each of the four configurations. ((d)) A second data set, drawn at a temperature so high that the coupling is irrelevant, holds 44 copies of each of the four configurations. Find its covariance matrix, and say what principal component analysis can report about its direction of greatest variance.

Browse the problem library