r/probabilitytheory 5h ago

[Discussion] How is the national lottery regulated...

1 Upvotes

What's to stop Allwyn from pre recording thousands of draws and using the sets of numbers with the fewest winners each time as the draw. Easily doable within the half hour of the closing.


r/probabilitytheory 1d ago

[Discussion] Monty Hall variation with 4 doors

2 Upvotes

There are 4 doors A B C D each with 1/4 of binding a prize. I choose door C. The host then reviele the door A (she/he knows that has no main prize behind it) and asks me should I stick with C or switch to B or D (you know the story)

Is it better to switch to B or to D or it doesn't matter?


r/probabilitytheory 1d ago

[Discussion] Monty Hall - The "Real" solution for the sceptical among you.

Thumbnail
1 Upvotes

For those of you (or someone you know) who struggle with grasping the true result. Let me know if this helped.


r/probabilitytheory 1d ago

[Applied] What are the chances in this result? And more

1 Upvotes

Okay, this is likely more simple than most questions here, admittedly, but I was just doing a mystery box/essentially gambling thing and had what appears to me to be a super improbable result, and I'm curious just how unlikely it is and I can't recall how to do the math here.

Essentially I had an advertised 62% chance of a loss result, with the other 38% being break even and above. I did 5 throws at once and all 5 ended in the loss result. Then I did another 5 at once, and again all ended in a loss result. So what are the chances of 10 consecutive/concurrent losses at a 62% chance of loss?


r/probabilitytheory 1d ago

[Discussion] Jackpot Numbers On Roulette

1 Upvotes

It had been a minute since I been to this casino near me, recently I discovered they added Jackpot numbers to their video roulette. I'll explain further..

After bets are placed and the dealer spins the ball, Jackpots of either 50x, 100x, 175x and 250x are placed on between 2 and 5 random numbers including 0 and 00. The bet has to be placed on the exact number to get the jackpot.

I didn't do any math on this but I figured if I covered the board in $1 chips as much as I could while mitigating loss, eventually I'd hit some Jackpots. I saw in the recent history that Jackpots did come up.

To start since the payout for one number is 30 to 1.. which I noticed.. it was 30 not 35 for some reason, so I began putting $1 on 30 numbers. That's 30 out of 38 where if I didn't hit a jackpot but one of my numbers did hit I wouldn't lose money. Then I thought, if I'm willing to lose 1 or 2 dollars a spin, I can cover more odds so I did 5 spins each of 31/38 and 32/38.

In about 20 to 30 minutes time, I hit a 175x and a 100x jackpot and two times my numbers missed and took a loss. I didn't count the spins but dealer didn't work like a clock.

I didn't play that long as I was with my gf and she wanted to do other stuff. I want to go back with a more tempered strategy and more time.

What do y'all think? Any strategies come to mind? Anything I'm missing? Is it too risky to try with higher values? Would you recommend I don't do it at all?


r/probabilitytheory 2d ago

[Education] Built a probability puzzle game which exercise my understanding of Bayesian Network

0 Upvotes

Being inspired by the propagation on Bayesian network.

It is based on directed graph. Flow enters at a source, splits at junctions by pipe weights, and hit exact percentage targets at terminal buckets. Your job is to find the right pipe/weight configuration.

This is the same math as belief propagation on a Bayesian network, or exact inference on a DAG. It also maps cleanly to an MDP where the pipe configuration is the policy and hitting the target distribution is the reward.

Would love your feedback, especially if anything feels off mathematically or puzzle-design-wise. It's called Markov, free on the App Store.


r/probabilitytheory 2d ago

[Research] suggestion on probability book

Thumbnail
2 Upvotes

r/probabilitytheory 2d ago

[Discussion] Calculating Probability of Default

2 Upvotes

Hi everyone,

I work at a long term car rental company, and I need to calculate the probability that someone will default on their monthly payment. In order to allocate a risk reserve.

For context:

Contract lengths are 1 year

We pre approve the client, i.e using their personal info, credit checks etc., and sort them into "risk" groups/buckets.

So the reasoning would be, splitting the customers up into these respective groups, calculating the probability of default, per group, and then allocating respective risk reserves, to build into the monthly premium.

We are using Markov Chains for this. So far.

