Latent Class Analysis
Sometimes, people belong to different groups (i.e., classes) that are due to nonobservable characteristics. This fact conditions their probability of selecting a particular response option when answering an item. Latent Class Analysis is a statistical model that estimates the probability that a person belongs to a particular class and the conditional probabilities of selecting a particular response option conditioning in the given class.
The likelihood
Suppose that a sample of people respond to items and is a vector that contains the scores to each item . Also, let denote the number of latent classes and , the specific class . Then, the likelihood of this response pattern , if it was observed times in the sample, can be written as
Assuming local independence, we can rewrite the conditional probabilities as
where denotes the score in item .
With this assumption, the likelihood can be rewritten as
and the logarithm likelihood becomes
First-order derivatives
The partial derivative of with respect to the probability of belonging to the class is
On the other hand, the partial derivative of with respect to the probability of scoring a particular while belonging to the class is
Second-order derivatives
The second partial derivative of with respect to the probability of belonging to the class is
The second partial derivative of with respect to the probability of scoring a particular or while belonging to the class or is
The second partial derivative of between the probability of belonging to the class and the probability of scoring a particular while belonging to the class is
Model for the conditional probabilities
Bernoulli
When is a bernoulli random variable, the conditional probability becomes where is the probability of endorsing item (i.e., ).
Its partial derivative with respect to is
Multinomial
Evaluating the likelihood
trick to prevent undeflow