How to present our data in different graphs
이전 댓글 표시
(A) I have a desired vector u=[1 2 3 4]. I used an algorithm and that algorithm estimated a best solution for my desired vector u. I ran that algorithm 100 times and obtained 100 such estimated vectors of same size as my u vector. That algorithm also estimated 100 values of my fitness function, 100 values of Execution time of that algorithm, 100 values of Absolute Error Vector of same size as u. Then I found the errors in each indivudual element of u and estimated vector. Then I got the mean of 1st two errors separate and mean of last two error separate, thus got 100 such vales for each mean.
(B) Then I added a noise to vector u. and repeated the above process. Then I changed the value of noise and repeated the same process.
(C) Now I increased the number of elements in u from 4 to 6 and repeated the same process with noise and without noise
(D) Now I increased the number of elements in u from 6 to 8 and again repeated step (C).
Now I want to present this data in diffrent such graphs which attract a reader. Can any body help me in this regard?
댓글 수: 3
Ameer Hamza
2020년 4월 5일
편집: Ameer Hamza
2020년 4월 5일
It seems like you want to visualize some statistical results. One way I can think of is to use boxplots or boxcharts
Histograms can also be used: https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html
Sadiq Akbar
2020년 4월 6일
Sadiq Akbar
2020년 4월 6일
답변 (1개)
Omega
2025년 2월 5일
0 개 추천
Hi Sadiq,
After going through the data attached, I suggest you to consider about the following graphs:
1. Boxplots:
- You can use "boxplot" to show the distribution of the mean squared errors (MSE) for different configurations (4, 6, and 8 elements in u) with and without noise.
- This will help you visualize the variability and outliers in your error data.
2. Bar graph:
- You can use a bar graph to compare the success percentage of the algorithm's estimations for different sizes of the vector u (4, 6, and 8 elements).
- This will help you in evaluating the algorithm's performance and robustness for different vector sizes.
3. Line Graphs:
- Fitness Over Time: You can plot the "fitness" values against "Time (in sec)" to show how the fitness improves over time. This can help illustrate how the algorithm performance changes as the number of elements increases.
- Error Reduction: You can plot the separate line graphs for each error variable (Error in Var1, Var2, etc.) over time to illustrate how errors decrease.
4. Histograms:
- You can use histograms to visualize the distribution of execution times across the 100 iterations for different configurations.
- This will provide insights into the consistency of the algorithm’s execution time.
You can refer to the following documentation link to learn more about the "2-D and 3-D plots"
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!