SlideShare a Scribd company logo
BitCoin, Machine Learning
and Using Them together.
Bitcoins-Magic Internet Money
Bitcoin is a purely
● digital
● Open Source
● P2P
● secure
● Currency with no central regulating authority.
Problems with traditional Digital currencies
1. Double Spending Problem.
2. The problem of trust.
Short overview of how it works:
A Deeper Dive
The overall picture to keep in mind:
Why Cryptocurrency?
Because the integrity of the entire bitcoin network depends
on a few basic cryptographic principles.
As will be discussed in the following slides.
Hashing
Process of converting a message of arbitrary length into a fixed length string of
seemingly random alpha-numeric characters.
● Prime hashing example.
● 31662.
Calculation of nonce
Nonce is the random string that miners attach to the end of the transaction
message to create a desirable hash.
● Link the prime number to the nonce.
Remember introduction?
Note that the only way the bitcoins are introduced in the network is by the
miners rewarding themselves bitcoins for their effort of hashing the
transactions.
● We want to make sure that the introduction of bitcoins is not random and
occurs in a controlled manner.Why?
● The system has a tool for this called difficulty.
Difficulty
● The hashes created by the miners can not be random.
● The system dictates that the nodes only create hashes that are less that a
challenge.
● The challenge is auto generated by the system looking at how quickly the
previous transactions were hashed.
● The system maintains hashing time at 10 min per block .
Remember Nonce?
● To meet the challenge of the system the miners add an appropriate nonce
so that the hash created by them is less than the challenge.
● Finding this nonce is not simple it involves trial and error of around
300,000,000,000,000(300 trillion) nonces.
● This is because no one knows how to back predict the SHA-256 hashing
algorithm.
● If you do you become a billionaire just by mining faster than any man alive.
The Block chain-20GB of transactions
● The Ledger that has all transaction on it since the beginning of bitcoin
time.
● Once hashed and accepted by nodes in the network, the block of
transactions along with its nonce and hash is added to the Blockchain and
the new Blockchain is synced up with all nodes in the network.
The security of the network
● Any node in the network can potentially change the block chain. So how is
this ever secure.
● Well there is this assumption that Good always Beats Evil.
● Remember the nodes when presented with 2 blockchains always choose
the longer and more complex block-chain.
Good beats Evil
● The evil node that wants to change a past transaction in the block-chain
would have to do the following .
● First he would have to modify the transaction then create a hash based on
the difficulty of that time.
● Then he would have to recompute the hashes of all subsequent blocks as
they include the hash of the previous block.
● The hope is the good nodes have enough computing power to always stay
ahead in the block-chain and never give evil a chance.
Empty Block problem
● The problem is that miners can keep creating blocks with no transactions
except their rewards this is detrimental to the system.
● This is countered by producing only a finite number of bitcoins ever and
the reward for mining is also reduced to half after every 210,000 bitcoins
mined starting from 50 bitcoins for the first block(Genesis block).
● Finally only 21million bitcoins can be produced.
● After which miners live on transaction fees.
Predicting BitCoin Exchange
Rates
The Problem
Due to the absence of any regulatory
mechanisms BitCoin exchange rates
are extremely volatile.
We set out to solve the problem of
finding the best model and features
to fit the BitCoin exchange data.
20XX 20XX 20XX 20XX
Machine Learning Introduction:
Predicting the future from past values.
The obvious next point can be predicted by
using intuition.
In more complicated models we need a bit
more mathematics to figure out the next
point. This mathematics is called machine
learning.
Error in prediction:
Which line fits the points best ?
Error in prediction:
The Aim is to minimize error. So the net
residual in prediction is minimized to find
the best fit.
The models we tested
SVM
Lowest error for all time
marching models
tested.
NN
The NN regression from
R was used it gave a
less accurate result.
Random Forest
The random forest gave
the highest rms error.
Features Used
The features we used to train our models
include:
● The mining difficulty of the bitcoins.
● The number of trades per minute.
● The volume of trades occurring in past days.
● The number of transactions in past days.
Method Used to train the model
After deciding on the
features based on
covariance calculations
We trained a model to
predict the price on a
given day based on the
value of features on that
given day.
Next we created models
for predicting the features
based on time i.e how the
features varied w.r.t time.
Finally to make
predictions we
calculated the value of
the features based on
the model that we had
and then predicted the
value of the price based
on the predicted feature
values.
Transactions per minute model
Trade volume with model
Price model using SVM
Price model using NN
Price Model using Random Forest method
Appendix
Data Sources:
● Bitcoinity.org
● Wikipedia for data on time series
analysis
● R tutorials for help regarding
application of R for our project.
The team
Srinivas Sakshi
Thank You
For the opportunity given to us.

