Quick Recap: Dimensions, PCA, EFA

Data Analysis for Psychology in R 3

Josiah King - josiah.king@ed.ac.uk

Psychology, PPLS

University of Edinburgh

overview

  • problem: too many variables
  • solution: reduce
  • how?: pca/efa

starting point

  • measurement is difficult, and often introduces error.

  • especially in psychology, we might use “multi-item measures” (n different “tests” of the same thing)

  • necessary because:
    • constructs are multi-faceted
    • individual tests have noise/error

therefore…

  • increased “dimensionality”

  • more columns in our data, but they all kind of mean the same thing.

example context

biscuits!

construct: how much people love biscuits


measurement instrument:
we get people to answer 6 questions rating how much they like:

  • digestives
  • hobnobs
  • rich tea
  • oreos
  • bourbon
  • choc-leibniz

for each Q, people rate it 1-7 (dislike <—> like)

ppt dgstv hbnb rcht oreo brbn choclbnz
PPT1 --- --- --- --- --- ---
PPT2 --- --- --- --- --- ---
PPT3 --- --- --- --- --- ---
PPT4 --- --- --- --- --- ---
PPT5 --- --- --- --- --- ---
PPT6 --- --- --- --- --- ---
PPT7 --- --- --- --- --- ---
PPT8 --- --- --- --- --- ---
PPT9 --- --- --- --- --- ---
PPT10 --- --- --- --- --- ---
PPT11 --- --- --- --- --- ---
PPT12 --- --- --- --- --- ---
PPT13 --- --- --- --- --- ---
PPT14 --- --- --- --- --- ---
PPT15 --- --- --- --- --- ---
PPT16 --- --- --- --- --- ---
PPT17 --- --- --- --- --- ---
PPT18 --- --- --- --- --- ---
PPT19 --- --- --- --- --- ---
PPT20 --- --- --- --- --- ---
PPT21 --- --- --- --- --- ---
PPT22 --- --- --- --- --- ---
PPT23 --- --- --- --- --- ---
PPT24 --- --- --- --- --- ---
PPT25 --- --- --- --- --- ---
PPT26 --- --- --- --- --- ---
PPT27 --- --- --- --- --- ---
PPT28 --- --- --- --- --- ---
PPT29 --- --- --- --- --- ---
PPT30 --- --- --- --- --- ---
PPT31 --- --- --- --- --- ---
PPT32 --- --- --- --- --- ---
PPT33 --- --- --- --- --- ---
PPT34 --- --- --- --- --- ---
PPT35 --- --- --- --- --- ---
PPT36 --- --- --- --- --- ---
PPT37 --- --- --- --- --- ---
PPT38 --- --- --- --- --- ---
PPT39 --- --- --- --- --- ---
PPT40 --- --- --- --- --- ---
PPT41 --- --- --- --- --- ---
PPT42 --- --- --- --- --- ---
PPT43 --- --- --- --- --- ---
PPT44 --- --- --- --- --- ---
PPT45 --- --- --- --- --- ---
PPT46 --- --- --- --- --- ---
PPT47 --- --- --- --- --- ---
PPT48 --- --- --- --- --- ---
PPT49 --- --- --- --- --- ---
PPT50 --- --- --- --- --- ---
PPT51 --- --- --- --- --- ---
PPT52 --- --- --- --- --- ---
PPT53 --- --- --- --- --- ---
PPT54 --- --- --- --- --- ---
PPT55 --- --- --- --- --- ---
PPT56 --- --- --- --- --- ---
PPT57 --- --- --- --- --- ---
PPT58 --- --- --- --- --- ---
PPT59 --- --- --- --- --- ---
PPT60 --- --- --- --- --- ---
PPT61 --- --- --- --- --- ---
PPT62 --- --- --- --- --- ---
PPT63 --- --- --- --- --- ---
PPT64 --- --- --- --- --- ---
PPT65 --- --- --- --- --- ---
PPT66 --- --- --- --- --- ---
PPT67 --- --- --- --- --- ---
PPT68 --- --- --- --- --- ---
PPT69 --- --- --- --- --- ---
PPT70 --- --- --- --- --- ---
PPT71 --- --- --- --- --- ---
PPT72 --- --- --- --- --- ---
PPT73 --- --- --- --- --- ---
PPT74 --- --- --- --- --- ---
PPT75 --- --- --- --- --- ---
PPT76 --- --- --- --- --- ---
PPT77 --- --- --- --- --- ---
PPT78 --- --- --- --- --- ---
PPT79 --- --- --- --- --- ---
PPT80 --- --- --- --- --- ---
PPT81 --- --- --- --- --- ---
PPT82 --- --- --- --- --- ---
PPT83 --- --- --- --- --- ---
PPT84 --- --- --- --- --- ---
PPT85 --- --- --- --- --- ---
PPT86 --- --- --- --- --- ---
PPT87 --- --- --- --- --- ---
PPT88 --- --- --- --- --- ---
PPT89 --- --- --- --- --- ---
PPT90 --- --- --- --- --- ---
PPT91 --- --- --- --- --- ---
PPT92 --- --- --- --- --- ---
PPT93 --- --- --- --- --- ---
PPT94 --- --- --- --- --- ---
PPT95 --- --- --- --- --- ---
PPT96 --- --- --- --- --- ---
PPT97 --- --- --- --- --- ---
PPT98 --- --- --- --- --- ---
PPT99 --- --- --- --- --- ---
PPT100 --- --- --- --- --- ---

