satscraper (OP)
|
|
September 10, 2023, 09:42:34 AM Last edit: September 11, 2023, 07:18:03 AM by satscraper Merited by o_e_l_e_o (4), ABCbits (1) |
|
Let's say one has multisig wallet which requires n valid signatures to sign transactions. What is the probability to loose coins the wallet holds in the case of loosing at least one private key required for signature when each key has its own probability to be lost?
My solution Let's Pi is the probability of loosing key with the index of i , i= 1.....n
Then the probability of not loosing it is 1-Pi
Allowing independent events for key loosing we get the following expression for the probability that i keys all together will be never lost: ∏i=1..n(1-Pi)
Then target value is P= 1 - ∏i=1..n(1-Pi) where ∏ - multiplication operator
Is my calculation correct?
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
|
|
|
|
|
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
hugeblack
Legendary
Offline
Activity: 2506
Merit: 3645
Buy/Sell crypto at BestChange
|
|
September 10, 2023, 12:39:08 PM |
|
If I understand what you mean, in the multi-signature wallet we have a limited number of keys, and let us assume that it is 3 out of 8, so the calculations are as follows: The total number of N keys is 8 The number required to spend F 3 Losing one of the keys we have N^ = 8-1=7 F^=3-1=2 Thus, the spending probability becomes p=f^/N^=2/7 The probability of not being able to spend is 1-p Then you can replace N and F according to the NofM values and thus obtain a general equation.
|
|
|
|
satscraper (OP)
|
|
September 10, 2023, 12:47:11 PM |
|
If I understand what you mean, in the multi-signature wallet we have a limited number of keys, and let us assume that it is 3 out of 8, so the calculations are as follows: The total number of N keys is 8 The number required to spend F 3 Losing one of the keys we have N^ = 8-1=7 F^=3-1=2 Thus, the spending probability becomes p=f^/N^=2/7 The probability of not being able to spend is 1-p Then you can replace N and F according to the NofM values and thus obtain a general equation.
Nope, it is not the same. Assume that F=N and set individual probability for each key to lose.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
Saint-loup
Legendary
Offline
Activity: 2604
Merit: 2353
|
|
September 14, 2023, 11:31:41 PM Last edit: September 15, 2023, 12:52:59 AM by Saint-loup |
|
If I understand what you mean, in the multi-signature wallet we have a limited number of keys, and let us assume that it is 3 out of 8, so the calculations are as follows: The total number of N keys is 8 The number required to spend F 3 Losing one of the keys we have N^ = 8-1=7 F^=3-1=2 Thus, the spending probability becomes p=f^/N^=2/7 The probability of not being able to spend is 1-p Then you can replace N and F according to the NofM values and thus obtain a general equation.
He's not really talking about the probability of deadlocking a multisig wallet here actually, but more about the probability of losing at least one key (whatever the scheme used by the wallet). If the wallet is a N=M wallet, the wallet will be lost with only one missing key though but I think it's also important to have an idea of the probability of losing at least one key even if it doesn't lock the wallet, in order to take better decisions when we use SLIP39 for example. When we share keys in several locations, the probability of losing them is not identical in each location. @satscraper It would have been more clear with one example with real numbers but for me you're right, your formula is good. But do you know one to calculate the probability of losing at least N keys out of M ? For example if I have 3keys of a 2 of 3 wallet, what will be the probability of losing at least 2keys? PL2K = P1P2 + P2P3 + P1P3 + P1P2P3But it's not a general formula unfortunately.
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 06:48:16 AM |
|
@satscraper It would have been more clear with one example with real numbers but for me you're right, your formula is good.
Real numbers instance is not a problem at all. For instance if n=1 P=1 for P 1=1 , while P=0 for P 1=0 If n=2, and say P 1=0.5, P 2=0.7, then P=0.85 If n=100 and say P i =0.9 for each i index then P = 1 - 0.1 100 which is very close to 1 So, you can take any numbers and get the result. @satscraper It would have been more clear with one example with real numbers but for me you're right, your formula is good. But do you know one to calculate the probability of losing at least N keys out of M ? For example if I have 3keys of a 2 of 3 wallet, what will be the probability of losing at least 2keys? PL2K = P1P2 + P2P3 + P1P3 + P1P2P3 But it's not a general formula unfortunately.
Unfortunately your formula is not valid even for 3keys of a 2 of 3 wallet. Take P 1 = P 2 = P 3 = 0.9 and you will get P>1 which is impossible. I will think about N- out -of -M -solution in general case which should include also the calculation of probability to lose the specific set of N from all possible combinations.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 09:51:58 AM Last edit: September 15, 2023, 10:32:31 AM by o_e_l_e_o |
|
Let's call your keys A, B, and C.
Probability of losing A = P(A) Probability of not losing A = P(A') = 1-P(A)
Probability of losing all three keys = P(A ⋂ B ⋂ C) = P(A).P(B).P(C)
Probability of losing exactly one key = P(A ⋂ B' ⋂ C') + P(A' ⋂ B ⋂ C') + P(A' ⋂ B' ⋂ C) = P(A).P(B').P(C') + P(A').P(B).P(C') + P(A').P(B').P(C)
Probability of losing one or more keys = P(A ⋃ B ⋃ C) = P(A) + P(B) + P(C) - P(A ⋂ B) - P(A ⋂ C) - P(B ⋂ C) + P(A ⋂ B ⋂ C)
Plug in your numbers as desired. If you are looking specifically for the probability of never losing a single key, then do 1 minus the last equation above.
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 03:04:34 PM Last edit: September 15, 2023, 03:20:12 PM by satscraper |
|
For example if I have 3keys of a 2 of 3 wallet, what will be the probability of losing at least 2keys? PL2K = P1P2 + P2P3 + P1P3 + P1P2P3 But it's not a general formula unfortunately.
@Saint-loup, to get correct formula for P L2K you should base calculation on the sum of probability to lose any of key pairs and probability not to lose it. That sum is equal to 1 Then, using your notations) PL2K = 1 - (1-P1P2 ) x (1-P2P3 ) x (1-P1P3 )
If you wanna include three lost keys then
PL2K = 1 - (1-P1P2 ) x (1-P2P3 ) x (1-P1P3 ) x (1- P1P2P3)
The same approach is applied to write formula for " at least N keys out of M keys", but I am still looking for the best way to express in general notations the arbitrary commutation of N from M
BTW, what does tt /tt code stand for? Never saw it.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 04:01:51 PM |
|
This is wrong. If you want to calculate the probability of losing access to a 2-of-3 multi-sig, then you need to work out the sum of the probabilities of losing any two keys and the probability of losing all three keys. The formula you are looking for is as follows: P(A).P(B).P(C') + P(A).P(B').P(C) + P(A').P(B).P(C) + P(A).P(B).P(C) This is the probability of losing A and B, plus the probability of losing A and C, plus the probability of losing B and C, plus the probability of losing all three. The other way to calculate would be to add the probability of losing exactly one key to the probability of losing no keys, and then subtract that from 1: 1 - (P(A ⋂ B' ⋂ C') + P(A' ⋂ B ⋂ C') + P(A' ⋂ B' ⋂ C) + P(∅)) Where P(∅) = 1 - P(A ⋃ B ⋃ C) BTW, what does tt /tt code stand for? Never saw it. Teletype. It's a monospace font which is generally used when referring to small snippets of code, command line arguments, etc.
|
|
|
|
Saint-loup
Legendary
Offline
Activity: 2604
Merit: 2353
|
|
September 15, 2023, 05:42:00 PM Last edit: September 15, 2023, 05:53:45 PM by Saint-loup |
|
Real numbers instance is not a problem at all. For instance if n=1 P=1 for P1=1 , while P=0 for P1=0 If n=2, and say P1=0.5, P2=0.7, then P=0.85 Not sure it's really clearer for all people lol. P= 1 - ∏i=1..2(1-Pi) = 1 - (1-P1)(1-P2) = 1 - (1-0.5)(1-0.7) = 1 - 0.15 = 0.85Unfortunately your formula is not valid even for 3keys of a 2 of 3 wallet.
Take P1 = P2 = P3 = 0.9 and you will get P>1 which is impossible.
I will think about N- out -of -M -solution in general case which should include also the calculation of probability to lose the specific set of N from all possible combinations.
You're right bro, actually if you draw 3 circles A, B and C intersected and you take the intersection A ⋂ B, you will also take A ⋂ B ⋂ C into it. So if you take A ⋂ B + B ⋂ C + A ⋂ C you will count 3 times A ⋂ B ⋂ C instead of one time. So it must be PL2K = P1P2 + P2P3 + P1P3 + P1P2P3 - 3P1P2P3 = P1P2 + P2P3 + P1P3 - 2P1P2P3
|
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 06:37:59 PM |
|
PL2K = P1P2 + P2P3 + P1P3 + P1P2P3 - 3P1P2P3 = P1P2 + P2P3 + P1P3 - 2P1P2P3 This is correct, and is analogous to the equation I shared above: P(A).P(B).P(C') + P(A).P(B').P(C) + P(A').P(B).P(C) + P(A).P(B).P(C) Your equation works out the three intersects of A ⋂ B, A ⋂ C, and B ⋂ C, and the subtracts the middle intersect of A ⋂ B ⋂ C twice since you have included it three times. My equation works out the intersects while excluding the middle intersect each time, and then adds the middle intersect back in at the end. Either way, you will end up with the same result.
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 06:39:15 PM |
|
This is wrong.
Well, easier to say wrong than explain why P(1)= 0.1 P(2) = 0.2 and P(3) = 0,3 Your formula results in 0.098, mine in 0,10646 I'm not sure which of two results is correct. Please, explain why you think that my approach is wrong. you will count 3 times A ⋂ B ⋂ C instead of one time.
Depends on how you will intersect them.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 06:55:26 PM |
|
Your formula results in 0.098, mine in 0,10646.
I'm not sure which of two results is correct. 0.098 or 9.8% is the correct answer. Plug those numbers in to an online probability calculator to confirm, such as this one: https://www.calctool.org/math-and-statistics/probability-three-eventsPlease, explain why you think that my approach is wrong. Here is your equation: PL2K = 1 - (1-P1P2 ) x (1-P2P3 ) x (1-P1P3 ) I'm afraid it simply doesn't make sense. Why are you multiplying the probabilities together? You are not looking for the probability you lose P 1&P 2 AND P 1&P 3 AND P 2&P 3, but rather you are looking for the probability you lose P 1&P 2 OR P 1&P 3 OR P 2&P 3. And as Saint-loup has pointed out, you are counting the middle intersect three times here, meaning you either have to subtract it twice at the end as they have done in their equation, or you need to modify each equation with respect to not losing the third key as I have done in mine.
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 07:18:10 PM |
|
Your formula results in 0.098, mine in 0,10646.
I'm not sure which of two results is correct. 0.098 or 9.8% is the correct answer. Plug those numbers in to an online probability calculator to confirm, such as this one: https://www.calctool.org/math-and-statistics/probability-three-eventsPlease, explain why you think that my approach is wrong. Here is your equation: PL2K = 1 - (1-P1P2 ) x (1-P2P3 ) x (1-P1P3 ) I'm afraid it simply doesn't make sense. Why are you multiplying the probabilities together? You are not looking for the probability you lose P 1&P 2 AND P 1&P 3 AND P 2&P 3, but rather you are looking for the probability you lose P 1&P 2 OR P 1&P 3 OR P 2&P 3. And as Saint-loup has pointed out, you are counting the middle intersect three times here, meaning you either have to subtract it twice at the end as they have done in their equation, or you need to modify each equation with respect to not losing the third key as I have done in mine. Well, I have understood you way of thinking, but I have indeed assumed that three circles (in term of Saint-loup) do not have the common area.
Why are you multiplying the probabilities together?
Because events to lose pairs are independent thus one needs to multiply probabilities according to the probability theory. We add them if they dependent , again according to to the probability theory. Well, I think we both have calculated different cases.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 07:32:30 PM |
|
Because events to lose pairs are independent thus one needs to multiply probabilities according to the probability theory. We add them if they dependent , again according to to the probability theory. You multiply within each pair, for example P(A).P(B), as you are considering the probability of losing both Key A and also losing Key B. You do not then multiply pairs together as you have done, as that doesn't make sense. You aren't considering the possibility of losing the pair A and B, and also losing the pair A and C. How would that even work? You lose all three keys but you lose A twice? You are considering losing pair A and B OR losing A and C, so you add the probabilities of each pair together. Well, I think we both have calculated different cases. I'm afraid you haven't calculated any real world scenario. You cannot lose A&C when you've already lost A&B. A is already lost. You can't lose it twice.
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 07:45:03 PM Last edit: September 15, 2023, 07:57:06 PM by satscraper |
|
You cannot lose A&C when you've already lost A&B. A is already lost. You can't lose it twice.
Absolutely correct, but I have multiplied probabilities for not to lose pairs. I can not to lose A&B, A&C and B&C, each event of not loosing is independent. Another words, any of three pairs can not be lost. Thus the probability to not lose all three is (1-P(A)P(B)) (1-P(A)(C))(1-P(C)P(B))
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
Saint-loup
Legendary
Offline
Activity: 2604
Merit: 2353
|
|
September 15, 2023, 07:50:21 PM |
|
PL2K = P1P2 + P2P3 + P1P3 + P1P2P3 - 3P1P2P3 = P1P2 + P2P3 + P1P3 - 2P1P2P3 This is correct, and is analogous to the equation I shared above: P(A).P(B).P(C') + P(A).P(B').P(C) + P(A').P(B).P(C) + P(A).P(B).P(C) Your equation works out the three intersects of A ⋂ B, A ⋂ C, and B ⋂ C, and the subtracts the middle intersect of A ⋂ B ⋂ C twice since you have included it three times. My equation works out the intersects while excluding the middle intersect each time, and then adds the middle intersect back in at the end. Either way, you will end up with the same result. Yes that's what we can see if we replace P(X') by 1 - P(X) and make the calculations : P(A).P(B).P(C') + P(A).P(B').P(C) + P(A').P(B).P(C) + P(A).P(B).P(C) = P(A)P(B)(1-P(C)) + P(A)(1-P(B))P(C) + (1-P(A))P(B)P(C) + P(A)P(B)P(C) = P(A)P(B) - P(A)P(B)P(C) + P(A)P(C) - P(A)P(B)P(C) + P(B)P(C) - P(A)P(B)P(C) + P(A)P(B)P(C) = P(A)P(B) + P(A)P(C) + P(B)P(C) - 2P(A)P(B)P(C)
|
|
|
|
o_e_l_e_o
In memoriam
Legendary
Offline
Activity: 2268
Merit: 18509
|
|
September 15, 2023, 07:59:55 PM |
|
Absolutely correct, but I have multiplied probabilities for not to lose pairs. I can not to lose A&B, A&C and B&C, each event of not loosing is independent. It isn't, because you have included the same event multiple times. Just as you can't lose A twice, you can't "not lose A" twice. You either lose it or you don't. Thus the probability to not lose all three is (1-P(A)P(B)) (1-P(A)(C))(1-P(C)P(B)) No. As I've already said above: Probability of losing all three keys = P(A ⋂ B ⋂ C) = P(A).P(B).P(C) So the probability to not lose all three keys is simply 1 - P(A).P(B).P(C)
|
|
|
|
Saint-loup
Legendary
Offline
Activity: 2604
Merit: 2353
|
|
September 15, 2023, 08:22:33 PM |
|
Depends on how you will intersect them.
If the events are independent and don't exclude each other that's how their outcomes intersect. If your keys are in 3 different places, normally they can be lost all together. When you lose the key A you can also lose the key B and/or C at the same time unfortunately so it can be represented like that
|
|
|
|
satscraper (OP)
|
|
September 15, 2023, 09:06:40 PM |
|
Depends on how you will intersect them.
If the events are independent and don't exclude each other that's how their outcomes intersect. If your keys are in 3 different places, normally they can be lost all together. When you lose the key A you can also lose the key B and/or C at the same time unfortunately so it can be represented like that Nice illustration. Well, isn't it enough to lose say A&B and forget about probability to lose C as in this scenario your 2 of 3 keys multisig wallet will stop to work for you? I think such scenario has more practical sense and in this case the red area on your picture will turn into the single point of intersections of three circles.
|
. .HUGE. | | | | | | █▀▀▀▀ █ █ █ █ █ █ █ █ █ █ █ █▄▄▄▄ | ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ . CASINO & SPORTSBOOK ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | ▀▀▀▀█ █ █ █ █ █ █ █ █ █ █ █ ▄▄▄▄█ | | |
|
|
|
Saint-loup
Legendary
Offline
Activity: 2604
Merit: 2353
|
|
September 15, 2023, 09:41:55 PM Last edit: September 15, 2023, 09:52:50 PM by Saint-loup |
|
Nice illustration.
Well, isn't it enough to lose say A&B and forget about probability to lose C as in this scenario your 2 of 3 keys multisig wallet will stop to work for you? I think such scenario has more practical sense and in this case the red area on your picture will turn into the single point of intersections of three circles.
I don't think it's possible because you can also lose B along with C or A along with C and lock your wallet due to these 2 other losses, so how would you represent and count those cases? Probabilities to lose each key are not exactly the same if they are not at the same place or not stored in the same way, so I don't think trying to simplify by using probabilities of losing keys whatever they are would be the most relevant.
|
|
|
|
|