How is GVIF calculated for categorical variables?Also is there any other way to detect multi co-linearity of categorical variables? I was tring to find a way to remove the redundant categorical variables as features. I believe GVIF would give  high value for the redundant/multicollinear categorical variables. Please let me know if my thinking is correct, and also how do I calculate/interpret GVIF 
Note: Using Python
 A: After some searching , I can answer the first part myself. 
I found the implementation of GVIF in R in the 'CAR' pacakage for vif funtion.
following are the steps used to calculate the GVIF in that function:


*

*Create dummies (one hot encoding) for all categorical attributes.

*Drop one category for each categorical attribute, or else the final values will go haywire

*Let A be the correlation matrix of the one hot encoded variables of the attribute under consideration.

*Let B be the correlation matrix of all the other attributes in the data set (one hot encoded as well as numerical) excluding the ones in A.

*Let C be the correlation matrix of variables considered in A as well as B.

*GVIF = (det(A).det(B)) / det(C)

*Since these values will be large for categorical variables and small (usual VIF) for numerical values we have to have some scaling mechanism to compare them. We do so by calculating the following value:
(GVIF) raised to (1/(2*degrees of freedom))
where degrees of freedom = (categories in a attribute - 1) ; For numerical it is just 1
Cr:Fox & Monnet 