the idea of reducing

  • our variables all measure the same thing (love of biscuits)
  • can we express this information more efficiently?
    • i.e. without having to use all 6 variables?
ppt dgstv hbnb rcht oreo brbn choclbnz unobserved thing
PPT1 --- --- --- --- --- --- ??
PPT2 --- --- --- --- --- --- ??
PPT3 --- --- --- --- --- --- ??
PPT4 --- --- --- --- --- --- ??
PPT5 --- --- --- --- --- --- ??
PPT6 --- --- --- --- --- --- ??
PPT7 --- --- --- --- --- --- ??
PPT8 --- --- --- --- --- --- ??
PPT9 --- --- --- --- --- --- ??
PPT10 --- --- --- --- --- --- ??
PPT11 --- --- --- --- --- --- ??
PPT12 --- --- --- --- --- --- ??
PPT13 --- --- --- --- --- --- ??
PPT14 --- --- --- --- --- --- ??
PPT15 --- --- --- --- --- --- ??
PPT16 --- --- --- --- --- --- ??
PPT17 --- --- --- --- --- --- ??
PPT18 --- --- --- --- --- --- ??
PPT19 --- --- --- --- --- --- ??
PPT20 --- --- --- --- --- --- ??
PPT21 --- --- --- --- --- --- ??
PPT22 --- --- --- --- --- --- ??
PPT23 --- --- --- --- --- --- ??
PPT24 --- --- --- --- --- --- ??
PPT25 --- --- --- --- --- --- ??
PPT26 --- --- --- --- --- --- ??
PPT27 --- --- --- --- --- --- ??
PPT28 --- --- --- --- --- --- ??
PPT29 --- --- --- --- --- --- ??
PPT30 --- --- --- --- --- --- ??
PPT31 --- --- --- --- --- --- ??
PPT32 --- --- --- --- --- --- ??
PPT33 --- --- --- --- --- --- ??
PPT34 --- --- --- --- --- --- ??
PPT35 --- --- --- --- --- --- ??
PPT36 --- --- --- --- --- --- ??
PPT37 --- --- --- --- --- --- ??
PPT38 --- --- --- --- --- --- ??
PPT39 --- --- --- --- --- --- ??
PPT40 --- --- --- --- --- --- ??
PPT41 --- --- --- --- --- --- ??
PPT42 --- --- --- --- --- --- ??
PPT43 --- --- --- --- --- --- ??
PPT44 --- --- --- --- --- --- ??
PPT45 --- --- --- --- --- --- ??
PPT46 --- --- --- --- --- --- ??
PPT47 --- --- --- --- --- --- ??
PPT48 --- --- --- --- --- --- ??
PPT49 --- --- --- --- --- --- ??
PPT50 --- --- --- --- --- --- ??
PPT51 --- --- --- --- --- --- ??
PPT52 --- --- --- --- --- --- ??
PPT53 --- --- --- --- --- --- ??
PPT54 --- --- --- --- --- --- ??
PPT55 --- --- --- --- --- --- ??
PPT56 --- --- --- --- --- --- ??
PPT57 --- --- --- --- --- --- ??
PPT58 --- --- --- --- --- --- ??
PPT59 --- --- --- --- --- --- ??
PPT60 --- --- --- --- --- --- ??
PPT61 --- --- --- --- --- --- ??
PPT62 --- --- --- --- --- --- ??
PPT63 --- --- --- --- --- --- ??
PPT64 --- --- --- --- --- --- ??
PPT65 --- --- --- --- --- --- ??
PPT66 --- --- --- --- --- --- ??
PPT67 --- --- --- --- --- --- ??
PPT68 --- --- --- --- --- --- ??
PPT69 --- --- --- --- --- --- ??
PPT70 --- --- --- --- --- --- ??
PPT71 --- --- --- --- --- --- ??
PPT72 --- --- --- --- --- --- ??
PPT73 --- --- --- --- --- --- ??
PPT74 --- --- --- --- --- --- ??
PPT75 --- --- --- --- --- --- ??
PPT76 --- --- --- --- --- --- ??
PPT77 --- --- --- --- --- --- ??
PPT78 --- --- --- --- --- --- ??
PPT79 --- --- --- --- --- --- ??
PPT80 --- --- --- --- --- --- ??
PPT81 --- --- --- --- --- --- ??
PPT82 --- --- --- --- --- --- ??
PPT83 --- --- --- --- --- --- ??
PPT84 --- --- --- --- --- --- ??
PPT85 --- --- --- --- --- --- ??
PPT86 --- --- --- --- --- --- ??
PPT87 --- --- --- --- --- --- ??
PPT88 --- --- --- --- --- --- ??
PPT89 --- --- --- --- --- --- ??
PPT90 --- --- --- --- --- --- ??
PPT91 --- --- --- --- --- --- ??
PPT92 --- --- --- --- --- --- ??
PPT93 --- --- --- --- --- --- ??
PPT94 --- --- --- --- --- --- ??
PPT95 --- --- --- --- --- --- ??
PPT96 --- --- --- --- --- --- ??
PPT97 --- --- --- --- --- --- ??
PPT98 --- --- --- --- --- --- ??
PPT99 --- --- --- --- --- --- ??
PPT100 --- --- --- --- --- --- ??

