Plotting Data in Mathematica | Pareto & Frequency Plots

  • Context: Mathematica 
  • Thread starter Thread starter SrEstroncio
  • Start date Start date
  • Tags Tags
    Mathematica Plotting
Click For Summary
SUMMARY

The discussion focuses on issues with generating a ParetoPlot in Mathematica using a dataset of approximately 2000 Real numbers. The user experiences an empty plot due to the high number of unique categories, as ParetoPlot interprets each unique number as a separate category. The conversation suggests using Histogram as an alternative for visualizing frequency distributions and emphasizes the importance of providing category information to ParetoPlot for accurate results.

PREREQUISITES
  • Familiarity with Mathematica version 12.0 or later
  • Understanding of ParetoPlot functionality and its requirements
  • Knowledge of Histogram creation in Mathematica
  • Basic data manipulation skills in Mathematica
NEXT STEPS
  • Explore the documentation for ParetoPlot in Mathematica to understand category requirements
  • Learn how to create and customize Histograms in Mathematica
  • Investigate data preprocessing techniques to group similar values for Pareto analysis
  • Experiment with example datasets provided in Mathematica's Help documentation
USEFUL FOR

This discussion is beneficial for data analysts, statisticians, and researchers using Mathematica for data visualization, particularly those interested in Pareto and frequency analysis.

SrEstroncio
Messages
60
Reaction score
0
I have imported a list of data of this kind
4.447E-02
1.620E-02
1.281E-02
2.585E-02
3.676E-02
1.232E-01
7.635E-02
1.756E-02
1.142E-02
3.676E-02
and it goes on, 2000-ish numbers. I try to do a ParetoPlot and all I get is an empty plot. I have loaded the Statistic Plot Package. Is it because of my data? And, how can I display a frequency plot for intervals of numbers (example, if I have 1.1 and 1.2 they're considered in the 1.0 - 2.0 category) in Mathematica? Thank you.
 
Physics news on Phys.org
First: Suppose you have your imported data in myList.
Post the output of Short[myList] so we can tell if the data has been mangled.

Next: From the ParetoPlot documentation:
"In the most basic form, ParetoPlot takes a list of data that is assumed to consist of discrete categories. It determines the frequency of each category in the list, converts the frequencies to percentages, and creates the plot."

Since it appears you have 4 digit Real numbers I'm assuming Pareto is considering every unique 4 digit Real as a separate category and the plot might have 2000 categories, each with a single number, maybe one or a few that happened to have a duplicate. But this assumes you have not given ParetoPlot any category information.

Post your ParetoPlot[...] so it is possible to tell what you have done.

Next: When some function doesn't work with a bunch of data it is often helpful to try a simple test case. Try the example from the Help page ParetoPlot[{a,b,c,d,d,d,e,d,e,e,f,a,b,c}] and see if you get the same result as the Help page.

Last: Histogram might be more what you are looking for unless you want to give ParetoPlot the needed options to adjust what it does.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 14 ·
Replies
14
Views
11K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 12 ·
Replies
12
Views
25K