Reputation: 721
I was studying probabilistic pca from bishop's book, there an EM algo is provdied to calculate principal subspace.
Here M is MxM matrix, W is DxM matrix and (xn − x) is vector Dx1 matrix. Later in the book there is statement regarding the time complexity: "Instead, the most computationally demanding steps are those involving sums over the data set that are O(NDM)."
I was wondering if anyone can help me understanding the time complexity of the algorithm. Thanks in advance.
Upvotes: 1
Views: 337
Reputation: 66850
Let us go one by one
E[zn] = M^-1 W' (xn - x)
E[zn zn'] = sigma^2 M^-1 + E[zn]E[zn]'
Wnew = [SUM (xn-x) E[zn]'][SUM E[zn zn']]
sigma^2new = 1/ND SUM[||xn-x||^2 - 2E[zn]'Wnew'(xn-x) + Tr(E[zn zn']Wnew'Wnew)]
In total you get O(M^3) + O(NMD) + O(M^2D) + O(M^2N), and I suppose there is an assumption that M<=D<=N thus O(NMD)
Upvotes: 2