Questions tagged [probability-distribution]

A probability distribution is a function that defines the probability of occurrences of the different possible values of a variable.

What is it?

A probability distribution is a function that defines the probability of occurrences of the different possible values of a variable.

Typical examples of distributions are the uniform distribution in which each value has the same probability, the normal distribution in which the values around the avergage have a higher probability and the extreme values the lowest probability.

See also

315 questions
0
votes
1 answer

Calculate marginal probabilities from dataframe in R

I would like to calculate the marginal probability distributions from a dataframe containing raw binary data. I'm sure there is an easy way, however I can not seem to find a function for it. Any ideas? I'm attaching a simple example of a dataframe…
jonas
  • 13,559
  • 22
  • 57
  • 75
0
votes
1 answer

Conditional mutual information notations

It might be a naive question but I am really struggling with this. I have looked at number of papers and articles that present the formula of the Mutual information and the Conditional Mutual information.. they usually write it in two ways : first…
0
votes
2 answers

How to create a matrix with probability distribution in R

I want to create a matrix in R with element [-1,0,1] with probability [1/6, 2/3, 1/6] respectively. The probability may change during runtime. for static probability I have got the output but the problem is dynamic change in the probability. for…
Siddhu
  • 1,188
  • 2
  • 14
  • 24
0
votes
1 answer

What does it mean by the phrase "a machine learning algorithm learn a probability distribution"? What exactly is happening here

Generative and discriminative models seem to learn conditional P(x|y) and joint P(x,y) probability distributions. But at the fundamental level I fail to convince myself what it means by the probability distribution is learnt.
0
votes
2 answers

Triangular distributed random variates (PDF and CDF) in MATLAB

I am facing some error to plot the CDF for Triangular distribution; I can plot the histogram using Generating a Triangular distribution in MATLAB, but how do I plot the CDF? n = 10000; %Random number a = 0.26; %Min b = 0.46; %Max c = 0.35; %Mode…
-1
votes
1 answer

What methods can I use to predict the probability distribution through Reinforcement Learning?

I'm wondering what methods I can use for predicting the probability distribution. The information about the AI model I want to learn is as follows: Input: Feature vector, Weight vector, Result value (Initial vector is generated by random sampling of…
-1
votes
1 answer

probability of tossing a fair coin

For the following two distributions, what does |X-1| mean? The distribution of X for 0 head, 1 head, 2 heads and 3 heads in three tosses are 1/8, 3/8, 3/8 and 1/8. What is |X-1| ?
batuman
  • 7,066
  • 26
  • 107
  • 229
-1
votes
1 answer

How to create pseudo random values using Monte Carlo method?

I have a non-stationary (Periodicity+Trend) time series (Ts) data of one dimension which contains nan values. I want to generate 10000 pseudo-random values of the Ts based on its probability distribution. DATA_LINK distribution of normalized data…
-1
votes
2 answers

How do I plot a convenient lognormal pdf with my data?

I have a random variable Words per sentence which contains those values: words_per_sentence = [1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,…
-1
votes
1 answer

Create a random distribution programmatically in AnyLogic with a double array of probabilites and plot it

Is it possible to create a CustomDistribution in AnyLogic with an double array interval_start and a double array probability, which is one unit smaller? It shall look like this: CustomDistribution c = new CustomDistribution(interval_start,…
DynamiX
  • 63
  • 4
-1
votes
1 answer

Probability arrangement

9 chairs numbered 1 to 9. 3 women and 4 men wish to occupy one chair each. First the women will choose the chairs from amongst the chair marked 1 to 5, then the men select chairs from amongst the remaining. what is the possible number of…
-1
votes
1 answer

Applying different versions of a function to different columns of another Dataframe in R

Following this thread computing probabilities the verified answer contained a for loop and prop.tables. I want to combine both into one single function such that every "b" should represent a column of a dataframe. For example…
-1
votes
1 answer

how to compute the compound probability of multiple independent events?

for example, I have 7 customer bookings in a day, each with an independent probability of show up. So what is the probability of only 1 customer show up? only 2 customers show up? only 3 customers show up? etc. How to compute this type of problem,…
-1
votes
1 answer

How can I calculate probability from the log-normal distribution probability density function graph in python?

How can I find probability between certain values from the lognormal distribution probability density function with Python? Thank you.
-1
votes
1 answer

Generating a probability distribution P(y) from another probability distribution P(x) such that highest probability in P(x) is least likely in P(y)

So the problem at hand is that I have some values in a dictionary with counters, let's say dict = {"cats":0, "dogs":0, "lions":0} I want to randomly select the keys from this dictionary and increment the counters as I select the particular…
1 2 3
20
21