a perfect world

perfect measurements

  • if the only reason people differ on these variables is because of “how much they love biscuits”, and each Q is a perfect measure of that, and we might see:
ppt dgstv hbnb rcht oreo brbn choclbnz
PPT1 6 6 6 6 6 6
PPT2 4 4 4 4 4 4
PPT3 4 4 4 4 4 4
PPT4 3 3 3 3 3 3
PPT5 3 3 3 3 3 3
PPT6 2 2 2 2 2 2
PPT7 5 5 5 5 5 5
PPT8 7 7 7 7 7 7
PPT9 3 3 3 3 3 3
PPT10 4 4 4 4 4 4
PPT11 2 2 2 2 2 2
PPT12 4 4 4 4 4 4
PPT13 3 3 3 3 3 3
PPT14 4 4 4 4 4 4
PPT15 3 3 3 3 3 3
PPT16 3 3 3 3 3 3
PPT17 5 5 5 5 5 5
PPT18 6 6 6 6 6 6
PPT19 5 5 5 5 5 5
PPT20 2 2 2 2 2 2
PPT21 6 6 6 6 6 6
PPT22 6 6 6 6 6 6
PPT23 4 4 4 4 4 4
PPT24 4 4 4 4 4 4
PPT25 5 5 5 5 5 5
PPT26 5 5 5 5 5 5
PPT27 5 5 5 5 5 5
PPT28 4 4 4 4 4 4
PPT29 5 5 5 5 5 5
PPT30 6 6 6 6 6 6
PPT31 3 3 3 3 3 3
PPT32 5 5 5 5 5 5
PPT33 3 3 3 3 3 3
PPT34 5 5 5 5 5 5
PPT35 4 4 4 4 4 4
PPT36 5 5 5 5 5 5
PPT37 5 5 5 5 5 5
PPT38 5 5 5 5 5 5
PPT39 4 4 4 4 4 4
PPT40 2 2 2 2 2 2
PPT41 4 4 4 4 4 4
PPT42 4 4 4 4 4 4
PPT43 3 3 3 3 3 3
PPT44 4 4 4 4 4 4
PPT45 4 4 4 4 4 4
PPT46 5 5 5 5 5 5
PPT47 1 1 1 1 1 1
PPT48 4 4 4 4 4 4
PPT49 4 4 4 4 4 4
PPT50 3 3 3 3 3 3
PPT51 4 4 4 4 4 4
PPT52 4 4 4 4 4 4
PPT53 4 4 4 4 4 4
PPT54 6 6 6 6 6 6
PPT55 4 4 4 4 4 4
PPT56 4 4 4 4 4 4
PPT57 4 4 4 4 4 4
PPT58 4 4 4 4 4 4
PPT59 5 5 5 5 5 5
PPT60 2 2 2 2 2 2
PPT61 3 3 3 3 3 3
PPT62 3 3 3 3 3 3
PPT63 6 6 6 6 6 6
PPT64 3 3 3 3 3 3
PPT65 6 6 6 6 6 6
PPT66 3 3 3 3 3 3
PPT67 4 4 4 4 4 4
PPT68 3 3 3 3 3 3
PPT69 5 5 5 5 5 5
PPT70 1 1 1 1 1 1
PPT71 3 3 3 3 3 3
PPT72 5 5 5 5 5 5
PPT73 4 4 4 4 4 4
PPT74 4 4 4 4 4 4
PPT75 4 4 4 4 4 4
PPT76 4 4 4 4 4 4
PPT77 5 5 5 5 5 5
PPT78 5 5 5 5 5 5
PPT79 5 5 5 5 5 5
PPT80 4 4 4 4 4 4
PPT81 4 4 4 4 4 4
PPT82 1 1 1 1 1 1
PPT83 6 6 6 6 6 6
PPT84 4 4 4 4 4 4
PPT85 2 2 2 2 2 2
PPT86 2 2 2 2 2 2
PPT87 4 4 4 4 4 4
PPT88 7 7 7 7 7 7
PPT89 3 3 3 3 3 3
PPT90 5 5 5 5 5 5
PPT91 4 4 4 4 4 4
PPT92 3 3 3 3 3 3
PPT93 6 6 6 6 6 6
PPT94 5 5 5 5 5 5
PPT95 3 3 3 3 3 3
PPT96 5 5 5 5 5 5
PPT97 4 4 4 4 4 4
PPT98 6 6 6 6 6 6
PPT99 3 3 3 3 3 3
PPT100 5 5 5 5 5 5

