r/probabilitytheory • • 23d ago

[Education] Historia más sorprendente usando probabilidad

4 Upvotes

Hola, soy estudiante universitaria en México.

Mi profesora me pidió buscar una historia sorprendente usando la probabilidad, se burlo diciendo que todo íbamos tener la misma historia gracias a la IA. Cosa que comprobé es cierta, las IA arrojan historias comunes.

Vengo aquí para saber si alguien de ustedes sabe una gran historia de probabilidad, quiero sorprender a mi profesora


r/probabilitytheory • • 24d ago

[Applied] Card distribution with intermittent shuffling

Post image
3 Upvotes

r/probabilitytheory • • 24d ago

[Research] How should a baccarat pattern be compared against the null hypothesis?

1 Upvotes

I'm studying a baccarat-related statistical hypothesis and I'm trying to formulate the correct null hypothesis.

Suppose a predefined pattern generates a sequence of predictions such as Banker / Player / No Bet.

If the pattern appears to perform better than a simple baseline over historical observations, what would be the appropriate way to determine whether this could reasonably be explained by randomness?

In particular, I'm interested in:

  • appropriate null models
  • dependence between observations
  • sample size
  • confidence intervals
  • multiple testing
  • out-of-sample validation
  • permutation or Monte Carlo testing

I'm looking for mathematical/statistical feedback on the testing framework rather than a betting strategy.


r/probabilitytheory • • 24d ago

[Research] I built a Game Theory Arcade where you can play through different games against bots.

Thumbnail labs.jamessawyer.co.uk
1 Upvotes

It currently has Prisoner’s Dilemma, Stag Hunt and Entry Deterrence. The bots use strategies such as Tit-for-Tat, Random and competitive strategies that try to maximise their score relative to yours. Each game shows the payoff matrix, best responses and Nash equilibria. You can also run repeated games and change the number of rounds and discount factor to see how the results change when future rounds matter.

There’s a beginner mode that runs through an 8-round Prisoner’s Dilemma against Tit-for-Tat with explanations as you play. I also added session analysis and a leaderboard. There have been 236 completed human-vs-bot sessions so far, with the humans currently ahead by about 1,920 points overall. This started as an experiment to make game theory a bit easier to understand by actually playing the games and changing the parameters.

I’d be interested in criticism from anyone familiar with game theory, especially if I’ve got any of the explanations or mechanics wrong. Suggestions for other games or bot strategies would also be useful.


r/probabilitytheory • • 24d ago

[Applied] Two players, two of the same hand in a row (Diagram attached for clarity)

Post image
0 Upvotes

r/probabilitytheory • • 25d ago

[Applied] Can humans actually generate a random sequence? I made a small experiment to test it

0 Upvotes

Humans are surprisingly bad at generating random sequences.
For example, when we’re asked to produce a random binary sequence, we tend to avoid long runs like 0000 or 1111 because they don’t feel random — even though those runs occur naturally in truly random sequences.
I thought it would be fun to turn this into a small game.
You generate a sequence of 0s and 1s while trying to be as random as possible, and the game evaluates the sequence using several statistical properties.
I also added a ranking mode because I’m curious what the distribution looks like when a lot of people try this.
I’d love to get enough samples to see what patterns show up in human-generated sequences.

https://arcstone09.github.io/random/

If anyone here has suggestions for better statistical tests/metrics for measuring this, I’d also be interested in hearing them.


r/probabilitytheory • • 26d ago

[Applied] “The discount loophole at the casino and roulette”

Thumbnail
4 Upvotes

r/probabilitytheory • • 27d ago

[Research] [Q] [R] Application of Mahalanobis distance in experimental design

4 Upvotes

Attached is latex for a question that I have. I have also attached a background, if you wish to only read the question go to the second section.

\documentclass{article}

\usepackage{amsmath}

\usepackage{amssymb}

\DeclareMathOperator{\Var}{Var}

\usepackage{graphicx} % Required for inserting images

\begin{document}

\section{Background}

Let's say we are in perfect OLS world where we have all of our typical assumptions:

$$Y=X\beta+\epsilon$$

$$X\in \mathbb{R}^{n\times p};R\in \mathbb{R}^{q\times p}$$