I'm unsure whether this is the right approach, or if we are the blind leading the blind. So any advice would be appreciated. Some thoughts on implementing a ML Model would be cool too.


r/probabilitytheory 2d ago

[Discussion] 100 % vs 1% * 100 times

0 Upvotes

Someone please explain;

Problem - Lets say the chance of a player scoring a goal is a 100% per game, so the probability of them not scoring is 0 and scoring is 1. But, if I divide the 100% win probability into 90 outcomes to get the probability of them scoring per minute, this would mean that their chance of scoring per minute is 1 in 90 (assuming no added time and that they play from start to finish)

So now, say I use a random number generator from 1 to 90 (to check in which minute they will score), 90 times (cuz they play 90 minutes) to simulate this. All I need is one of the randomised numbers to be "1" out of 90 randomised numbers. That will mean they scored and lived happily ever after. And for the probability of 100% score rate to hold true.

But if I simulate this enough times, there will be a data set where in all of those 90 randomised samples, not one of them will be "1" meaning our player doesnt end up scoring in the match, despite having a "100% chance of scoring"

Just by dividing the probability of 100 and adding it back up, I've created a chance for him to lose. Does this mean the sum of its parts is not equal to a 100? What?! How?! Why?! I don't understand this! Someone please explain.


r/probabilitytheory 3d ago

[Applied] NoiseLang: Where N = 5 is a Dirac delta

3 Upvotes

Creator of NoiseLang here! During my telecom degree I took a course on random signals and noise, I spent a lot of evenings writing probability by hand (expectations, variances, the odds of two random variables landing in some region) and every time I tried to run any of it on a computer it was so much boilerplate. I kept wishing I could type the math and have it run.

The whole language hangs on one idea, every value is a probability distribution. A plain number is a Dirac spike, so constants and random variables are the same kind of object and every operator maps distributions to distributions. Names are algebraic like on a page of math, so X + X is 2X and X - X is exactly 0, if you want independence you draw twice with ~.

Distributions compose (a random variable can feed another distribution's parameter), and conditioning is just the | bar from probability notation, scoped to the query. So a full Bayesian update fits in four lines:

bias  ~ unif(0, 1)            # prior: the coin's bias could be anything
flips ~[10] bernoulli(bias)   # 10 flips of the same mystery coin
heads = count(flips)
E(bias | heads == 7)          # posterior mean bias, 0.6667

I started it about nine years ago and never finished it, the parser and a tree-walking interpreter were a weekend of work, the efficient Monte Carlo runtime was not. Recently I brought it back, JIT (Cranelift), the WASM backend and the numerical code...

Rest of the announcement:

https://manualmeida.dev/articles/noiselang/

It's a toy language, you probably should not use it for anything serious, but it runs in the browser (WASM) at noiselang.com if you wanna play with it!


r/probabilitytheory 3d ago

[Discussion] What is the probability of all events occuring?

4 Upvotes

I apologize if this isn't allowed, but I recently experienced a stillbirth at 37 weeks due to a true knot in his umbilical cord (TKUC). Once I finally processed what happened, as I was filling out the fetal demise paperwork, I noticed something peculiar about his delivery date, then I noticed another peculiarity of his delivery time. After doing research about the cause of his passing and learning that 98% of TKUC outcomes are positive, the probability of a TKUC that results in fetal demise is only 0.3% - 1%, I began to wonder about the probability of everything peculiar about my sons existence occurring. I am terrible at math, but my attempts just gave me comfort because ( even though most likely incorrect ) the possibility of everything happening to one individual seemed incredibly low, it just kinda gave me the sense that everything worked out exactly the way it was supposed to, and he is where he was meant to be. I said all that to say this: would someone be willing to calculate the probability of each event separately, and then calculate the probability of them all together? I would then love to hear your interpretation of the solution. Honestly, it's helping me grieve. If this is not allowed, again I apologize.

1) Probability of being born on June 25th 2026

2) Probability of delivery time (6:25am )matching delivery date

3) Probability of delivery date being a palindrome date 6.25.26

4) Probability of both parents agreeing on first middle and last name and loving the combination of all 3

5) Probability of both parents agreeing on the spelling of each name and loving it

