✍️
Qwertycoin Whitepaper
  • Cover Page
  • Credits
  • Index
  • Introduction
  • Vision
    • Vision
    • Blockchain Development Roadmap
    • Exchange Listing and Pricing Strategies
  • Consensus
    • [Outdated] CryptoNote Proof of Work
      • CryptoNote block reward scheme calculation
        • An example of CryptoNote block reward scheme manipulation
    • Egalitarian Proof of Work (EPoW)
      • Introduction of EPoW block reward algorithm based on Consistency
        • An example of how QWC prevented CryptoNote block reward manipulation
      • Difficulty Algorithm - CIMA (Confidence Interval Moving Average)
        • Testnet Result
      • Difficulty Algorithm - CLIF (Critical Level Impediment Failsafe)
        • Testnet Result
      • Do you want to make EPoW more egalitarian by switching mining algorithm?
    • Transition from PoW to PoS
    • Egalitarian Proof of Stake (EPoS) - Hybrid PoS/dPoS
      • Sharding
    • Egalitarian Proof of Service (EPoSe) - Hybrid EPoW/EPoS
  • Scalability
    • Genesis Reference Block (GRB)
    • Consolidation
    • Pruning
  • Blockchain Governance
    • FATF Compliance
    • 10% Governance Fee
    • Community Voting
  • DeFi Tranasactions
    • Time Locked Transaction (TLT)
    • Long Term Staking (LTS)
    • On-Chain Trade (OCT)
  • Smart Contracts
    • Multi-Signature
    • NFT(Non Fungible Token)
  • Features
    • LMDB (Lightening Memory Mapped Database)
  • Future Directions
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Consensus
  2. Egalitarian Proof of Work (EPoW)

Difficulty Algorithm - CIMA (Confidence Interval Moving Average)

Last Updated 2020-07-23

PreviousAn example of how QWC prevented CryptoNote block reward manipulationNextTestnet Result

Last updated 4 years ago

Was this helpful?

CIMA stands for Confidence Interval Moving Average. This difficulty algorithm('DA', hereinafter) takes the basic form of moving average techniques in statistics. Normally 95%-98% confidence interval is chosen for statistical analysis.

The percentage figure used in CI stands for the range of distributions of the values, which are normally within the confidence interval range from a mean value of the sample population. The percentage value does not necessarily represent that the future samples are likely to be within that specific interval range.

QWC's CIMA DA currently uses a 68% confidence interval and this selection of 68% CI to allow DA to adjust more quickly from valid sample data.

Within a range of 30 block time, equivalent to 1 hour, a sample mean(1), and the standard deviation is calculated.

We filter out those samples with a value that lies outside of mean +/- the standard deviation range. We treat those values outside of the 68% CI as outliers.

We then re-calculate the mean(2) of the filtered samples. We consider the mean(2) a true mean value. If the values of the samples are within a range we consider 'consistent'(remember we used the notion of consistency in our reward algorithm), the difficulty for the next block will stay the same.

In other cases, by comparing mean(1) and mean(2), the algorithm decides whether to increase or decrease the difficulty for the next block.

CIMA DA undergoes a relaxed stability state and oscillates in a simple harmonic motion around particular centerline values. As a result, it can quickly react to changes upon detecting abnormalities.

With CIMA DA and Consistency, QWC blockchain is bulletproof against the majority attacks and protects the network from any malicious intents.

A bell-shaped distribution curve diagram with confidence interval from Wikipedia