perfect measurements

  • if the only reason people differ on these variables is because of “how much they love biscuits”, and each Q is a perfect measure of that, and we might see:
perfect_world |> select(-ppt) |> cor()
         dgstv hbnb rcht oreo brbn choclbnz
dgstv        1    1    1    1    1        1
hbnb         1    1    1    1    1        1
rcht         1    1    1    1    1        1
oreo         1    1    1    1    1        1
brbn         1    1    1    1    1        1
choclbnz     1    1    1    1    1        1
perfect_world |> select(-ppt) |> plot()

perfect measurements

Can we express this information more efficiently? (can we “reduce”?)

yes!

  • “people either score 1 on all 6 Qs, or 2 on all 6 Qs, or 3..”

^ one dimension, captures everything

ppt dgstv hbnb rcht oreo brbn choclbnz unobserved thing
PPT1 6 6 6 6 6 6 ??
PPT2 4 4 4 4 4 4 ??
PPT3 5 5 5 5 5 5 ??
PPT4 5 5 5 5 5 5 ??
PPT5 7 7 7 7 7 7 ??
PPT6 3 3 3 3 3 3 ??
PPT7 6 6 6 6 6 6 ??
PPT8 5 5 5 5 5 5 ??
PPT9 5 5 5 5 5 5 ??
PPT10 4 4 4 4 4 4 ??
PPT11 5 5 5 5 5 5 ??
PPT12 3 3 3 3 3 3 ??
PPT13 6 6 6 6 6 6 ??
PPT14 5 5 5 5 5 5 ??
PPT15 5 5 5 5 5 5 ??
PPT16 4 4 4 4 4 4 ??
PPT17 2 2 2 2 2 2 ??
PPT18 3 3 3 3 3 3 ??
PPT19 6 6 6 6 6 6 ??
PPT20 6 6 6 6 6 6 ??
PPT21 4 4 4 4 4 4 ??
PPT22 7 7 7 7 7 7 ??
PPT23 5 5 5 5 5 5 ??
PPT24 6 6 6 6 6 6 ??
PPT25 5 5 5 5 5 5 ??
PPT26 2 2 2 2 2 2 ??
PPT27 4 4 4 4 4 4 ??
PPT28 5 5 5 5 5 5 ??
PPT29 5 5 5 5 5 5 ??
PPT30 4 4 4 4 4 4 ??
PPT31 5 5 5 5 5 5 ??
PPT32 2 2 2 2 2 2 ??
PPT33 3 3 3 3 3 3 ??
PPT34 3 3 3 3 3 3 ??
PPT35 4 4 4 4 4 4 ??
PPT36 6 6 6 6 6 6 ??
PPT37 5 5 5 5 5 5 ??
PPT38 5 5 5 5 5 5 ??
PPT39 3 3 3 3 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??
PPT91 3 3 3 3 3 3 ??
PPT92 2 2 2 2 2 2 ??
PPT93 4 4 4 4 4 4 ??
PPT94 3 3 3 3 3 3 ??
PPT95 5 5 5 5 5 5 ??
PPT96 5 5 5 5 5 5 ??
PPT97 7 7 7 7 7 7 ??
PPT98 4 4 4 4 4 4 ??
PPT99 4 4 4 4 4 4 ??
PPT100 5 5 5 5 5 5 ??

