Finding a correlation table

Anyone know how to get started with finding a correlation table of multiple features of muliple class?

3 comentarios

the cyclist
the cyclist el 11 de Dic. de 2023
Can you upload the data (or a small representative sample) that you want to find the correlation of? You can use the paper clip icon in the INSERT section of the toolbar.
Bijoya Bhattacharjee
Bijoya Bhattacharjee el 12 de Dic. de 2023
Bijoya Bhattacharjee
Bijoya Bhattacharjee el 12 de Dic. de 2023
Here is one class with three features. I have three classes similar to this

Iniciar sesión para comentar.

Respuestas (2)

Jalal Khan
Jalal Khan el 12 de Dic. de 2023

0 votos

Load your dataset into MATLAB or create one using arrays. Ensure that you have a matrix where each row represents an observation, and each column represents a feature, and another column represents the class label.
Use the corrcoef function to calculate the correlation matrix for all features
If you want to compute the correlation matrix for each class separately, you can use the splitapply function.
You can use MATLAB's plotting functions to visualize the correlation matrix. For example, you might use imagesc for a heatmap.
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 12 de Dic. de 2023

0 votos

That you can adjust w.r.t. your exercise.

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Dic. de 2023

Respondida:

el 12 de Dic. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by