pilot test: Semantic Similarity and Item Correlation
[abs.jpg]https://photo1303301880.cos.apguangzhou.myqcloud.com/2024/05/15/664397536973d.jpg First, the outrageous figure: Although this figure doesn't explain much, it's shocking enough. Because the absolute value was taken directly, rather than negated based on opposite semantics. Algorithm [Git]https://git.mxr612.top/PsychoScales/ItemStudy Using Emb
First, the outrageous figure:
Although this figure doesn't explain much, it's shocking enough. Because the absolute value was taken directly, rather than negated based on opposite semantics.
Algorithm
Use Embedding to calculate cosine similarity, call numpy to calculate Pearson of variables.
For each pair of items, output a point (similarity, correlation) for regression analysis.
If no special processing is done, it is easy to find that when similarity is high, the absolute value of correlation is high. Consider manually flipping reverse items.
This is the normal figure:
Next, plan to finish this dataset and then take a look. Then merge other datasets.
Data
The data was found online: Answers to Cattell's 16 Personality Factors Test with items from the IPIP. https://openpsychometrics.org/_rawdata/
According to the codebook, subscales A, B, and C were selected for computation. Not many subscales were selected, but with about fifty thousand data points, the computational load is not small either.
Comments
0No comments yet.