1

I am writing a LaTeX document that involves the discussion of many probability mass functions (binomial, poisson, geometric, negative binomial, hypergeometric, zeta) and probability density functions (exponential, gamma, weibull, cauchy, beta, etc).

I believe that my document can be improved by adding plots of these functions. What is the easiest way for me to do this?

  • Welcome to TeX.SE. Which TeX engine/LaTeX format combination do you employ -- pdfLaTeX, XeLaTeX, or LuaLaTeX? – Mico Aug 21 '18 at 0:01
  • Welcome to TeX SX! You should take a look at the documentation of the pst-func module of pstricks, §9, Distributions. – Bernard Aug 21 '18 at 0:01
  • 2
    Welcome to TeX.SE! The answer is: it depends. If you generate the plots with some software (such as Mathematica or whatever) there is nothing wrong with including them via \includegraphics. If you want to use LaTeX to generate these plots, then you can plot them with pstricks, as @Bernard is saying, or with pgfplots or just TikZ. (Personally I would do it with pgfplots, even though I was using pstricks for many many years and was very happy with it.) – user121799 Aug 21 '18 at 0:04
  • @Mico I've been using pdfLaTeX; however, I'm not really sure what the difference between different TeX engines are. – Ekesh Kumar Aug 21 '18 at 0:07
  • 1
    Please have a look at tex.stackexchange.com/a/343718/36296 for a concise example how to plot a weibull. – samcarter_is_at_topanswers.xyz Aug 21 '18 at 20:57

Browse other questions tagged or ask your own question.