Exploratory Data Analysis on Bitcoin Price with Python

Link to the dataset:

Link to my code:


Data Description

Bitcoin is a decentralized digital currency that has gained popularity in recent years as an alternative to traditional currencies. One of the key features of Bitcoin is its volatile price, which can fluctuate rapidly in response to various factors such as news events, regulatory changes, and market sentiment. In this report, we will explore the historical price data of Bitcoin and try to uncover some insights and trends.

The Bitcoin price data used in this analysis was obtained from Kaggle community and covers the period from September 2014 to April 2023. This data was published by ALEXANDER KAPTUROV.

The data includes:

  • Date: The date on which the cryptocurrency prices were recorded. This column is usually in the YYYY-MM-DD format.
  • Open: The opening price of the cryptocurrency on that date.
  • High: The highest price of the cryptocurrency on that date.
  • Low: The lowest price of the cryptocurrency on that date.
  • Close: The closing price of the cryptocurrency on that date.
  • Adj Close: The adjusted closing price of the cryptocurrency on that date. This is the closing price adjusted for any corporate actions such as stock splits or dividends.
  • Volume: The total trading volume of the cryptocurrency on that date. This represents the total number of coins that were traded on that day.
  • Return: The changing price in percented

Exploratory Data Analysis

Now first take a look on how Bitcoin price changing over time.

  • Bitcoin price has shown a tremendous increase over the years: In this dataset, we can see Bitcoin price has increased tremendously over the year. From September 2014, the price was only 424 USD then increased to the biggest price in history to 68,789 USD in November 2021.

  • Highly volatile and subject to rapid fluctuations: From 2015 to 2017, there not much change. There have been several instances in the past where the price of Bitcoin has risen or fallen sharply in a short period of time. In late 2017, the price of Bitcoin rose from around 4,000 USD per coin, then from 4000 USD rise up to 20,000 USD in just a few months, before crashing back down to around $3,000 in early 2019. And after 3 years to late 2022, the price hit 63,000 USD, then crack down to 30,000 USD and finally reach 67,000 USD in September 2021.

  • Bitcoin price is correlated with trading volume: We observed a strong positive correlation between Bitcoin price and trading volume, indicating that higher trading activity tends to drive up the price.

  • Bitcoin price is affected by news events and external factors:  We found some evidence to suggest that Bitcoin price can be influenced by news events and external factors such as regulatory changes and market sentiment. For example, the price of Bitcoin dropped sharply in March 2020 in response to the COVID-19 pandemic, and has since recovered to some extent.

  • Returns rate highly volatile: We also looked at the distribution of daily returns of bitcoin. The histogram of daily returns shows a symmetrical distribution, with a mean return of 0.2% and a standard deviation of 3.8%. This indicates that while bitcoin prices have been highly volatile, the daily returns have been largely symmetrical over the entire period.

  • Conclusion

    In this report, we analyzed historical data on bitcoin prices using EDA. We found that bitcoin prices have been highly volatile over the past decade, with several sharp increases and decreases in price. The daily returns of bitcoin have been largely symmetrical over the entire period. We also found that the prices of bitcoin and other cryptocurrencies are highly positively correlated.

    These insights can be useful for investors who are interested in investing in cryptocurrencies like bitcoin. However, it is important to note that cryptocurrencies are highly speculative and volatile, and investors should carefully consider the risks before investing. Overall, EDA provides useful insights into the historical trends and patterns of bitcoin prices, which can aid in making informed investment decisions.