How to Perform Factor Analysis in Python(Step by Step)

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 54

  • @loogsnyakwardyoh4854
    @loogsnyakwardyoh4854 4 роки тому +4

    the correct column name is "Unnamed: 0". df.drop(['Unnamed: 0'], axis = 1, inplace = True) works...

  • @mariamedina5970
    @mariamedina5970 2 роки тому +1

    This is by far the best video on the internet to explain factor analysis and all the steps necessary! Great work!

  • @inusun
    @inusun 5 років тому +4

    Great video, helped out a lot it processing my data using factor analysis for my data science class.

  • @백영래-u3x
    @백영래-u3x 2 роки тому +1

    df = drop(['unnamed:0'], axis=1, inplace = True) This one works.

  • @austin_adetunji
    @austin_adetunji 2 роки тому

    Wow, this is great. i wish i can like this video multiple times

  • @rajeshghosh4344
    @rajeshghosh4344 3 роки тому

    Even after appending the site package directory the factor_analyzer is not importing. Can you help?

  • @luisady8990
    @luisady8990 4 роки тому +1

    If you have trouble w/factor analyzer:
    1. Open cmd and paste: pip install factor_analyzer
    2. Once it is successfully installed, paste the command again and get the file path it is downloaded in (first line after the command).
    3. Follow the rest of the steps in the video.

  • @williamkanaan7554
    @williamkanaan7554 4 роки тому

    When I type fa.fit(df), it tells me there is an error "ValueError: Found array with 0 sample(s) (shape=(0, 38)) while a minimum of 1 is required by FactorAnalyzer." but when I check my document there is not ligne with 0 values, what can I do please?

  • @aysenzumrutsonmez3699
    @aysenzumrutsonmez3699 3 роки тому

    I had an ModuleNotFoundError for factor_analyzer in the first step. How i solve this error? Please help me

  • @xiangyu9445
    @xiangyu9445 3 роки тому +1

    where can I find your Jupyter notebook?

    • @KindsonTheTechPro
      @KindsonTheTechPro  2 роки тому

      Would you like to join and 6 Weeks Intensive Data Science Course that begins this week? Let me know on mail@kindsonthegenius.com.

  • @elhamahmadi8673
    @elhamahmadi8673 2 роки тому

    Hi, I have one question. if we want to use FA or PCA for feature selection of all types of data(without dropping string type of data) how can we do that? Is there any alternative to apply?

  • @matangaelisha2116
    @matangaelisha2116 3 роки тому

    i cant see the link to the dataset please

  • @sharp389
    @sharp389 4 роки тому +1

    do you know of algorithms to use other criteria to select factors? like cng package in R? Horn's PA, etc.?

  • @tallyxh6477
    @tallyxh6477 4 роки тому +2

    This video litterally saved me and my Master's Dissertation. Great explanations, easy to understand and follow. thank you very much!!

    • @samuelceciliochucuyamamani561
      @samuelceciliochucuyamamani561 3 роки тому

      Hello! previously I was using Minitab and obtaining the factor scoring coefficients and then graphing.
      I don't know how to get that with python, I hope you can help me please.
      Saludos

  • @spef7396
    @spef7396 2 роки тому

    Thank you very much, final year computer science but very little experience in statistics etc. this was a massive help

  • @diepnguyen8928
    @diepnguyen8928 3 роки тому +1

    Could you explain for me why I have different results while implementing Factor Analysis in Python and STATA? There are differences in both scree plot and the value of loading factors :(( Don't know which is the correct one now :( Thank you for your support!

  • @Sudo007
    @Sudo007 5 років тому +1

    Please, tell me what the values in the matrix signify.

    • @TieMaxx
      @TieMaxx 4 роки тому

      Answers to a questionnaire about personality (Big-Five traits). A1 through 5 represent questions about agreeableness, N is neuroticism, C is conscientiousness, E is extraversion and O is openness to experience. 1 represents an answer of -2 and 5 is actually +2. It does not really matter though, because they are all getting standardized by the standard variation and the mean. For example one question might be "I am interested in talking about abstract topics". -2 (in the matrix: 1.0) would mean that the statement does not describe you at all, while +2 (in the matrix: 5.0) means, it describes you perfectly. etc. etc.

  • @kennedybwire9435
    @kennedybwire9435 2 роки тому

    Hi, that is great work.

  • @tarunsiga3610
    @tarunsiga3610 3 роки тому +1

    Could you explain me on what basis the factors were selected in FactorAnalyzer

    • @KindsonTheTechPro
      @KindsonTheTechPro  3 роки тому

      Nice question but the explanation is not trivial. We consider the factor loading of each variable which tells us the entent to which the variable relates with the factor. We then select factors with highest loadings. I'll recomment you read up Principal Components Analysis(PCA) as it helps you understand FA.
      www.kindsonthegenius.com/pca-tutorial-1-how-to-perform-principal-components-analysis-pca/
      www.kindsonthegenius.com/principal-components-analysispca-in-python-step-by-step/
      www.kindsonthegenius.com/basics-of-factor-analysis-for-data-scientists/
      Question, What is Factor Analysis ua-cam.com/video/s2ffkELXsHc/v-deo.html

  • @quiosaevaristo7746
    @quiosaevaristo7746 Рік тому

    Hi, that is an amazing video.

  • @brettgregory3622
    @brettgregory3622 4 роки тому

    Any ideas on how one could go about getting goodness of fit indices? All my FAs are done in R purely because of these fit indices but I really want to completely move over to Python.

  • @uniongrob8194
    @uniongrob8194 3 роки тому +1

    Helpfull video, thanks!

  • @nnn-bb5tf
    @nnn-bb5tf 3 роки тому +1

    Thanks for this excellent video

  • @henny628
    @henny628 4 роки тому

    Hi, I am trying to analyse data with multiple factors over a series of time. Is there a way I can consult you off youtube?

  • @rajdeepkumarnath8944
    @rajdeepkumarnath8944 Місяць тому

    Thank You!

  • @chavianddavid
    @chavianddavid 4 роки тому

    Is there something called "Factor Scores" as well?

  • @vineetsodhani5398
    @vineetsodhani5398 5 років тому

    How does one load the factor analyzer package? Where does one find the package?

    • @Sudo007
      @Sudo007 5 років тому +1

      pip install factor_analyzer

  • @javiercmh
    @javiercmh 4 роки тому +1

    very useful as it is!!! thanks a ton!

  • @veronicam2102
    @veronicam2102 4 роки тому

    Thanks!! this video was very helpful to me :D

  • @inspiritlashi9994
    @inspiritlashi9994 3 роки тому

    This is such a great video.. Thank you so much

  • @phanthilanhuong1783
    @phanthilanhuong1783 4 роки тому

    Thank you for your sharing and fantastic guiding

  • @josephkarianjahi1467
    @josephkarianjahi1467 4 роки тому +1

    Good work!

  • @stepheneaster3166
    @stepheneaster3166 4 роки тому

    Hi, just finding this great video on FA, thanks for posting it. When I use the varimax orthogonal rotation and then use transform() to 'score' the dataframe with the factor model, the resulting factors do not have 0 correlation as expected from an orthogonal transformation. I'd like to take those factors as inputs into a clustering exercise but want non correlated factors (similar to PCA). Thanks in advance for any thoughts on where I might be going awry.

  • @Lernal
    @Lernal 4 роки тому

    good factor analysis for python

  • @Rskingfisher
    @Rskingfisher 4 роки тому

    In 15:51-16:07 you said ev=eigenvectors and v=eigenvalues.
    But during the scree plot, you said ev = eigenvalues.
    Which is correct?

  • @sindimazibuko1399
    @sindimazibuko1399 4 роки тому

    Can someone please help me figure out the name of the test I need to perform to see if my data is suitable for factor analysis? I can not seem to hear the name. Thank you in advance.

    • @qudsiyajan6485
      @qudsiyajan6485 4 роки тому +1

      KMO and Bartlett's test of sphericity can help you in knowing if data is suitable for factor analysis or not.....

  • @c.e.g.o4797
    @c.e.g.o4797 4 роки тому

    Thank you, bro.

  • @lucasmigge3159
    @lucasmigge3159 4 роки тому

    thank you very much

  • @al702893
    @al702893 3 роки тому +1

    You just copied datacamp's tutorial, including comments