More Related Content

PPTX
Introduction to bit coin
PPT
BIT COIN ,MINING & ATM
PPTX
Introduction to Bit Coin Model
PPT
An introduction to bit coins and bit coin mining
PPTX
BITCOIN EXPLAINED
PPTX
What is Bitcoin?
PPTX
Bitcoin
Introduction to bit coin
BIT COIN ,MINING & ATM
Introduction to Bit Coin Model
An introduction to bit coins and bit coin mining
BITCOIN EXPLAINED
What is Bitcoin?
Bitcoin

What's hot (20)

PPTX
Bitcoin data mining
PPTX
Bitcoin
PPTX
Introduction to BitCoin
PPTX
Withum cryptocurrency 101
PDF
Bitcoin buying-guide
PDF
Report on Bitcoin- The cryptocurrency (November 2017)
PPTX
Investment Club Presentation 1 2021
KEY
Introduction to bitcoin
PPTX
Bitcoins
PDF
Bitcoins & Blockchain
PDF
Economic Aspects of Bitcoins : Report
PDF
White Paper
PPTX
Bitcoin technology
PPTX
Bitcoins - A Primer on Bitcoins & Digital Currencies by Ankur Vats
PDF
Bitcoin: The Internet of Money Seminar Report
PPTX
Blockchain and Bitcoin
PDF
Bitcoin Breakthrough Training Guide.
PPTX
Cryptocurrencies and bitcoin
PPTX
Blockchain and bitcoin fundamentals (usages and applications)
Bitcoin data mining
Bitcoin
Introduction to BitCoin
Withum cryptocurrency 101
Bitcoin buying-guide
Report on Bitcoin- The cryptocurrency (November 2017)
Investment Club Presentation 1 2021
Introduction to bitcoin
Bitcoins
Bitcoins & Blockchain
Economic Aspects of Bitcoins : Report
White Paper
Bitcoin technology
Bitcoins - A Primer on Bitcoins & Digital Currencies by Ankur Vats
Bitcoin: The Internet of Money Seminar Report
Blockchain and Bitcoin
Bitcoin Breakthrough Training Guide.
Cryptocurrencies and bitcoin
Blockchain and bitcoin fundamentals (usages and applications)
Ad

Viewers also liked (18)

PPTX
civil structure analysis
ODP
Bit coin fiat_barcampbangalore BCB11 Feb 2011
PPTX
Buy ukash with PayPal
PDF
Giving a Bit(coin)- cryptocurrency and philanthropy
PPT
Women in Ecommerce presents: Bitcoin The internet of money
PDF
2014.04 Bit, Bit, Coin
PPTX
E-Payment
PPTX
Mining Opportunities of Block Chain and BitCoin
PPT
E payment
PPTX
Advantages,disadvantages,applications and economic aspects of bitcoin
PDF
Development and Engagement in the Age of Social Media
PDF
12 Ways to Increase Your Influence at Work
PDF
How We Caffeinate
PPTX
10 Better Ways to Add Text to #Images
PDF
Our World is Hungry
PDF
Bitcoin: The Internet of Money
PPTX
Squeezing Deep Learning Into Mobile Phones
PDF
The ABC’s of Living a Healthy Life
civil structure analysis
Bit coin fiat_barcampbangalore BCB11 Feb 2011
Buy ukash with PayPal
Giving a Bit(coin)- cryptocurrency and philanthropy
Women in Ecommerce presents: Bitcoin The internet of money
2014.04 Bit, Bit, Coin
E-Payment
Mining Opportunities of Block Chain and BitCoin
E payment
Advantages,disadvantages,applications and economic aspects of bitcoin
Development and Engagement in the Age of Social Media
12 Ways to Increase Your Influence at Work
How We Caffeinate
10 Better Ways to Add Text to #Images
Our World is Hungry
Bitcoin: The Internet of Money
Squeezing Deep Learning Into Mobile Phones
The ABC’s of Living a Healthy Life
Ad

