Linked Questions

39
votes
2answers
35k views

Plotting bell shaped curve in TikZ-PGF

I want to create some bell shaped curves for demonstrating hypothesis testing in statistics. Can anybody help me drawing curves like shown in the following picture?
13
votes
5answers
7k views

PGF Math Function to compute cube root

When I found that a simple x^(1.0/3.0) does not yield a graph in PGFplots for negative values of x, I attempted to define my own function for CubeRoot using pgfmathdeclarefunction as below. But, am ...
9
votes
5answers
8k views

How do I use pgfmathdeclarefunction to create define a new pgf function?

I'd like to define new function for pgf so I can use it in pgfplots. I'm trying to create a unit pulse function p(x) which has a value of 1 from x=0 to x=1, and 0 elsewhere. I read the pgf manual on ...
28
votes
1answer
2k views

How to produce John Kruschke's Bayesian model diagrams using TikZ or similar tools?

In a May 2012 blogpost John Kruschke discusses how he prefers his diagram conventions for representing bayesian models to the traditional approach. You can see an example of his approach in the ...
12
votes
1answer
5k views

How to create a gaussian curve with pgfplot?

What I want: This is what I have so far in terms of code: \newcommand\gauss[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} % Gauss function, parameters mu and sigma \begin{tikzpicture} \begin{...
6
votes
1answer
3k views

declare function vs pgfmathdeclarefunction

I would like to create an image to compare the difference between the gaussian distribution and the Student's t distribution for small n values. From my searches in SE I took the definition of the ...
7
votes
2answers
2k views

TikZ binomial distribution plus Gaussian approximation

My intention is to draw the probability function of a binomial distribution with trials = 20 and probability = 0,4. Then i wanna add the curve of an approximate gaussian curve in the same plot. How ...
5
votes
1answer
2k views

How to plot a normal curve with proper y-values

Follow-up question to Plotting bell shaped curve in TikZ-PGF I'm new to LaTeX, and I'm typesetting a document for my stats class, and trying to use LaTeX to produce a normal probability distribution. ...
3
votes
1answer
2k views

Dimensions too large on plot

I'm trying to plot a Gauss function/normal distribution, based on the answer to this question, however my domain is 0:10000 and the sample size is 95. This is resulting on the following error: ...
1
vote
1answer
606 views

Plotting a chart and chart line?

How I can Plot this curve in Latex {revtex4-1}? \begin{center} \begin{tikzpicture} \begin{axis}[bar width=18pt, xtick=data,ymin=0,ymax=45,x tick label style= {rotate=90,anchor=east}] \addplot[ybar] ...
1
vote
2answers
236 views

Four different increase noisy curves in tikz

I need to have four different noicy curves drawn in tikz. The four lines need to be different (they must have different amplitude and noise.) They need to start from a their own baseline and again ...
1
vote
0answers
134 views

Draw a normal distribution by Latex [duplicate]

I would like to draw the following picture by Latex. Please help me a bit. Kind Regards
1
vote
0answers
67 views

How do I prevent arithmetic overflow and dimension too large in this MWE

\documentclass[12pt]{article} % Errors occur for this invocation. % $ MWE=1 pdflatex -interaction=nonstopmode MWE.tex 2>&1|grep "^!"|sort|uniq % but not for this invocation. % $ MWE= ...