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?
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 ...
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 ...
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 ...
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{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} % Gauss function, parameters mu and sigma \begin{tikzpicture} \begin{...
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 ...
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 ...
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. ...
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: ...
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] ...
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 ...
\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= ...