Similar to Bit coin(2) (20)

PDF
Bitcoin, Banking and the Blockchain
PDF
Task of Bitcoin Miners, a module for Bitcoin .pdf
PDF
Bitcoin and blockchain engineering
PDF
Bitcoin Mining in decentralized blockchain networks
PPTX
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
PPTX
Overview of bitcoin
PPTX
Bitcoin - Understanding and Assessing potential Opportunities
PDF
Blockchain, bitcoin
PPTX
Blockchain, Bitcoin, Mining - My Product School Presentation
DOCX
bitcoin technology report
PDF
Bitcoin : A fierce decentralized crypto currency - Report
PDF
Bitcoin & Blockchain
PPTX
Math in the News: Issue 99
PDF
Bitcoins: Application of blockchain technology
PDF
Bitcoin
PPTX
Blockchain, bitcoin, ethereum and ICOs
PPTX
A Quick Start To Blockchain by Seval Capraz
PPTX
Tutorial blockchain technical overview-ss
PPTX
Bitcoin: A Peer-to-Peer Electronic Cash System
PPTX
The Blockchain - The Technology behind Bitcoin
Bitcoin, Banking and the Blockchain
Task of Bitcoin Miners, a module for Bitcoin .pdf
Bitcoin and blockchain engineering
Bitcoin Mining in decentralized blockchain networks
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
Overview of bitcoin
Bitcoin - Understanding and Assessing potential Opportunities
Blockchain, bitcoin
Blockchain, Bitcoin, Mining - My Product School Presentation
bitcoin technology report
Bitcoin : A fierce decentralized crypto currency - Report
Bitcoin & Blockchain
Math in the News: Issue 99
Bitcoins: Application of blockchain technology
Bitcoin
Blockchain, bitcoin, ethereum and ICOs
A Quick Start To Blockchain by Seval Capraz
Tutorial blockchain technical overview-ss
Bitcoin: A Peer-to-Peer Electronic Cash System
The Blockchain - The Technology behind Bitcoin

Recently uploaded (20)

PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PDF
PPT on Performance Review to get promotions
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
737-MAX_SRG.pdf student reference guides
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
communication and presentation skills 01
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Occupational Health and Safety Management System
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPTX
Current and future trends in Computer Vision.pptx
Visual Aids for Exploratory Data Analysis.pdf
86236642-Electric-Loco-Shed.pdf jfkduklg
PPT on Performance Review to get promotions
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
Abrasive, erosive and cavitation wear.pdf
737-MAX_SRG.pdf student reference guides
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
communication and presentation skills 01
III.4.1.2_The_Space_Environment.p pdffdf
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
R24 SURVEYING LAB MANUAL for civil enggi
Safety Seminar civil to be ensured for safe working.
Occupational Health and Safety Management System
Categorization of Factors Affecting Classification Algorithms Selection
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Current and future trends in Computer Vision.pptx

