Factor Analysis Example

The following example is used on the Factor Analysis web pages. 

Example

Example 1: The school system of a major city wanted to determine the characteristics of a great teacher, and so they asked 120 students to rate the importance of each of the following 9 criteria using a Likert scale of 1 to 10 with 10 representing that a particular characteristic is extremely important and 1 representing that the characteristic is not important.

  1. Setting high expectations for the students
  2. Entertaining
  3. Able to communicate effectively
  4. Having expertise in their subject
  5. Able to motivate
  6. Caring
  7. Charismatic
  8. Having a passion for teaching
  9. Friendly and easy-going

Figure 1 displays the data for the entire 120-person sample.

factor-analysis-example-1

Figure 1a – Sample (part 1)

factor-analysis-example-2

Figure 1b – Sample (part 2)

factor-analysis-example-3

Figure 1c – Sample (part 3)

factor-analysis-example-4

Figure 1d – Sample (part 4)

Descriptive Statistics

Figures 2 and 3 provide some characteristics about this sample.

Descriptive statistics teacher evaluations

Figure 2 –  Descriptive Statistics

Correlation matrix teacher evaluations

Figure 3  Correlation Matrix

Factor Analysis

The actual factor analysis based on the sample data is provided on subsequent web pages.

Examples Workbook

Click here to download the Excel workbook with the examples described on this webpage.

References

Rencher, A.C., Christensen, W. F. (2012) Methods of multivariate analysis (3nd Ed). Wiley
http://ndl.ethernet.edu.et/bitstream/123456789/27185/1/Alvin%20C.%20Rencher_2012.pdf

Penn State University (2022) Factor analysis
https://online.stat.psu.edu/stat505/lesson/12

