15. Distributions

The Action Distributions tool calculates the density, quantile, and percentile of several continuous and discrete distributions.

Example 1:

Consider X a Normal random variable with mean 11.15 and deviation standard 2.238. Calculate the probability density.

7.57
12.29
10.35
16.28
11.79
10.17
10.77
11.27
7.39
8.25
8.39
12.27
12.82
12.26
12.07
9.72
8.45
8.67
11.17
8.40
11.92
9.39
9.62
18.53
11.67
8.75
9.63
13.06
4.69
12.43
7.69
10.64
10.55
8.85
6.02
8.88
15.46
12.79
11.27
8.01
9.69
9.91
8.43
12.88
11.50
9.82
14.55
9.88
13.25
10.35

To load the data, open Data upload, choose the Paste tab, paste the data column above, uncheck Column name (the data has no header; the column will be named V1), give the dataset a name (for example, Distribuição Normal — densidade), and click Load.

Example 1 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select V1.
  2. Check Continuous.
  3. In Distribution, select Normal.
  4. Check Density.
  5. In Mean, enter 11.15.
  6. In Standard Deviation, enter 2.238.
  7. Click Calculate.

Settings for example 1

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows

Results
0.050
0.157
0.167
0.013
0.171
0.162
0.176
0.178
0.044
0.077
0.083
0.157
0.135
0.157
0.164
0.145
0.086
0.097
0.178
0.084
0.168
0.131
0.141
0.001
0.174
0.100
0.141
0.124
0.003
0.151
0.054
0.174
0.172
0.105
0.013
0.106
0.028
0.136
0.178
0.066
0.144
0.153
0.085
0.132
0.176
0.150
0.056
0.152
0.115
0.167

Example 2:

Consider X a Normal random variable with mean 11.15 and deviation standard 2.238. Let’s calculate certain percentiles of this distribution.

V1
7.57
12.29
10.35
16.28
11.79
10.17
10.77
11.27
7.39
8.25
8.39
12.27
12.82
12.26
12.07
9.72
8.45
8.67
11.17
8.4
11.92
9.39
9.62
18.53
11.67
8.75
9.63
13.06
4.69
12.43
7.69
10.64
10.55
8.85
6.02
8.88
15.46
12.79
11.27
8.01
9.69
9.91
8.43
12.88
11.5
9.82
14.55
9.88
13.25
10.35

To load the data, open Data upload, choose the Paste tab, paste the table above (with the column names), give the dataset a name (for example, Distribuição Normal — percentis), and click Load.

Example 2 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select V1.
  2. Check Continuous.
  3. In Distribution, select Normal.
  4. Check Percentile.
  5. Uncheck Density.
  6. Check Bottom tail.
  7. In Mean, enter 11.15.
  8. In Standard Deviation, enter 2.238.
  9. Click Calculate.

Settings for example 2

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows:

Results
0.055
0.695
0.360
0.989
0.612
0.331
0.432
0.522
0.047
0.097
0.109
0.692
0.772
0.691
0.659
0.262
0.114
0.134
0.504
0.109
0.634
0.215
0.247
1,000
0.591
0.142
0.248
0.804
0.002
0.716
0.061
0.411
0.394
0.152
0.011
0.155
0.973
0.768
0.521
0.080
0.257
0.289
0.112
0.780
0.562
0.277
0.936
0.285
0.826
0.360

Example 3:

Consider X a Normal random variable with mean 11.15 and deviation standard 2.238. Let’s calculate certain quantiles of this distribution.

First, let’s type the probabilities for which we want to find the quantiles of the distribution of interest.

To load the data, open Data upload, choose the Paste tab, paste the values 0.7, 0.8, 0.9, 0.95, one per line, uncheck Column name (the column will be named V1), give the dataset a name (for example, Distribuição Normal — quantis), and click Load.

Example 3 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select V1.
  2. Check Continuous.
  3. In Distribution, select Normal.
  4. Check Quantile.
  5. Uncheck Density.
  6. Check Bottom tail.
  7. In Mean, enter 11.15.
  8. In Standard Deviation, enter 2.238.
  9. Click Calculate.

Settings for example 3

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows:

Results
12.32361
13.03355
14.01811
14.83118

Example 4:

Suppose that in a production line the probability of obtaining a part defective (success) is p=0.1. A sample of 4 pieces is taken to be inspected. What is the probability of obtaining a defective part, no defective parts, 2 defective parts, 3 and 4 defective parts?

First, let’s type the possible values ​​that the variable random can assume, in this case it would be the quantity of pieces that can be defective

To load the data, open Data upload, choose the Paste tab, paste the values 0, 1, 2, 3, 4, one per line, uncheck Column name (the column will be named V1), give the dataset a name (for example, Distribuição Binomial — probabilidades), and click Load.

Example 4 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select V1.
  2. Check Discreet.
  3. In Distribution, select Binomial.
  4. Check Density.
  5. In Number of Tests, enter 4.
  6. In Probability of success, enter 0.1.
  7. Click Calculate.

Settings for example 4

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows:

Results
0.6561
0.2916
0.0486
0.0036
0.0001

From the table, we see that the probabilities of obtaining a defective part is 29.16%, no defective parts is 65.61%, and obtaining two defective parts is 4.86% and for more than two it is less than 1%

Example 5:

Consider a random variable X with Binomial distribution with parameters n=10 and prob=0.1. Calculate the quantile of X being less than 0.8 (80%), 0.9 (90%), 0.95 (95%) and 0.975 (97.5%).

First, let’s type the probabilities we want find the quantiles of the distribution of interest

To load the data, open Data upload, choose the Paste tab, paste the values 0.8, 0.9, 0.95, 0.975, one per line, uncheck Column name (the column will be named V1), give the dataset a name (for example, Distribuição Binomial — quantis), and click Load.

Example 5 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select V1.
  2. Check Discreet.
  3. In Distribution, select Binomial.
  4. Check Quantile.
  5. Uncheck Density.
  6. Check Bottom tail.
  7. In Number of Tests, enter 10.
  8. In Probability of success, enter 0.1.
  9. Click Calculate.

Settings for example 5

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows:


Results
2
2
3
3

If the process is a 10 attempts experiment with a 10% probability of success

  • In 80% of cases, we observe at most 2 successes.
  • In 90% of cases, we observe at most 2 successes.
  • In 95% of cases, we observe at most 3 successes.
  • In 97.5% of cases, we observe at most 3 successes.

Example 6:

Suppose that in a production line the probability of obtaining a part defective (success) is p=0.1. A sample of 10 pieces is taken to be inspected. What is the probability of obtaining 3 defects or less?

To load the data, open Data upload, choose the Paste tab, paste the values 3, one per line (with valor on the first line as the column name), give the dataset a name (for example, Distribuição Binomial — percentil), and click Load.

Example 6 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Distributions and fill in the Settings panel:

  1. In Variable to be used in the analysis, select valor.
  2. Check Discreet.
  3. In Distribution, select Binomial.
  4. Check Percentile.
  5. Uncheck Density.
  6. Check Bottom tail.
  7. In Number of Tests, enter 10.
  8. In Probability of success, enter 0.1.
  9. Click Calculate.

Settings for example 6

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are as follows:

vetNum
0.9872048

Based on the released value, we have the probability of obtaining 3 defects or less is approximately 98.72%.