Bit coin(2)

  • 1. BitCoin, Machine Learning and Using Them together.
  • 2. Bitcoins-Magic Internet Money Bitcoin is a purely ● digital ● Open Source ● P2P ● secure ● Currency with no central regulating authority.
  • 3. Problems with traditional Digital currencies 1. Double Spending Problem. 2. The problem of trust.
  • 4. Short overview of how it works:
  • 6. The overall picture to keep in mind:
  • 7. Why Cryptocurrency? Because the integrity of the entire bitcoin network depends on a few basic cryptographic principles. As will be discussed in the following slides.
  • 8. Hashing Process of converting a message of arbitrary length into a fixed length string of seemingly random alpha-numeric characters. ● Prime hashing example. ● 31662.
  • 9. Calculation of nonce Nonce is the random string that miners attach to the end of the transaction message to create a desirable hash. ● Link the prime number to the nonce.
  • 10. Remember introduction? Note that the only way the bitcoins are introduced in the network is by the miners rewarding themselves bitcoins for their effort of hashing the transactions. ● We want to make sure that the introduction of bitcoins is not random and occurs in a controlled manner.Why? ● The system has a tool for this called difficulty.
  • 11. Difficulty ● The hashes created by the miners can not be random. ● The system dictates that the nodes only create hashes that are less that a challenge. ● The challenge is auto generated by the system looking at how quickly the previous transactions were hashed. ● The system maintains hashing time at 10 min per block .
  • 12. Remember Nonce? ● To meet the challenge of the system the miners add an appropriate nonce so that the hash created by them is less than the challenge. ● Finding this nonce is not simple it involves trial and error of around 300,000,000,000,000(300 trillion) nonces. ● This is because no one knows how to back predict the SHA-256 hashing algorithm. ● If you do you become a billionaire just by mining faster than any man alive.
  • 13. The Block chain-20GB of transactions ● The Ledger that has all transaction on it since the beginning of bitcoin time. ● Once hashed and accepted by nodes in the network, the block of transactions along with its nonce and hash is added to the Blockchain and the new Blockchain is synced up with all nodes in the network.
  • 14. The security of the network ● Any node in the network can potentially change the block chain. So how is this ever secure. ● Well there is this assumption that Good always Beats Evil. ● Remember the nodes when presented with 2 blockchains always choose the longer and more complex block-chain.
  • 15. Good beats Evil ● The evil node that wants to change a past transaction in the block-chain would have to do the following . ● First he would have to modify the transaction then create a hash based on the difficulty of that time. ● Then he would have to recompute the hashes of all subsequent blocks as they include the hash of the previous block. ● The hope is the good nodes have enough computing power to always stay ahead in the block-chain and never give evil a chance.
  • 16. Empty Block problem ● The problem is that miners can keep creating blocks with no transactions except their rewards this is detrimental to the system. ● This is countered by producing only a finite number of bitcoins ever and the reward for mining is also reduced to half after every 210,000 bitcoins mined starting from 50 bitcoins for the first block(Genesis block). ● Finally only 21million bitcoins can be produced. ● After which miners live on transaction fees.
  • 18. The Problem Due to the absence of any regulatory mechanisms BitCoin exchange rates are extremely volatile. We set out to solve the problem of finding the best model and features to fit the BitCoin exchange data. 20XX 20XX 20XX 20XX
  • 19. Machine Learning Introduction: Predicting the future from past values. The obvious next point can be predicted by using intuition. In more complicated models we need a bit more mathematics to figure out the next point. This mathematics is called machine learning.
  • 20. Error in prediction: Which line fits the points best ?
  • 21. Error in prediction: The Aim is to minimize error. So the net residual in prediction is minimized to find the best fit.
  • 22. The models we tested SVM Lowest error for all time marching models tested. NN The NN regression from R was used it gave a less accurate result. Random Forest The random forest gave the highest rms error.
  • 23. Features Used The features we used to train our models include: ● The mining difficulty of the bitcoins. ● The number of trades per minute. ● The volume of trades occurring in past days. ● The number of transactions in past days.
  • 24. Method Used to train the model After deciding on the features based on covariance calculations We trained a model to predict the price on a given day based on the value of features on that given day. Next we created models for predicting the features based on time i.e how the features varied w.r.t time. Finally to make predictions we calculated the value of the features based on the model that we had and then predicted the value of the price based on the predicted feature values.
  • 29. Price Model using Random Forest method
  • 30. Appendix Data Sources: ● Bitcoinity.org ● Wikipedia for data on time series analysis ● R tutorials for help regarding application of R for our project.
  • 32. Thank You For the opportunity given to us.