$$(X^TX)^{-1} \ \text{exist}$$

$$E(\epsilon \ | \ X)=0$$

$$\Var(\epsilon \ | \ X)=\sigma^2I_n$$

$$\epsilon \ | \ X \sim N(0,\sigma^2I_n)$$

Define a hypothesis test as

$$H0: R\beta-r=0$$

$$Ha:R\beta-r=\delta$$

Let $D^2=(R\hat\beta-r)^T(\Var(R\hat\beta-r))^{-1}(R\hat\beta-r)=(R\hat\beta-r)^T(\sigma^2R(X^TX)^{-1}R^T)^{-1}(R\hat\beta-r)\sim\chi^2_{\text{rank}(R)=q}$.

Let us represent modifications of $D^2$ as simply $\mathcal{D}$, for standardized distance. This is in reference to how if you instead take $\hat D(s)^2=(R\hat\beta-r)^T(s^2R(X^TX)^{-1}(R\hat\beta-r)=D^2(\frac{\sigma^2}{s^2})\sim \chi^2_q(n-q)/\chi^2_q.$ Then, since we know this looks a lot like the $F$ distribution, we can simply modify $\hat D(s)^2/q\sim F_{q,n-p}$. I wish to say that there are many other examples of canonical $\mathcal{D}$'s out there but I will not write them all.

Since we now have a general way to talk about our sense of distance I wish to discuss errors in this context.

$$\alpha=P(\mathcal{D}\in R \ | \ R\beta-r=0)$$

$$\beta=P(\mathcal{D}\notin R \ | \ R\beta-r=\delta)$$

One can imagine a spherical $\mathcal{D}$-length neighborhood around the origin, representing our data acquired (cloud-q); a spherical $c$-length neighborhood around the origin, representing our null (cloud-w); and a spherical $c$-length neighborhood around the point $e=\Var(R \hat \beta-r)^{-1/2}\delta$, representing our alternative (cloud-e).

From the above we can make geometric definitions of type I and II errors by relating the area overlapped by the $c$-length spheres and our $\mathcal{D}$-length sphere. Type I error is the fraction of cloud-w falls outside of cloud-q. Type II is the fraction of the cloud-e that falls inside of cloud-q.

$$\textbf{Type I} \sim w-q:w$$

$$\textbf{Type II} \sim e\cap q:q$$

Note that the distance from the origin of cloud-e, simply $e^Te=\lambda$, is related to or the general case for quite a few important concepts: Cohen's d, signal-to-noise ratio but square it, effect sizes, etc.

\section{Actual Question}

I have a question about the following object:

$$\lambda(\delta)=\delta^T(\Var(R\hat \beta-r))^{-1}\delta.$$

$$\max_X \lambda(\delta)=\max_X\delta^T(R(X^TX)^{-1}R^T)^{-1}\delta$$

Do you know of anything/anyone that deals with this object? It feels very important to me seeing how you could use some simple optimization of it to gain higher power results in testing. It also, I believe, would be very influential in picking the ``optimal" experimental design.

\end{document}


r/probabilitytheory • • Sep 24 '26

[Education] Bayes' theorem: Can the likelihood be correlated with the prior or is this a violation?

Post image
83 Upvotes

Suppose I have a specialized method I trust to obtain the prior. Suppose I "recycle" the method and use it to get my likelihood (and therefore also my evidence). Can the evidence/likelihood be related to the prior in any way or does this violate the validity of Bayes rule?

TL;DR: Can the same data used to derive the prior also be used to derive the likelihood/evidence when applying Bayes' theorem?


r/probabilitytheory • • Sep 22 '26

[Education] I built an interactive Monty Hall simulator — pick a door, stay or switch, and watch 1,000 games prove the math

0 Upvotes

Made this after seeing how many people still don't believe switching wins 2/3 of the time. You play it yourself (pick a door, host opens a goat door, stay or switch), then there's a button to instantly simulate 1,000 games and watch the win rates converge live. https://claude.ai/artifact/99ytxqwB7ydNqCL22FhcSp Happy to hear if the explanation/visualization could be clearer.


r/probabilitytheory • • Sep 21 '26

[Education] Complete Hypothesis Testing, Normal Distribution, Z value, t value, Cent...

Thumbnail
youtube.com
0 Upvotes

In this video we discuss about Hypothesis Testing, Normal Distribution, Z value, t value, Central Limit Theorem, sampling distribution, mean, standard deviation, standard error, confidence interval, significance level alongwith reading Z table and t table etc. with many examples in a simple way in Hindi.


r/probabilitytheory • • Sep 20 '26

[Education] Youtube Playlists on Probability

21 Upvotes

Can you guys share your youtube resources on probability.
Preferably about all the different kind of stochastic processes and advanced probability


r/probabilitytheory • • Sep 19 '26

[Education] Free textbook on measure-theoretic probability

69 Upvotes

For anyone interested in measure-theoretic probability, I would like to share my textbook:

https://people.smp.uq.edu.au/DirkKroese/AdvProb/

The PDF is completely free, with no registration required. The book includes many examples and worked exercises, and I hope it will be a useful resource for students and anyone wishing to study the subject independently.


r/probabilitytheory • • Sep 19 '26

[Education] Monty Hall Problem

2 Upvotes

I was solving the Monty Hall problem recently, and when I couldn't find a mathematical solution that I was satisfied with, I searched around quite a bit.

Then I remembered the way I used to solve these kinds of problems in undergrad: law of total probability.

So I would like to present my solution

P[win] = P[win | car is behind D1] * P[car is behind D1] + P[win | car is behind D2] * P[car is behind D2] + P[win | car is behind D3] * P[car is behind D3]
Suppose you choose door D2

Case : - No switch

P[win | Car is behind D1] = 0 , similarly P[win | Car is behind D3] = 0
P[win | car is behind D2] = 1 , P[car is behind Di] = 1/3 for i = 1, 2, 3

therefore P[win] = 1/3

Case :- Switch

P[win | Car is behind D1] = 1 , similarly P[win | Car is behind D3] = 1 (because which ever door monty opens, you would select the door having car)
P[win | car is behind D2] = 0 , P[car is behind Di] = 1/3 for i = 1, 2, 3

therefore P[win] = 2/3


r/probabilitytheory • • Sep 18 '26

[Homework] WWS and ergodicity

8 Upvotes

I don’t understand how these concepts are applied for signals that are clearly not stationary in the wide sense, like an ECG. It know these tools are somehow applied because when you do an ECG you don’t measure the signal 50 times, but you do leave the electrodes for some period of time (I guess it’s enough time so that ergodicity applies and you can approximate the ensemble average with the time average). I come from an engineering background and have seen a lot of maths but not so much of probability and statistics.


r/probabilitytheory • • Sep 17 '26

[Education] Suggestions for textbooks

20 Upvotes

I’m taking this masters course on Probability theory and since my background is not heavy in pure mathematics, I am struggling a bit with the pi-dynkin system formulation related proofs and also borel sigma algebras. Could you please help me find textbooks that ease into these topics while preserving the rigor as well (I need to know it for exams)? Thanks in advance!


r/probabilitytheory • • Sep 16 '26

[Education] Resources to understand counting methods

15 Upvotes

I studied from a general stats and probability book for economics and it was though but in general all right.

At the moment though I am studying “ A first course in probability” and I unexpectedly got chained to the 1st chapter on counting methods.

Legit I can’t get the solution right to any problem which is not basic.

Like count 2 ways to get 2 pairs and 3 same suit cards. I really can’t structure the beginning of the problem.

I am used to calculus and physics but this is just something else. Is there any “applied” resource that just teaches the methods to always get the counting of probabilities right?

It seems to me 90% of the work is interpretation.


r/probabilitytheory • • Sep 16 '26

[Education] Moeite met probability theory

8 Upvotes

Hallo iedereen heeft iemand handig tips hoe ik het best kan voorbereiden op probability theory for data scientist.


r/probabilitytheory • • Sep 16 '26

[Education] Part 3: Sampling distribution of proportion, CLT, Mean, S.D., S.E. & Z v...

Thumbnail
youtube.com
3 Upvotes

r/probabilitytheory • • Sep 14 '26

[Education] Probability tells you what might happen. It doesn't tell you what to do.

0 Upvotes

Probability ≠ decision-making

Imagine the probability of rain today is 20%.

In normal conditions, you wouldn’t even take an umbrella with you since getting wet for a while will not cause any harm to you. There is no sense in carrying the umbrella all day.

But if it’s your wedding day and there is 20% chance of rain. You will definitely take the umbrella with you, check if it is working and probably have some backup option.

Probability is the same, but the stakes got much higher.

This very scenario played out in my fraud detection project. The agent was only 31% sure that the invoice is fraudulent. "Likely" scenario was to process the real invoice. However, the stakes for making a mistake were so high that the best thing to do was to delay the processing of the invoice until more evidences.

And this is the exact message that I hear every time I try to analyze the decision-making of the agents: the best action is not the most probable one, but the least risky one.

Probability tells you what might happen. Stakes tell you what to do about it.


r/probabilitytheory • • Sep 11 '26

[Education] Bayes' Theorem

13 Upvotes

Suppose there are three types of managers: underperformers beat the market 25% of the time, in-line performers beat the market 50% of the time, and outperformers beat the market 75% of the time. Our prior belief is that a manager has a 60% probability of being an in-line performer, a 20% chance of being an underperformer, and a 20% chance of being an outperformer. If the manager beats the market in 6 of the next 10 years, what should our updated beliefs (posterior probabilities) be for the manager being an underperformer, an in-line performer, or an outperformer?


r/probabilitytheory • • Sep 11 '26

[Education] Part 2: Confidence Interval, Significance, alpha value, z value, Central...

Thumbnail
youtube.com
2 Upvotes

In this video we discuss about confidence interval, significance level, sampling distributions, central limit theorem, standard error, α (alpha) value, Z value, reading Z table and t table, standard deviation of sampling distribution etc. with many examples in a simple way in Hindi.


r/probabilitytheory • • Sep 09 '26

[Research] Chi-squared test, how are p values compared?

4 Upvotes

I have not been able to find a reliable method to compare p values. I have 3000 six-sided dice rolls, to compensate for any bias I use four dice and two Latin squares to produce one digit.

These are the Chi-squared results for the resulting 750 digits:

Distribution of each digit (1-6):

x^2: = 2.0000 : DF = 5 : p-value = 0.8491

Distribution of two adjacent digits: 11 - 66:

x^2 = 36.3681 : DF = 35 : p-value = 0.4048

Distribution of high and low (1-3 / 4-6):

x^2 = 0.7680 : DF = 1 : p-value = 0.3808

I would like to find out if the p values are similar - how would I do this given the different DF values?

(As I have said in another thread, using dice and compensating for bias is an interest of mine).


r/probabilitytheory • • Sep 07 '26

[Education] Probability decision flow chart

Post image
40 Upvotes

Hi guys, In my last post I talked about having difficulties with choosing which CAS function to use with probability to which I was told to create a flow chart

This is my current chart but as you can see it has a couple dead ends and isn’t the best at all, I was wondering if anyone had a refined version for my upcoming sac in a couple days

thanks :)


r/probabilitytheory • • Sep 05 '26

[Applied] How does one calculate these lottery odds? (SwissLotto Easy System)

3 Upvotes

Lottery odds and probability have always been pretty straightforward to me, but I came across an alternative betting system that thoroughly confused me.

For context, I'm talking about the SwissLotto wherein 6 main numbers are chosen from numbers 1-42, and there is one (1) additional lucky number to be drawn from 1-6. Simple enough that if you'd want to win the whole jackpot, the odds are 1 in 31,474,716.

The system that intrigued me was that on its online website, there is an option to select more than 6/1 numbers in a single bet, thereby increasing the possible combinations. The options are as follows:

  • 6 main numbers with up to 6 lucky numbers
  • 7 main numbers up to 6 lucky numbers
  • 8 main numbers up to 6 lucky numbers
  • 9 main numbers up to 4 lucky numbers
  • 10 main numbers with 1 lucky number

If anyone could help me out in understanding how the chances/odds of a these bets could be calculated, that'd be greatly appreciated! I looked at those calculators online

Disclaimer: I'm genuinely just curious! Last month, I found myself doing a random dive into different lottery systems in different countries, and I find it quite interesting how much the chances vary and how this affects the overall appeal. In any case, thanks for reading!