65 thoughts on “Factor Analysis Example”

  1. Charles, Is there more to this example? It currently stops at the Correlation Matrix on the webpage. I imagine there is much more and I wonder if there might be a bug on this webpage.

    Reply
  2. on principal components analysis states that you can actually use eigenvectors as coefficients of regression. can you do that with factor analysis too?

    Reply
  3. Am writing to ask fir help because am doing research but on reaching chapter 4 am really stack especially in factor analysis and reliability. How do o go about

    Reply
  4. Hello. Do the number of discrete levels for each variable in this type of analysis have to be the same? For example what if one of the questions had a scale of say only 1-3 rather than 1-10?

    Reply
  5. Hi, I have a data sheet of survey I am trying to do factor analysis and T Test, everytime I am getting problem either with lower KMO Value or higher T Test result.
    Please advise there is any process to check the working on excel instead of SSPS

    Reply
  6. Sir I am doing factor analysis using the tool but there is showing numerical error in sqrt(diag) and partial correlation matrix. Please help me for getting KMO value.

    Reply
    • Jitendra,
      If you send me an Excel file with your data and analysis I will try to figure out what is happening. You can find my email address at
      Contact Us.
      I have observed that sometimes a numerical error is generated when the square root of a negative number is calculated. This is correct for calculations such as =SQRT(-2), but is not desirable for calculations such as =SQRT(-.000000000001), which should really return zero.
      Charles

      Reply
  7. Hello sir, a have a research work on factor analysis titled; correlation between pupils performance and factors affecting their performance. please, how can I work on this? Thanks, even as I await your response.

    Reply
    • Ahmed,
      If you look to the right of the referenced webpage, there is a list of Factor Analysis topics, the rest of the solution is distributed among the webpages corresponding to these topics.
      Charles

      Reply
  8. Hello Sir,
    thank your amazing Explanations,thus i was wondering if you could give us the file of data that you performed on it the Factor Analysis .

    Best Regards ,
    Bahlat Bilel

    Reply
  9. Dear Sir,
    Thanks for the tutorial. It’s very useful. Still, i have a problem in my research using factor analysis. My result on KMO’s test didn’t meet the requirement to be proceed with factor analysis.
    I have 16 main factors and 100 samples. I have to get the results of my questionnaire and the results showed that more than half of the data does not meet the criteria for further processing. Could you please tell me what should i do next?
    I would be great if you could response my question.
    Rizal

    Reply
    • Rizal,

      The usual approach with a low KMO is to delete the variables with a low KMO. Sometimes the low KMO indicates that the sample size is too small. You could also be in a situation where the data is not very suitable for factor analysis (no natural grouping into hidden variables).

      I suggest that the first thing you do is eliminate one or more of the variables with the lowest KMO and see whether that improves the situation. Keep doing this until you get a good result or you feel that you have eliminated too many variables.

      You could always proceed with the factor analysis despite a low KMO, but if the KMO indicator is as it is advertised, I wouldn’t count on getting very good results from the factor analysis.

      Some additional information can be found at:

      http://www-01.ibm.com/support/docview.wss?uid=swg21479963

      Charles

      Reply
  10. hi, any hints about non-orthogonal axis case
    as in
    http://www.utdallas.edu/~herve/Abdi-rotations-pretty.pdf
    I thought they are intended to calculate coordinates of a set of variables prooved to be correlated and are meant to be this way after data-reduction.Can you provide us with a better explanation?
    Will you consider including such a case within the awesome real-statistics.com?
    Do you have any useful references for your audience?

    Reply
    • I will eventually add non-orthogonal transformations/rotations. The idea of these rotations is to better capture the characteristics of the data even at the loss of orthogonality (i.e. keeping the axes perpendicular). Once I work on this I will provide a more complete explanation. The references I have listed in the Bibliography that cover Varimax usually also cover non-orthogonal rotations, but I am not sure any of them really explain how to perform the calculations necessary.
      Charles

      Reply
  11. very useful .. but how can it be interpreted? how many or which factors in the given example should be removed and which should be kept in the tool? and on what basis?

    Reply
  12. Dear Sir,

    I am waiting for your kind response to my last message. It would be really helpful for me getting your response!!

    Alam

    Reply
    • Dear Sir,

      Many thanks for your clear explanation that is exactly as like I have thought.

      I will get back to you, if I need any further help.

      Regards,

      Alam

      Reply
  13. Dear Sir,
    For my PhD research, I am trying to find the correlation between girls’ attitude towards mathematics and nine main factors: F1……F9. The data will be collected by Likert type five point rating scale.

    Can you please tell me what statistical analysis I can use to find the relationship of attitude and the factors. I need to know the name(s) of the statistical analysis process. Also kindly tell me how easily I can do it. Will SPSS be better or any other easy way to do it by Excel?

    It would be a great help for me, if you kindly reply ASAP.

    Alam

    Reply
    • Alam,
      It really depends on what your objective is. If you just want to find the correlation between girls’ attitude towards mathematics and each of the nine main factors, you can simply calculate nine correlation coefficients. If you want to determine whether any of these is different from zero, then you would need to perform a statistical test (probably based on Spearman’s or Kendall’s correlation coefficient). If you want to use these 9 factors as predictors of girl’s attitudes then you would need to use some form of Regression. I could go on. First you need to determine what you really want to demonstrate before I can give you a definitive answer.
      Charles

      Reply
      • Dear Sir,

        Many thanks for your clarifications.
        Actually, my collected data will be similar to the example you have placed above. Tell me what possible measurements can be used in my case of research about finding the relationship (correlations) of girls’ attitude towards mathematics and the predicted 9 factors. If I need to use regression analysis, please give me a brief idea on what I will get from this? Obviously in PhD level research varieties of possible analysis should be used. However, give me a list names of such statistical analysis so that I can practice those beforehand.

        Regards,

        Alam

        Reply
        • Alam,
          I guess I don’t understand your question since it seems that you are trying to conduct a factor analysis, but your question doesn’t seem to be connected to factor analysis.
          Charles

          Reply
          • Dear Sir,

            Sorry to bother you again. To make my question clear, I have attached the attitude measurement scale/ the survey questionnaire. Could you please look at it and kindly give me some suggestion about the statistics I should use to analyse the collected data from about 200 children among which 50% will be girls and 50% will be boys. Other characteristics will be the different types of schools such as, govt. non-govt., girls’ school, boys’ school, coeducation school, religious school, urban school, rural schools. I want to see what are the differences in children’s attitudes towards mathematics the different school context and the relationship of attitude with the nine predicted factors.

            I will eagerly wait for your kind response.

            Regards,

            Alam

          • Alam,

            Let’s take the simple case first. If you want to determine whether there is a significant difference between boys and girls in their overall score (maximum 60 points), just do a two sample t test or Mann-Whitney analysis of all the girls versus all the boys.

            If you want to test whether the type of school matters, you can do a two factor ANOVA where factor 1 is gender (boys, girls) and factor 2 is school type. Since your school types are overlapping you may need to run several ANOVA one for govt vs non govt, another for coed vs non coed, etc.

            If you do several analyses you need to make a experimentwise correction factor as explained on the website (the more analyses you run the more likely you will find a significant result even if there is none).

            Are the nine factors C, A, F, M, U, MD, S, T, EM? If so then you need to analyze these separately (or as another ANOVA factor). Here you are probably using the scores that the students got on just that factor.

            As you can see we are using the word “factor” in different ways.

            Charles

  14. sorry i wold like to know how can i use spps in analysing pre and post data base on serviCe
    Meaning is that to measure relationship and DIFFRENCIES of pr service enjoyment and after service enjoyment

    Reply
    • I am not familiar with SPSS, and so I cannot comment. I can comment on Excel and the Real Statistics Resource Pack for Excel.
      Charles

      Reply
  15. Sir,

    Kindly present comment on Figure 2, Figure 3.

    Are the values are significant?
    What is correlation values between variables and how much value show results are significant.

    significance of skew and kurt?

    Reply
  16. Hi Charles.
    Thanks for the great tutorials. could you please help how to make a decision after having all the tables, factors & PCAs ? how can we convert all these numbers into decision ? sorry but I am very new to stat and doing PCA & FA first time.

    Reply
    • Essentially Factor Analysis reduces the number of variables that need to be analyzed. If you started with say 20 variables and the factor analysis produces 4 variables, you perform whatever analysis you want on these 4 factor variables (instead of the original 20 variables). The input data to the analysis is the orginal data to which you need to apply the factor scores, as described on the webpage https://real-statistics.com/multivariate-statistics/factor-analysis/factor-scores/. I will try to better explain this on the website shortly.
      Charles

      Reply
    • The objective of factor analysis is to describe the interrelationships among a large number of variables and to explain these variables in terms of a smaller number of common underlying dimensions. This involves finding a way of condensing the information contained in some of the original variables into a smaller set of implicit variables (called factors) with a minimum loss of information. This provides better insight about the original information makes it easier to perform subsequent analyses (based on a smaller set of variables).

      Reply
    • The simplest way is to use the Real Statistics array function CORR. For the data on the referenced webpage the correlation matrix is calculated by the array formula =CORR(B4:J123).

      You can also construct the correlation matrix for the data in the m x n range R1 in Excel as follows. Let R2 be the 1 x n range containing the means of the columns in R1 and let R3 be the 1 x n range containing the population standard deviations of the columns in R1. The correlation matrix for R1 can be calculated by the array formula

      =MMULT(TRANSPOSE(R1-R2),R1-R2)/COUNT(R1)/MMULT(TRANSPOSE(R3),R3)

      This approach only works if R1 does not contain any missing data.

      If you want to perform the calculation in pure Excel then you can If there is no missing data in the range R1 you can use the following Excel formula:

      See the webpage https://real-statistics.com/multiple-regression/least-squares-method-multiple-regression/ for more information.

      Charles

      Reply

Leave a Comment