How to present our data in different graphs
4 次查看(过去 30 天)
显示 更早的评论
(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?
回答(1 个)
Omega
2025-2-5,6:18
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"
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!