When you have a large volume of data, it can be useful to regroup similar interviews into groups (clusters) with similar objects: this is called Cluster Analysis. If the groups are very homogeneous, then the analysis of each group will sufficiently describe the population. There are a great number of variants of the same method called the k-means.
We look for a partition in two classes:

We randomly select two prototypes:

We associate the points to their closest centres:

We calculate the barycentres:

We obtain a stable partition:

The methods depend on the distance metrics used:
Euclidean distance is used as a metric and variance is used as a measure of cluster scatter. The number of clusters k is an input parameter: an inappropriate choice of k may yield poor results. To measure the partition’s quality, we calculate each scatter’s inertia. We know, thanks to Huygens theory, that regardless of the partition, the sum of the Intra Group Variance and the Inter Group Variance is constant.
We calculate the following:
info % = Variance between clusters/ (Variance between clusters + variance within cluster)
This obtains the percentage of information remaining in spite of the regrouping. By applying a few typology tests with a different number of groups, we will be able to choose the most judicious partition.
To perform a typology (cluster) analysis:
general tab, select typology.active tab (for example, drag and drop them from the questionnaire list).inactive tab.num of groups, specify the number of groups you want to include in your analysis.results to view the analysis.
One page of results is generated for each group you specified. When you open a page, you will see the counts, percentage, sigma, base and significance within that group.
You can change the specific settings used for the analysis. To do so, click analysis options.... For details, see analysis options.
It is possible to create a variable based on your analysis. To do so, click create variable.... For details, see creating a variable.
Once you have generated your results, you can view a log that allows you to review the quality of the typology. To do so, in the general tab click log.... The log file opens in a dedicated window. From here, you can browse the log or save it to your computer as an HTML file. At the end of the log file, the typology selected as the best run is indicated.