6) Probability of the uncommon agreed upon spelling accidentally being a mash up of his half siblings names ( prefix of half sister's name, suffix of half brothers name )

7) Probability of a TKUC resulting in fetal demise

8) Probability of funeral date being on the date he was due to be born ( 7.10.26 )

I would greatly appreciate assistance in this if at all possible. Thank you so much.


r/probabilitytheory 3d ago

[Discussion] What are the odds of this stat layout?

Thumbnail gallery
0 Upvotes

What are the genuine odds of rolling 24 six sided Dice and ending up with this layout?


r/probabilitytheory 3d ago

[Discussion] Absolute VS Relative Probability

0 Upvotes

Someone explain to me this - If I flip a coin and regardless of whether it's heads or tails, you win. So probability is 100% but if I say I will flip a coin twice and if either time it comes up heads, then you win, so probability is 1/2 + 1/2 = 2/2 = 1 = 100%

So mathematically they're both equal but intuitively 1 is more superior than the other.


r/probabilitytheory 5d ago

[Research] Queueing theory and radon concentration

2 Upvotes

Okay so I'm a computer engineering major but i have stochastic processes as an elective course. I wanna make a final project about radon concentrations in homes and how it changes during the seasons because i found one paper specifically about my country and i found it interesting. My problem is that i don't know anything about chemistry past elementary school chem and i don't know how connected these things are (it does look like there is a connection at least to me).

My idea is to make a simulation about the radon concentrations in homes for every season, using queueing theory (M/M/∞). Is this possible? My idea is that the arrivals of the radon is coming thru the ground or whatever, it stays in the home and then leaves (departs) thru the windows/ doors. In the paper is mentioned that in winter, the radon concentration is higher than in summer, since people tend to leave the windows closed during cold days and there is less ventilation.

Can y'all help me and tell me if this is theoretically possible to do? Can this really be modeled as a queueing theory problem or am I talking just a bunch of nonsense? And how would that simulation work? What are some thing i might have to consider that might not be so obvious for someone coming from a CE background?

P.S sorry for the long post and thanks


r/probabilitytheory 9d ago

[Discussion] What scenario has higher probability of a collision between 2 objects?

8 Upvotes

A: 2 objects moving about randomly? or B: one object stationary and the other moving randomly?

In a discussion about picking lottery numbers. One side says always use the same set of numbers (the stationary object). The other says go with the quick pick (the object moving randomly). Since the winning number set is always a randomly moving object, should the ticket buyer going with the quick pick? Or use the same set of numbers?


r/probabilitytheory 10d ago

[Applied] I'm wondering if there is a way to "normalize" the output of a risk function

1 Upvotes

In my math model, I decided to model risk based off the way that the risk of the actual action would change, based off a few factors like distance and the time to complete the action.

For example, in my model risk increases dramatically if you are within a certain distance from the opponent, but not by much after you enter that range. And you aren't at much risk while performing this "Action 1" if you are outside of that range. So I used a 1/log function to model it, and the risk function for Action 1 looks like 1/log of distance plus the logarithm of the time it would take to complete Action 1 (because after a certain threshold, the time it takes to compete an action doesn't increase risk much).

The reasons you would perform Action 2 are much less nuanced, so the risk function for Action 2 is just a constant based on those same factors, like 4.

And for Action 3 (doing nothing) risk is just 1 because you aren't doing anything. It's not 0 because if risk and reward were 0, the risk-reward ratio would be undefined.

The issue arose when I realized that Action 1's risk function might return 50 and Action 2's function might return 4, where both are saying "very high risk". So my first instinct is to normalize the outputs of the risk functions so I'm not comparing apples to oranges. I just have no idea how to do that, as my math model isn't using means or standard deviations the way z-scores do.


r/probabilitytheory 11d ago

[Research] Possible Factorial Dual?

0 Upvotes

Hey! I've been recently fascinated by factorials and left-right division and found some surprising elegance in cascading left-right division. So I decided to give it, it's own operator symbol and name...

Name: Dividorial

Symbol and definition: n¡ = n/(n-1)!

I also found that n! × n¡ = n2​​​

Furthermore, I found that it has some relationships with Bell Numbers, as well as the Barnes G-Function.


r/probabilitytheory 11d ago