perfect measurements

  • whatever we do (PCA, EFA, take a mean/sum score), reducing down to 1 thing would capture 100% of the variance - we wouldn’t lose anything



in fact, we don’t even need 6 Qs to begin with. If we have perfect measurement, we could just ask 1 Q.!

perfect_world |> select(-ppt) |> scree()

reality

problems:

  • in reality, measures aren’t perfect.

  • “how much do you like hobnobs?” isn’t a perfect measure of someone’s love of biscuits in general.

  • two people might equally like hobnobs, and one might choose 5 while the other might choose 6

    • possibly because of mood while answering
    • possibly because one of them was more hungry
    • possibly because one of them had recently had a hobnob
    • …
ppt dgstv hbnb rcht oreo brbn choclbnz
PPT1 2 3 1 1 2 3
PPT2 3 1 2 3 1 2
PPT3 5 6 4 6 3 6
PPT4 5 4 4 6 5 7
PPT5 5 7 7 6 6 6
PPT6 7 6 7 5 6 6
PPT7 7 6 5 4 4 4
PPT8 4 4 1 4 2 4
PPT9 5 5 3 4 4 3
PPT10 3 5 4 4 3 6
PPT11 3 3 3 5 4 3
PPT12 4 6 5 5 4 7
PPT13 6 4 3 5 4 4
PPT14 4 4 3 3 1 3
PPT15 5 5 5 4 5 5
PPT16 4 3 4 3 3 4
PPT17 5 3 3 3 2 4
PPT18 7 6 3 5 4 4
PPT19 2 3 3 3 3 3
PPT20 2 2 3 3 3 4
PPT21 5 3 5 3 4 6
PPT22 5 5 5 5 5 5
PPT23 3 5 4 3 3 4
PPT24 5 5 4 4 2 4
PPT25 4 6 4 4 3 5
PPT26 5 3 3 4 3 3
PPT27 5 6 4 5 4 6
PPT28 5 3 4 3 3 4
PPT29 7 5 6 7 5 6
PPT30 6 5 3 4 5 5
PPT31 5 6 4 5 4 6
PPT32 6 6 4 6 6 7
PPT33 5 4 5 5 4 6
PPT34 6 4 6 4 4 6
PPT35 1 4 2 3 3 1
PPT36 4 2 3 5 2 6
PPT37 2 3 3 3 2 4
PPT38 3 4 3 5 5 5
PPT39 7 6 7 5 6 6
PPT40 1 2 2 4 1 5
PPT41 5 4 4 4 3 4
PPT42 7 3 5 3 3 3
PPT43 5 3 2 2 4 5
PPT44 3 6 3 5 4 4
PPT45 2 4 3 4 3 3
PPT46 7 5 4 6 5 5
PPT47 6 6 4 5 4 5
PPT48 5 6 4 5 4 5
PPT49 3 4 3 3 3 5
PPT50 3 3 2 3 3 1
PPT51 3 4 3 2 4 3
PPT52 6 6 5 4 3 6
PPT53 2 5 6 4 4 5
PPT54 5 5 4 5 4 6
PPT55 6 6 4 7 6 7
PPT56 2 3 3 3 3 3
PPT57 5 2 6 4 4 4
PPT58 6 5 4 4 5 4
PPT59 5 5 5 4 4 5
PPT60 4 4 4 2 4 3
PPT61 5 4 5 4 4 5
PPT62 3 3 2 3 3 4
PPT63 7 7 5 6 5 6
PPT64 5 5 4 7 4 5
PPT65 4 2 5 2 3 3
PPT66 5 3 5 4 4 4

