I have 2 datasets each of a (12x12) matrix. I want a qqplot between 2 datasets. Brief the functions to be used in detail . Do i need to fit any distribution and then plot?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have 2 datasets each of a (12x12) matrix. I want a qqplot between these 2 datasets. Brief the steps and the functions in detail. Do i need to fit any distribution and then plot?
0 Kommentare
Antworten (1)
Yash
am 22 Aug. 2023
Hi,
A quantile-quantile plot (qq-plot) does not require to fit a specific distribution.
>> qqplot(x,y)
The above function from the Statistics and Machine Learning Toolbox in MATLAB creates a quantile-quantile plot, comparing the quantiles of sample data ‘x’ with the quantiles of sample data ‘y’. If the samples are from the same distribution, the plot will show a linear relationship.
When ‘x’ and ‘y’ are matrices in MATLAB, the ‘qqplot’ function displays a separate line for each pair of corresponding columns. It compares the quantiles of each column in ‘x’ with the quantiles of the corresponding column in ‘y’.
For more information on ‘qqplot’ you can refer to the documentation: https://in.mathworks.com/help/stats/qqplot.html
Hope it helps!
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!