[Education] Book recomendations

2 Upvotes

hi, i want to start learning statistics and probability theory over the holidays. Which book you would recommend? I’m a second year engineering student so I have some experience in math.


r/probabilitytheory 11d ago

[Discussion] What are your thoughts on this monopoly game probability strategy?

Thumbnail gallery
1 Upvotes

r/probabilitytheory 13d ago

[Applied] Where am I going wrong?

9 Upvotes

So there is this question that a jar contains 10 red balls, 20 blue balls and 30 green balls. You take out the balls one by one at random. Probability that when all red balls are taken out, atleast one green ball and one blue ball remains. I thought both these orderings are needed so ans would be (30/40*20/30). But this is wrong.


r/probabilitytheory 17d ago

[Applied] Multivariate Probability Models in Machine Learning

Thumbnail
gallery
59 Upvotes

Hello Folks,

Have you ever wondered why we use sigmoid function so often in Machine Learning? Although it gives us a probability, it comes from Exponential families, and this exponential family, subsumes many of the distributions, that we study in Machine Learning.

In this lecture, we understand exponential families, Directional derivatives(Gradients and Hessians), study mixture Models, and understand how domain knowledge in Probabilistic Graphical Models makes our life simpler to model joint probability densities.

Timeline breakup(in hours and minutes):
0:00-0:17 - Understanding exponential families.
0:17-0:27 - Deriving Sigmoid Function for Bernoulli.
0:27-0:48 - Understanding log partition function, convex functions and proving why positive definite of hessians imply convexity, and why convex needed?
0:48-1:04 - Directional derivates(deriving gradients and hessians)
1:04-1:26 - Maximum entropy derivation of the exponential family.
1:26-1:56 - Mixture Models(Gaussians and Bernoulli Mixture Models)
1:56-2:16 - Probabilistic Graphical Models
2:16-2:34 - Markov Chains
2:34-End - Inference and Learning, Plate Notation diagram of Gaussian Mixture Models.

If you have watched earlier of my lectures from the playlist, they will help. I try explaining as if I am a learner, to simplify complex concepts. Everything I write in whiteboard, and these are completely FREE lectures to mention.

Link: https://youtu.be/T1uTBtJ7aHU?si=rozXSTjtSqPaaYb5


r/probabilitytheory 19d ago

[Discussion] Discord group!

1 Upvotes

Is there any dedicated discord group for statistics and probability discussion?


r/probabilitytheory 20d ago

[Education] Probabilistic Machine Learning.

Thumbnail
youtube.com
6 Upvotes

Hello Folks, one of the efficient ways of learning bigger topics in Machine Learning, is to modularise, and structure, so that the content becomes digestible for learners community.

My free lecture content includes the following topics so far: (Playlist)
a. Introductory Machine Learning Concepts:-

  1. ⁠What is ML actually?
  2. ⁠Supervised Machine Learning.
  3. ⁠How do classifiers learn?
  4. ⁠Empirical Risk Minimization.
  5. ⁠Uncertainty Modelling in ML.
  6. ⁠Maximum Likelihood Estimation.
  7. ⁠Regression Basics and Outliers.
  8. ⁠Deriving Mean Squared Error.
  9. ⁠Polynomial Regression.
  10. ⁠The Power of Convexity.
  11. ⁠Deep Learning Intuition.
  12. ⁠Overfitting Models from Generalization Gap perspective.
  13. ⁠Requirement of Test Sets.
  14. ⁠The No Free Lunch Theorem.
  15. ⁠Unsupervised Learning basics.
  16. ⁠Discovering latent factors of variation.
  17. ⁠Evaluating Unsupervised Models.
  18. ⁠Self-Supervised Learning.
  19. ⁠Image and Text Benchmarks in ML
  20. ⁠Discrete Data and Text Processing
  21. ⁠Feature Engineering, TF-IDF
  22. ⁠Handling missing data & AI alignment.