scenario 1 - there’s 1 dimension, all else is noise.

scenario 1

If there is something that these items all share, we can still express the information with less (we can still “reduce”).

e.g.:

  • “people tend to be high on all 6 Qs, medium on all 6, low on all 6”

^ one dimension, captures a lot of “why people score high/low” on individual questions

ppt dgstv hbnb rcht oreo brbn choclbnz
PPT1 2 3 1 1 2 3
PPT2 3 1 2 3 1 2
PPT3 5 6 4 6 3 6
PPT4 5 4 4 6 5 7
PPT5 5 7 7 6 6 6
PPT6 7 6 7 5 6 6
PPT7 7 6 5 4 4 4
PPT8 4 4 1 4 2 4
PPT9 5 5 3 4 4 3
PPT10 3 5 4 4 3 6
PPT11 3 3 3 5 4 3
PPT12 4 6 5 5 4 7
PPT13 6 4 3 5 4 4
PPT14 4 4 3 3 1 3
PPT15 5 5 5 4 5 5
PPT16 4 3 4 3 3 4
PPT17 5 3 3 3 2 4
PPT18 7 6 3 5 4 4
PPT19 2 3 3 3 3 3
PPT20 2 2 3 3 3 4
PPT21 5 3 5 3 4 6
PPT22 5 5 5 5 5 5
PPT23 3 5 4 3 3 4
PPT24 5 5 4 4 2 4
PPT25 4 6 4 4 3 5
PPT26 5 3 3 4 3 3
PPT27 5 6 4 5 4 6
PPT28 5 3 4 3 3 4
PPT29 7 5 6 7 5 6
PPT30 6 5 3 4 5 5
PPT31 5 6 4 5 4 6
PPT32 6 6 4 6 6 7
PPT33 5 4 5 5 4 6
PPT34 6 4 6 4 4 6
PPT35 1 4 2 3 3 1
PPT36 4 2 3 5 2 6
PPT37 2 3 3 3 2 4
PPT38 3 4 3 5 5 5
PPT39 7 6 7 5 6 6
PPT40 1 2 2 4 1 5
PPT41 5 4 4 4 3 4
PPT42 7 3 5 3 3 3
PPT43 5 3 2 2 4 5
PPT44 3 6 3 5 4 4
PPT45 2 4 3 4 3 3
PPT46 7 5 4 6 5 5
PPT47 6 6 4 5 4 5
PPT48 5 6 4 5 4 5
PPT49 3 4 3 3 3 5
PPT50 3 3 2 3 3 1
PPT51 3 4 3 2 4 3
PPT52 6 6 5 4 3 6
PPT53 2 5 6 4 4 5
PPT54 5 5 4 5 4 6
PPT55 6 6 4 7 6 7
PPT56 2 3 3 3 3 3
PPT57 5 2 6 4 4 4
PPT58 6 5 4 4 5 4
PPT59 5 5 5 4 4 5
PPT60 4 4 4 2 4 3
PPT61 5 4 5 4 4 5
PPT62 3 3 2 3 3 4
PPT63 7 7 5 6 5 6
PPT64 5 5 4 7 4 5
PPT65 4 2 5 2 3 3
PPT66 5 3 5 4 4 4

