> For the complete documentation index, see [llms.txt](https://liri-resources-hub.gitbook.io/svt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liri-resources-hub.gitbook.io/svt/tool-catalogue/praat-statistics.md).

# Praat Statistics

Utility scripts to do statistics with Praat.&#x20;

Download the scripts of this page via [GitHub](https://github.com).

Check out [Praat script guide](/svt/general-info/praat-script-and-plugin-guide.md#praat-scripts) guidance for the tips of using Praat scripts.

## demo\_MDSexample

<figure><img src="/files/9Q8BzjHzfMjoHXnleS4j" alt="Screenshot of the Praat Picture window opened up after running the script." width="563"><figcaption></figcaption></figure>

This script combines MDS visualisation with the Shepard diagram to evaluate the mapping quality of dissimilarity data into a lower-dimensional space.

Simply run the script and the Praat Picture window will pop up to show the example.

## function\_drawBarPlot

<figure><img src="/files/nCVavWkfpVLm6DKn2Uht" alt="Parameter specification window after running this script. The user can specify the name of the factor, dependent, min and max." width="375"><figcaption></figcaption></figure>

Creates a visually customisable bar plot showing means of the dependent variable across factor levels, with optional whiskers for variability and annotations for sample sizes.

Select a Table object and run the script. The output will be a a box plot shown in a Praat Picture window.

## function\_drawRegressionLine

<figure><img src="/files/I1Nj35gAvD2lRWHcrSm8" alt="Parameter specification window after running this script." width="375"><figcaption></figcaption></figure>

This script plots a regression line for selected data from a Table object.

Simply select a Table object and run this script to plot the line, a Praat Picture window will be opened up.

## function\_getZscore

<figure><img src="/files/k0aGDPLu87nmedMTELNM" alt="Parameter window after running the script. The user can specify which group and which variable are interested for calculating the z score." width="375"><figcaption></figcaption></figure>

This script calculates z-scores for a specified variable within groups in a selected Table object.

Select a Table object before runnign this script, you'll get a display of z score after running it.&#x20;

## function\_reportConfidenceInterval

<figure><img src="/files/XWU1MjDHiK0ySpvkXMpQ" alt="Parameter specification window after running the script. The user can specify the variable of interest and the range in percent. " width="375"><figcaption></figcaption></figure>

This function returns the confidence interval of a data column in a Table based on the t-distribution (i.e. when the population mean is unknown).

The table includes:

* $$N$$: number of observations.
* $$\text{df}$$: degrees of freedom (N-1).
* $$m$$: sample mean.
* $$\text{sd}$$: sample standard deviation.
* $$\text{CI}$$: absolute confidence interval.
* lowerLimit: $$m-\text{CI}$$.
* upperLimit: $$m+\text{CI}$$.

Select a table containing a column with numeric data (variable). Specific variable can be chosen. The output is a new Table containing the above values.

Requirement: The Table containing the variable to be analysed must be selected.

Method: $$\text{CI}$$ is calculated by the formula: $$\text{CI}=\mid t\times (\text{sd} / \sqrt{N})\mid$$.
