1. Prob. Distribution
Generate a Specific Distribution or View Information
Click the Prob. Distribution in the Statistics category.
Code View: Preview the code that will be output.
Data View: Preview the data that will be output.
Run: Print and run the code.
Common
Discrete Probability Distribution
Continuous Probability Distribution
Uniform
Common
Action
Generate Random Numbers
Size: Set the number of samples you want to draw from the distribution you want to generate.
Random State: Set your seed.
Allocate to: Specify the variable (call name).
Show Sampled Distribution: If checked, visualize the distribution of the extracted samples.
Show Distribution Plot
Probability Density Function: Outputs the probability density function.
Cumulative Distribution Function: Outputs the cumulative distribution function.
Statistics to P-Value
Statistics: You will get the probability of getting a value from this distribution that is greater than or equal to the absolute value entered here.
Alternative: Two-sided for a two-tailed test, One-sided for a one-tailed test.
P-Value to Statistics
Proportional value: Enter a p-value; the range of the distribution with values greater than or equal to the entered p-value is calculated and displayed.
Alternative: Choose between a two-tailed or one-tailed test.
Discrete Probability Distribution
Bernoulli
P: Enter the probability of getting 1 out of a binary outcome of 0 and 1.
User option: You can add options other than those provided in Visual Python.
Binomial and Multinomial
N: Enter the number of trials.
P: Enter the probability of success for each trial. Use the funnel icon to get the values entered in a specific column of the dataframe. (Note that the values entered are arbitrary in this example).
Continuous Probability Distribution
Normal
Loc: Set the mean of the normal distribution.
Scale: Set the standard deviation of the normal distribution.
User option: You can add options other than those provided in Visual Python.
Beta
A: Set the shape parameter A for the beta distribution.
B: Set the shape parameter B for the beta distribution.
User option: You can add options other than those provided in Visual Python.
Gamma
A: Set the shape parameter of the gamma distribution.
User Option: You can add options other than those provided in Visual Python.
Student's t and Chi2
Df: Set the degrees of freedom for the t-distribution or chi-squared distribution.
User Option: You can add options other than those provided in Visual Python.
F
Dfn: Set the numerator degrees of freedom.
Dfd: Set the denominator degrees of freedom.
The F-distribution represents the ratio of two chi-squared distributions. Dfn and Dfd are the degrees of freedom for the two chi-squared distributions.
User Option: You can add options other than those provided in Visual Python.
Dirichlet
Alpha: Enter the importance for three categories (or dimensions) in the format (a, b, c).
Seed: If entered, the random number generated will be fixed.
User Option: You can add options other than those provided in Visual Python.
Multivariate Normal
Mean: Set the mean of the distribution. For [a, b], the mean of the first distribution is a, and the mean of the second distribution is b.
Cov: Set the covariance of the distribution. For [a, b], the covariance of the first distribution is a, and the covariance of the second distribution is b.
Allow Singular: If True, allows generating the distribution even when the covariance matrix is singular.
User Option: You can add options other than those provided in Visual Python.
Last updated