scenario 1

  • all the variables correlate at a similar level with all the others

  • 1 dimension captures most of the variance

what information do we lose?
there are 5 other dimensions that don’t explain anything shared across questions:

  • some people have a specific preference/dislike for digestives
  • some people have a specific preference/dislike for hobnobs
  • some people have a specific preference/dislike for rich tea
  • …
  • …
scenario_1 |> select(-ppt) |> cor() |> round(2)
         dgstv hbnb rcht oreo brbn choclbnz
dgstv     1.00 0.45 0.38 0.33 0.38     0.38
hbnb      0.45 1.00 0.34 0.40 0.38     0.40
rcht      0.38 0.34 1.00 0.27 0.40     0.39
oreo      0.33 0.40 0.27 1.00 0.39     0.42
brbn      0.38 0.38 0.40 0.39 1.00     0.42
choclbnz  0.38 0.40 0.39 0.42 0.42     1.00
scenario_1 |> select(-ppt) |> scree()

PCA and EFA

PCA & EFA are about reducing to new dimensions without losing too much

  • the only real differences:
    • conceptual: is the dimension a “common cause” (EFA) or a “summary composite” (PCA)
      • if a “common cause” then we need it to be theoretically meaningful
    • practical: do we want to let these new dimensions be correlated? (EFA, rotated)

scenario 1 - EFA

  • if there’s just 1 thing driving ‘why people score high/low on these questions’?, and everything else is specific preferences for specific biscuit types, unrelated to one another… then:

  • the 1-factor model will look best

  • if we try to add more factors, we just end up with factors that have only 1 item.

    • this isn’t helpful - these factors don’t give us something ‘shared’. they just give us the hobnob-specific variation. we’re not reducing anything.
myefa1A <- fa(scenario_1[,-1], nfactors=1)

print(myefa1A$loadings, cutoff=.3)

Loadings:
         MR1  
dgstv    0.626
hbnb     0.644
rcht     0.569
oreo     0.579
brbn     0.638
choclbnz 0.656

                 MR1
SS loadings    2.303
Proportion Var 0.384
myefa1B <- fa(scenario_1[,-1], nfactors=2, rotate="oblimin")

print(myefa1B$loadings, cutoff=.3)

Loadings:
         MR1    MR2   
dgstv     0.665       
hbnb      0.588       
rcht      0.653       
oreo             0.995
brbn      0.603       
choclbnz  0.587       

                MR1   MR2
SS loadings    1.92 1.015
Proportion Var 0.32 0.169
Cumulative Var 0.32 0.490

scenario 2 - there are 2 important dimensions

scenario 2 - what if..

  • what if there’s another useful dimension?

  • in other words: what if there’s not just 1 thing driving ‘why people score high/low on these questions’?

*different data*

ppt dgstv hbnb rcht oreo brbn choclbnz unobserved thing 1 unobserved thing 2
PPT1 3 1 2 4 3 4 ?? ??
PPT2 3 1 1 4 2 4 ?? ??
PPT3 2 2 2 6 6 4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6 3 4 4 5 3 ?? ??
PPT49 7 4 4 4 3 3 ?? ??
PPT50 4 4 5 4 5 5 ?? ??
PPT51 7 3 3 5 5 3 ?? ??
PPT52 4 4 4 4 3 4 ?? ??
PPT53 5 2 3 5 5 3 ?? ??
PPT54 4 3 7 5 5 3 ?? ??
PPT55 6 5 7 5 5 5 ?? ??
PPT56 5 3 5 5 5 3 ?? ??
PPT57 3 3 4 5 4 3 ?? ??
PPT58 4 3 2 6 6 3 ?? ??
PPT59 4 2 3 5 4 4 ?? ??
PPT60 6 5 4 3 3 4 ?? ??
PPT61 4 2 4 3 4 2 ?? ??
PPT62 5 4 2 4 4 4 ?? ??
PPT63 7 3 4 5 5 4 ?? ??
PPT64 4 2 3 6 6 5 ?? ??
PPT65 3 2 3 3 3 2 ?? ??
PPT66 4 2 4 2 2 2 ?? ??
PPT67 5 4 4 5 4 3 ?? ??
PPT68 6 4 2 6 4 4 ?? ??

