Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

perform varimax rotation in python using numpy

I am working on principal component analysis of a matrix. I have already found the component matrix shown below

A = np.array([[-0.73465832 -0.24819766 -0.32045055]
              [-0.3728976   0.58628043 -0.63433607]
              [-0.72617152  0.53812819 -0.22846634]
              [ 0.34042864 -0.08063226 -0.80064174]
              [ 0.8804307   0.17166265  0.04381426]
              [-0.66313032  0.54576874  0.37964986]
              [ 0.286712    0.68305196  0.21769803]
              [ 0.94651412  0.14986739 -0.06825887]
              [ 0.40699665  0.73202276 -0.08462949]])

I need to perform varimax rotation in this component matrix but could not find the exact method and degree to rotate. Most of the examples are shown in R. However I need the method in python.

like image 918
Raj Subit Avatar asked Jul 13 '13 08:07

Raj Subit


Video Answer


1 Answers

I've looked up solutions for doing factor analysis in python on stack-overflow so many times, that I recently made my own package, fa-kit. Even though this is an old post, I'm throwing up this link in case there's anybody else in the future that gets here via google.

like image 111
bmcmenamin Avatar answered Oct 15 '22 00:10

bmcmenamin