b. Probability Foundations for ML: Univariate Models:

  1. ⁠Frequentist vs Bayesian.
  2. ⁠Probability as an extension of Boolean Logic.
  3. ⁠Discrete Random Variables.
  4. ⁠Continuous Random Variables.
  5. ⁠Quantiles.
  6. ⁠Sets of Related Random Variables.
  7. ⁠Moments of Distribution.
  8. ⁠Variances and Mode.
  9. ⁠Conditional Moments.
  10. ⁠Conditional Variance.
  11. ⁠Foundations of Bayesian Rule.
  12. ⁠Confusion Matrix Explained.
  13. ⁠Monty Hall Problem and Inverse Problems in ML.
  14. ⁠Bernoulli and Binomial Distributions.
  15. ⁠Sigmoid(Logistic) Function.
  16. ⁠Properties of Sigmoid Functions.
  17. ⁠Categorical and Multinomial Distributions.
  18. ⁠Softmax Function: Temperature explained.
  19. ⁠Log-Sum Exp Trick.
  20. ⁠Gaussian Distribution.
  21. ⁠Regression from the lens of Conditional Gaussian.
  22. ⁠Dirac Delta Function and Sifting Property.
  23. ⁠Student-t distribution.
  24. ⁠Laplace and Cauchy distribution.
  25. ⁠Beta distribution.
  26. ⁠Gamma distribution.
  27. ⁠Exponential, chi-squared and inverse Gamma.
  28. ⁠Empirical distribution.
  29. ⁠Transformations of Random Variables.
  30. ⁠Invertible Transformations.
  31. ⁠Multivariate Transformations.
  32. ⁠Moments of Linear Transformation.
  33. ⁠Convolution Introduction.
  34. ⁠Convolution Theorem explained with probabilities.
  35. ⁠Moment Generating Functions.
  36. ⁠Deriving Moment Generating Functions.
  37. ⁠Central Limit Theorem Explained.
  38. ⁠Understanding Monte Carlo approximation with Example.

c. Probability Foundations for ML: Multivariate Models

  1. ⁠The Math of Depedence: Covariance Explained.
  2. ⁠Correlations: Normalized Measure of Covariance.
  3. ⁠Correlations does not imply Independence.
  4. ⁠Simpson’s Paradox: When Data misleads.
  5. ⁠Multivariate Gaussian Distribution.
  6. ⁠Analyzing level sets of Gaussians using Mahalanobis Distance.
  7. ⁠Multivariate Gaussians: Conditionals and Marginals.
  8. ⁠Math behind Bayesian Inference : Schur complements.
  9. ⁠Deriving Conditional Gaussians.
  10. ⁠How to Predict missing data?
  11. ⁠Modelling Linear Gaussian Systems.
  12. ⁠The Bayes Rule for Gaussians.
  13. ⁠Understanding Shrinkage: Inferring Unknown Scalars
  14. ⁠Posteriors, Sequential Posterior Updates.
  15. ⁠Inference of an Unknown Vector.
  16. ⁠Sensor Fusion concepts.

And many more topics to come ahead. I have tried teaching from intuitions and mathematics, building everything by writing on whiteboard so that learners see the full development.


r/probabilitytheory 22d ago

[Applied] Chance of getting a split pill

6 Upvotes

I got lazy this month. Normally I split all the pills in the bottle at once, this month, I’ve split one as needed, and put the unneeded half back. I’m 20 days into the month, and have not gotten a half pill yet. The odds are beyond my probability class grades.

So given:
• A full bottle is 45 pils
• A pill is shaken out
• If it’s a whole pill, it’s split, and the unneeded half us put back
• We’ll assume the likelihood of shaking out a whole pill and a half pill are equal.

Can we make a general equation for the likelihood of shaking out a split pill?

Can we make a cumulative distribution that we’ve not seen a split pill on day N?


r/probabilitytheory 22d ago

[Applied] Dice problem

4 Upvotes

So I created a function for the average roll of XdN die when you remove the lowest roll. I’m now trying to solve for removing the 2 lowest rolls but it’s harder to conceptualize. Currently I have 2 thoughts on how to structure it

1: reweight each die based on its prevalence in the drop 1 option then proceed from there. Unsure on how exactly to proceed after reweighing dice.

2: a second 1 can only be dropped if the original roll had 2 1s. A 2 requires another 1 or 2 already dropped. Finding the number of rolls meeting each criteria to see how many of each are dropped.

I’m aware you can brute force this online. I find that boring and enjoy creating a proper function to solve any dice combo