{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/bayesian-regression-and-bitcoin","title":"Bayesian regression and Bitcoin","arxiv_id":"1410.1231","date":"2014-10-06","proceeding":null,"authors":["Devavrat Shah","Kang Zhang"],"abstract":"In this paper, we discuss the method of Bayesian regression and its efficacy\nfor predicting price variation of Bitcoin, a recently popularized virtual,\ncryptographic currency. Bayesian regression refers to utilizing empirical data\nas proxy to perform Bayesian inference. We utilize Bayesian regression for the\nso-called \"latent source model\". The Bayesian regression for \"latent source\nmodel\" was introduced and discussed by Chen, Nikolov and Shah (2013) and\nBresler, Chen and Shah (2014) for the purpose of binary classification. They\nestablished theoretical as well as empirical efficacy of the method for the\nsetting of binary classification.\n  In this paper, instead we utilize it for predicting real-valued quantity, the\nprice of Bitcoin. Based on this price prediction method, we devise a simple\nstrategy for trading Bitcoin. The strategy is able to nearly double the\ninvestment in less than 60 day period when run against real data trace.","url_abs":"http://arxiv.org/abs/1410.1231v1","url_pdf":"http://arxiv.org/pdf/1410.1231v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/SourangshuGhosh/BTCpredictor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/SourangshuGhosh/BitCoinPricepredictor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/fraziezr/Machine_Learning_Final_Project_Team_12","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/panditanvita/BTCpredictor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/parikhs97/Predicting-Bitcoin-Price-Variations","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/pmshst/A-Real-time-System-of-Bitcoin-Price-Prediction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/rajatdge/Bitcoin-Price-Prediction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/raveenaaa/BitcoinPricing","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/sabsgeo/crypto-trading-bot","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/sabsgeo/sentimentalmarket","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/shawnrajan7/Bayesian-Regression-and-Bitcoin","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/stavros0/bitcoin-price-prediction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"bayesian-regression-and-bitcoin","repo_url":"https://github.com/tejasai97/BitCoinPricePrediction","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"binary-classification","task_name":"Binary Classification"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1410.1231","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1410.1231"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rajatdge/Bitcoin-Price-Prediction","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sabsgeo/sentimentalmarket","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SourangshuGhosh/BitCoinPricepredictor","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tejasai97/BitCoinPricePrediction","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pmshst/A-Real-time-System-of-Bitcoin-Price-Prediction","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sabsgeo/crypto-trading-bot","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shawnrajan7/Bayesian-Regression-and-Bitcoin","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/panditanvita/BTCpredictor","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/parikhs97/Predicting-Bitcoin-Price-Variations","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stavros0/bitcoin-price-prediction","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fraziezr/Machine_Learning_Final_Project_Team_12","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SourangshuGhosh/BTCpredictor","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/raveenaaa/BitcoinPricing","reach":null}],"summary":{"ran_draft_wrong":5,"ran_honours":2,"ran_fixture":2,"ran_violates":1,"unverified":3},"by_repo_kind":{"listed":{"samples":13,"ran":10,"repositories":6}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":8,"samples":[{"code_sha256_prefix":"1402942d0885b747","entry":"choose_effective_centers","repo":"stavros0/bitcoin-price-prediction","repo_kind":"listed","path":"bitcoin_price_prediction/bayesian_regression.py","file_url":"https://github.com/stavros0/bitcoin-price-prediction/blob/HEAD/bitcoin_price_prediction/bayesian_regression.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1402942d0885b747"}},{"code_sha256_prefix":"eb40608f370c62c2","entry":"computeDelta","repo":"shawnrajan7/Bayesian-Regression-and-Bitcoin","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/shawnrajan7/Bayesian-Regression-and-Bitcoin/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eb40608f370c62c2"}},{"code_sha256_prefix":"3bc96df115ad2b9a","entry":"computeDelta","repo":"raveenaaa/BitcoinPricing","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/raveenaaa/BitcoinPricing/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3bc96df115ad2b9a"}},{"code_sha256_prefix":"396d865c150550af","entry":"findMean","repo":"akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"396d865c150550af"}},{"code_sha256_prefix":"f74e8b4b084db3b7","entry":"findStd","repo":"akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f74e8b4b084db3b7"}},{"code_sha256_prefix":"3596eba818752a48","entry":"findTheSimilarityValues","repo":"akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/akashsrikanth2310/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression-/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3596eba818752a48"}},{"code_sha256_prefix":"b9dd41be3c7a35f3","entry":"find_cluster_centers","repo":"stavros0/bitcoin-price-prediction","repo_kind":"listed","path":"bitcoin_price_prediction/bayesian_regression.py","file_url":"https://github.com/stavros0/bitcoin-price-prediction/blob/HEAD/bitcoin_price_prediction/bayesian_regression.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b9dd41be3c7a35f3"}},{"code_sha256_prefix":"161a2eb75063855d","entry":"generate_timeseries","repo":"stavros0/bitcoin-price-prediction","repo_kind":"listed","path":"bitcoin_price_prediction/bayesian_regression.py","file_url":"https://github.com/stavros0/bitcoin-price-prediction/blob/HEAD/bitcoin_price_prediction/bayesian_regression.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"161a2eb75063855d"}},{"code_sha256_prefix":"408e49df96405fae","entry":"similarity","repo":"shawnrajan7/Bayesian-Regression-and-Bitcoin","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/shawnrajan7/Bayesian-Regression-and-Bitcoin/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"408e49df96405fae"}},{"code_sha256_prefix":"8582898b7905fbc6","entry":"similarity","repo":"prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8582898b7905fbc6"}},{"code_sha256_prefix":"e26e3994b72e9e6f","entry":"calc_support_and_resistance","repo":"sabsgeo/crypto-trading-bot","repo_kind":"listed","path":"sentimentalmarket/algorithms/trending_lines.py","file_url":"https://github.com/sabsgeo/crypto-trading-bot/blob/HEAD/sentimentalmarket/algorithms/trending_lines.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e26e3994b72e9e6f"}},{"code_sha256_prefix":"9a4797bb7ff7584d","entry":"calc_vwap","repo":"sabsgeo/crypto-trading-bot","repo_kind":"listed","path":"sentimentalmarket/algorithms/technical_indicators.py","file_url":"https://github.com/sabsgeo/crypto-trading-bot/blob/HEAD/sentimentalmarket/algorithms/technical_indicators.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9a4797bb7ff7584d"}},{"code_sha256_prefix":"6af741a51af070df","entry":"computeDelta","repo":"prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression","repo_kind":"listed","path":"bitcoin.py","file_url":"https://github.com/prmody96/Predicting-Bitcoin-Price-Variations-using-Bayesian-Regression/blob/HEAD/bitcoin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6af741a51af070df"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}