it’s all in the correlations

there are patterns in the correlation matrix.

scenario_2 |> select(-ppt) |> cor() |> round(2)
         dgstv hbnb rcht oreo brbn choclbnz
dgstv     1.00 0.42 0.42 0.14 0.17     0.16
hbnb      0.42 1.00 0.45 0.18 0.13     0.19
rcht      0.42 0.45 1.00 0.18 0.15     0.18
oreo      0.14 0.18 0.18 1.00 0.32     0.37
brbn      0.17 0.13 0.15 0.32 1.00     0.32
choclbnz  0.16 0.19 0.18 0.37 0.32     1.00
scenario_2 |> select(-ppt) |> cor() |> heatmap()

more than 1 dimension

scenario_2 |> select(-ppt) |> scree()

scenario 2 - EFA

1 factor explains 26%

myefa2A <-fa(scenario_2[,-1], nfactors = 1)

print(myefa2A$loadings, cutoff = 0.3)

Loadings:
         MR1  
dgstv    0.568
hbnb     0.600
rcht     0.607
oreo     0.417
brbn     0.382
choclbnz 0.432

                 MR1
SS loadings    1.556
Proportion Var 0.259

2 factors explains 38%

myefa2B <-fa(scenario_2[,-1], nfactors = 2,
             rotate="oblimin")

print(myefa2B$loadings, cutoff = 0.3)

Loadings:
         MR1    MR2   
dgstv     0.632       
hbnb      0.664       
rcht      0.673       
oreo             0.602
brbn             0.530
choclbnz         0.609

                 MR1   MR2
SS loadings    1.294 1.014
Proportion Var 0.216 0.169
Cumulative Var 0.216 0.385

where do the rotations come in?

  • the point of rotations is to make a cleaner “simple structure”
    • items loading on to one factor and not onto others
  • the meaning of the factors are defined by their loadings, so this changes their meanings.
  • oblique rotations allow factors to correlate, which might be desirable if we think that to be the case

scenario 2 - EFA oblique

Allowing our dimensions to be correlated, we get a nice clean pattern:
Why do people differ on these 6 Qs?

  1. it partly depends on whether they like/dislike non-chocolatey biscuits (MR1)
  2. it partly depends on whether they like/dislike chocolatey biscuits (MR2)

and these two dimensions are correlated - if you like non-chocolatey, typically you like chocolatey!

^ this seems reasonable, no?

myefa2B <-fa(scenario_2[,-1], nfactors = 2,
             rotate="oblimin")

print(myefa2B$loadings, cutoff = 0.3)

Loadings:
         MR1    MR2   
dgstv     0.632       
hbnb      0.664       
rcht      0.673       
oreo             0.602
brbn             0.530
choclbnz         0.609

                 MR1   MR2
SS loadings    1.294 1.014
Proportion Var 0.216 0.169
Cumulative Var 0.216 0.385

oblique/orthogonal

  • when 2 factors correlate, their combination explains variance in the data.

  • if we ask for uncorrelated dimensions, (orthogonal/no rotation) this variance ends up in the loadings

    • more cross loadings >> harder to define the factors

scenario 2 - EFA orthogonal

Why do people differ on these 6 Qs?

  1. it partly depends on whether they like/dislike non-chocolatey biscuits (and to a lesser extent oreos and choc-leibniz) (MR1)

  2. and independently from 1, it partly depends on whether they like/dislike chocolatey biscuits specifically (MR2)

myefa2C <-fa(scenario_2[,-1], nfactors = 2,
             rotate="varimax")

print(myefa2C$loadings, cutoff = 0.3)

Loadings:
         MR1    MR2   
dgstv     0.623       
hbnb      0.660       
rcht      0.669       
oreo      0.324  0.504
brbn             0.443
choclbnz  0.340  0.508

                 MR1   MR2
SS loadings    1.576 0.732
Proportion Var 0.263 0.122
Cumulative Var 0.263 0.385

practice

VISCHT

Variance explained

Identification of factors

Salience of items

Cross-loadings

Heywood cases

Theoretical coherence

… and when in doubt, parsimony