On average ّّّ~10 minutes later (Bitcoin Blockchain) a new block is mined. When this block is mined, we will have two blocks. Original one with a longer chain and a new, shorter block, tries to have some "orphans," which try to have new blocks on that chain.
Two blocks are created by two miners or mining pool at the same time, chain-reorganization will help to inavidate one block and the other one will remain valid, the one that remain valid is thae one that new blocks build upon which will be the longest chain.
Calculate the probability of two blocks being mined at the same time?
You can read the quote below.
I don’t know what the mathematical probability of this is, so here’s the frequency of chain reorganisations based on the data from my bitcoin node (which hash been running continuously since 17 December 2016):
Actual Reorganisations: 39 (1 every 5,796 blocks / 38.8 days)
Avoided Reorganisations: 100 (1 every 2,260 blocks / 15.2 days)
https://learnmeabitcoin.com/explorerhttps://learnmeabitcoin.com/technical/chain-reorganisationWhy is the process of Bitcoin Blockchain re-organization every two weeks?
Chain re-reorg is not every two weeks as you can see from below data. It does not have a definite day.
665005 07 January 2021
664578 05 January 2021
645179 24 August 2020
644543 20 August 2020
638519 09 July 2020
619970 03 March 2020
618465 22 February 2020
614732 27 January 2020
578141 28 May 2019
551355 24 November 2018
Calculate the probability that 3 blocks re-organized?
Only two same blocks have been mined by the same miners at the same time in the past. No three miners have mined the same block before.
About confirmation
It depends, some organizations can accept 0 confirmation from you if you do not enable replace-by-fee, but if you use RBF, some organizations will wait till 3 to 6 confirmations. On exchanges for example, remember not your key not your coin though, like on binance, only one confirmation is accepted for deposit while two confirmations for withdrawal. I have seen many exchanges accepting 10 confirmations irrespective of enabling or not enabling RBF.
But, in my opinion, 1 confirmation is enough if RBF is not enabled, while you can wait for more confirmations if RBF is enabled.But, in my opinion, 0 confirmation is enough if RBF is not enabled, while you can wait for confirmations if RBF is enabled. But, for more safety, six confirmations are recommended.
But, do not let chain-org confuse you, nothing like double spending. Double spending can only occur while you enable RBF while the transaction not yet confirmed, you can then double spend the Bitcoin back into an address owned on your wallet or into another address of your choice. The Bitcoin Blockchain is not faulty, nothing like double spending because the two but the same blocks that are mined by two different miners, one block will later be invalidated as new blocks build on the other one which will have the longest chain and valid transaction.