Questions tagged [probability-or-statistics]

Questions about systematic data collection and organization, or the application of probability theory to model the inherent patterns and properties of sampled data, underlying data distribution(s) or random processes.

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

Speed up exact distribution of the sum of the top $k$ statistics on a bounded discrete uniform distribution?

I came across a nice answer by Sasha (I believe a Wolfram engineer) on mathematics stack exchange regarding the distribution of the sum of the top $k$ order statistics. (This was an answer to an RPG ...
6
votes
4answers
1k views

Mean age of people [closed]

I have the following datas: I want to find mean age by using following formula, Any way to do this in general in Mathematica easily.
1
vote
0answers
37 views

Computing the Mean of Around Values

I understand the computation of the uncertainty of independent Around values to be based on the following first order approximation $$ \delta f(x,y)=\sqrt{\left(\frac{\text{$\delta $f}}{\partial x}...
1
vote
1answer
57 views

i need to simulate a roulette table where a perosn bets $10 on red 1 time, 5 times,20 times, 100 times and 10,000 times

I need to simulate a roulette table where a perosn bets $10 on red 1 time, 5 times,20 times, 100 times and 10,000 times, i then need to find out how much the person wins or loses once they play 10,000 ...
2
votes
1answer
50 views

Intepreting the results of DistributionFitTest, and other alternatives in Mathematica 12.1

I have been playing with DistributionFitTest as a means of testing how normal some data sets I have. I've been working with some simulated data sets so I can try ...
0
votes
0answers
45 views

Mann Whitney Test

I am trying to check data in Mathematica with the Mann Whitney Test. The author states: Mann–Whitney's U-test; U = 609, z = 2.07, p < 0.05. How would I put this ...
1
vote
1answer
121 views

How to plot this pdf

Let $x\sim N(\mu,\sigma^2)$ and $y=\max\{e^{x-1}-\kappa,0\}$. How to get and plot the pdf of y? In particular, there will be a probability mass at $y=0$, which is a nondifferentiable point. I tried <...
1
vote
1answer
49 views

Generating a set of random variates from Poisson distribution

Say I am not allowed to use built-in PoissonDistribution, which means I should generate 100 random numbers first, and then with these 100 random numbers to generate 100 random variates from Poisson ...
2
votes
3answers
112 views

How to simulate the roll of 3 or more dice and ask for a sum of 3 or more?

How to simulate the throwing of 3 or more dice and ask for the sum of 3 or more and indicate the number of calves, or more that are produced. For example if you throw 3 dice, how many cases will add ...
2
votes
2answers
164 views

Confirm and possibly simplify a 2009 result for a 2D constrained integration

This is a direct descendant of two other recent questions, 3D and Equivalence, both of which have been answered in skillful, interesting manners. (See also the comment [actually answer] of JimB to ...
0
votes
0answers
32 views

Piecewise function inside ProbabilityDistribution causing errors

I'm using a complicated Piecewise function to create a probability distribution and draw random points from it. ...
1
vote
1answer
44 views

How to emulate statistical command choice tab of this widget?-how to do what i ask?

I designed this little program, but I want you to be able to choose what I want to look for by choosing it as you do with the widget tab, please help me. widget Widget of internet my program ...
1
vote
1answer
41 views

Probability distribution with random paremeters

Is it possible to set something like this? A probability distribution with random parameters ...
0
votes
0answers
28 views

Unable to evaluate expectation of sum, but able to evaluate expectation of each summand

I would like to evaluate the expectation of the expression x + x Log[x] where x follows a generalised gamma distribution ...
2
votes
1answer
79 views

Turning a matrix matrix into a probability table

I want to build a probability table that is able to answer questions such as "if i roll 5, 4 sided dice what is the probability i get at least a 16?" My current code is: ...
1
vote
0answers
70 views

Evaluate 3D- and 5D-constrained integrals for absolute separability probabilities

In a recent posting, TwoQubits user JimB, employing a change-of-transformations put forth by N. Tessore, was able to confirm a formula for the "two-qubit absolute separability Hilbert-Schmidt ...
1
vote
0answers
29 views

Adding a module to teach Mathematica the Laplace transform of particular Mittag-Leffler functions

Mathematica 11.3 is not aware of a useful Laplace transform LaplaceTransform[t^(-a) MittagLefflerE[a, a, t^a], t, s] which for ...
0
votes
0answers
29 views

Plot the confidence interval bands from standard error and mean

My data has 20 horizons of mean and standard error. The very first step I'd like to manually calculate the 95% confidence interval from standard error and mean. After this, is to plot the timevarying ...
6
votes
2answers
71 views

Ideas to speed up an order statistic calculation?

A toy example: {n, top} = {25, 100}; mxs = RandomReal[{0, top}, n]; dist = UniformDistribution[Thread[{0, mxs}]]; result = Mean[OrderDistribution[dist, n]] With ...
3
votes
2answers
181 views

Simplifying the code to calculate probability of tossing 4 unfair dice

Four identical unfair dice are tossed once. Find the probability of events in which the sum of numbers (facing up) is 18. Given the probability of face 6 is $1/2$ and that of each other face is $1/10$....
2
votes
1answer
59 views

Concatenation of Distributions

I would like to calculate mean, variance, ... of a concatenation of distributions (is this the correct technical term?). For an easy example I am trying to calculate the mean of a PoissonDistribution ...
1
vote
0answers
25 views
0
votes
0answers
38 views

Total Variation Distance(between Gaussians)

I am interested in a tool that calculates the total variation distance between two multivariate Normal distributions. Any help will be much appreciated as I am a complete beginner.(So far, I have ...
4
votes
2answers
83 views

Commutation, symmetrizer and duplication matrices

The following 3 matrices are useful when viewing matrices as vectors, known as commutation $K_n$, symmetrizer $N_n$ and duplication $G_n$. They are usually defined by their matrix relations below. $$ \...
1
vote
2answers
284 views

Evaluate a certain three-dimensional constrained integral

The result of the three-dimensional integration ...
1
vote
1answer
90 views

Speeding up Gaussian expectations

I found that Mathematica's Expectation operator is slow for Gaussian random variables, I'd like to scale to 100 dimensions, but it currently takes 10 seconds for 10 dimensions, looking forward to tips ...
1
vote
0answers
39 views

Modeling geometric Brownian motion with an Ito process [closed]

I am trying to model geometric Brownian motion using ItoProcess. I am not sure why I am getting negative values in the output. I am not using ...
2
votes
1answer
95 views

Making animation based on COVID-19 data [closed]

There is an animation of the growth and spread of COVID-19 cases worldwide at http://www.healthmap.org/covid-19 My question is how do I make the same animation using Mathematica, also analyze the ...
1
vote
1answer
129 views

Probability poker game task

I have this task: And I've got this far in my mathematica program, however I can't figure out why my probability turns out 0? ...
1
vote
1answer
60 views

Expressions for moments of sample cumulants?

I sample $n$ points from standard normal and need the mean and variance of 3rd and 4th sample cumulants. @JimB suggested that variance of 4th sample cumulant is given by the expression below. This ...
1
vote
1answer
63 views

Help Calculating My “Deviation”

I created a "distribution deviation" where for $\left\{a_1,...,a_k\right\}$ we take all take the mean of all combinations of $\frac{\min\left\{a_{i},a_{j}\right\}}{\max\left\{a_{i},a_j\right\...
0
votes
1answer
50 views

Can the WishartMatrixDistribution command be used for generating random density matrices?

I am interested in generating random members of two classes of $n \times n$ positive-definite matrices $A$ and $B$--the former symmetric in nature, the latter, Hermitian. The standard (Ginibre-matrix-...
1
vote
0answers
75 views

Calculate a nested integral

I wish to plot the following probability on Mathematica: $$ \pi=n\cdot\int_{-\infty}^{+\infty}\int_{-\infty}^{+\infty}\left[\int_{-\infty}^{z_{1}}G\left(z-z_{2}\right)\cdot f\left(z_{2}\right)dz_{2}\...
5
votes
1answer
151 views

Can this probability function speed be improved?

I have a process that as part of it requires a certain probability query, specifically, given a multinomial distribution with f equiprobable categories and r trials, some specific category has a given ...
0
votes
2answers
74 views

How to define a function of probability addition formula

In probability theory, the addition formula of any event is as follows: $$P(A \cup B)=P(A)+P(B)-P(A B)$$ $$\begin{aligned} P\left(A_{1} \cup A_{2} \cup \cdots \cup A_{n}\right)=& \sum_{i=1}^{n} P\...
4
votes
2answers
62 views

EstimatdDistribution returns evaluated expression, not function name/

Ok, this takes a little bit o preparation. I'd like to estimate a distribution for some data. I have a distribution function that is not part of the canonical Mathematica set so I define it via ...
0
votes
0answers
19 views

Defining the support of a random variable in Mathematica [duplicate]

I wish to create a Mathematica module that would take as input a Mathematica-defined probability distribution D and will perform an integration over the support of its density f, $supp(f)$ (where $f:X\...
0
votes
0answers
29 views

Problem with FormulaLookup and FormulaData

I'm not getting an answer when I type either: FormulaLookup["BinomialDistribution"] or ...
1
vote
1answer
44 views

How to use the function `Covariance` to calculate covariance correctly?

Note: The following questions are from the 23th question of the 2005 Chinese Graduate Mathematical Entrance Examination (first set): Suppose $X_{1}, X_{2}, \cdots, X_{n}(n>2)$ is a simple random ...
2
votes
1answer
56 views

How meaningful, or useful, are parameter errors produced when perfroming an unweighted LinearModelFit or NonlinearModelFit?

This may be a question which teeters on the brink of belonging more to the realm of statistics and Cross-Validated SE, but I'm also specifically interested in Mathematica fitting routines. Usually, if ...
-2
votes
2answers
64 views

How to find the expectation of the following complex probability distribution?

I want to find the expectation of the random variable UV. But the following code doesn't return the desired result: ...
0
votes
1answer
67 views

Confusion about the correlation coefficient [closed]

If a wooden stick with a length of 1 meter is randomly cut into two sections, what is the correlation coefficient of the length of the two sections? ...
-4
votes
1answer
97 views

How to calculate the expectation and variance of a complex probability distribution

Assuming that the continuous random variables X1 and X2 are independent of each other, and the variances exist, the probability ...
0
votes
0answers
20 views

Getting MatrixPropertyDistribution::sclrvctr: error from documentation example

I'm new to StackExchange, but I am having a strange error using just downloaded Mathematica 12.1.1.0 (Student version). I'm trying to use the MatrixPropertyDistribution function, but Mathematica gives ...
1
vote
1answer
54 views

How to deal with more complex transformation distributions

Assume that X1, X2,..., Xn ($n\ge 2$) are simple random samples from a normal distribution $\mathrm{N}(\mu, 1)$, let $\overline{\mathbf{X}}=\frac{1}{\mathrm{n}} \sum_{i=1}^{\mathrm{n}} \mathrm{X}_{i}$....
0
votes
1answer
99 views

Change a list of x,y to a density function to analyze the distribution

So I have some (x,y) data from an oscilloscope. These numbers form a more or less gaussian shape. I am trying to extract the skewness of this shape, but the skewness functions only seem to accept ...
2
votes
1answer
42 views

What is the difference between the height specifications “PDF” and “Probability” for Histogram built-in function?

maybe this question is something conceptual but I need to clarify it. Given a data I can use Histogram to plot the distribution of the frequencies of the data. If I need the relative frequencies I ...
1
vote
1answer
29 views

Select a subsequence of a sequence according to tosses of a biased coin

I have a sequence, from which I would like to select a subsequence, each term of the original sequence being included in the subsequence with probability $p$, independently of the other terms. That is,...
0
votes
3answers
76 views

How to solve the approximate value of this probability problem

It is known that X1, X2,...,Xn are random samples from the population X, where the probability of X taking 0 or 1 is equal, that is, $P(X=0)=P(X=1)=\frac{1}{2}$. I want to find an approximation of $P\...

1
2 3 4 5
30