# Bayes’ Theorem Example for Classification and Prediction

Bayes Theorem

During 18th Century there was a mathematician named ‘Thomas Bayes’ in Britain. Bayes’ Theorem is named after this famous mathematician. Bayes’ Theorem is used to determine Conditional Probability. Mostly this theorem was used to check risk in finance evaluation. Basic equation for Bayes’ Theorem is:

``P(category|document)= (P(category).P(document|category)) / (P(document))``
{"ft_lang_label":"__label__en","ft_lang_prob":0.90472704,"math_prob":0.86295164,"size":802,"snap":"2023-40-2023-50","text_gpt3_token_len":177,"char_repetition_ratio":0.18045112,"word_repetition_ratio":0.0,"special_character_ratio":0.20199502,"punctuation_ratio":0.08695652,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997608,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-28T02:12:49Z\",\"WARC-Record-ID\":\"<urn:uuid:b0a5e094-57c2-42fa-ae32-b4a7a30b3d34>\",\"Content-Length\":\"78587\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:26d03d95-9112-4967-9d35-662987bd86b5>\",\"WARC-Concurrent-To\":\"<urn:uuid:ea200184-e0c8-4815-a9d1-d54354933530>\",\"WARC-IP-Address\":\"78.110.171.171\",\"WARC-Target-URI\":\"https://ocjp.in/bayes-theorem-example-for-classification-and-prediction/\",\"WARC-Payload-Digest\":\"sha1:JOWF73CIMPP3TN4VUJB3HEGAKVAODUX3\",\"WARC-Block-Digest\":\"sha1:GOMXHJWVO33ET4SXDEFXHUNW7A4CFXTY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510334.9_warc_CC-MAIN-20230927235044-20230928025044-00762.warc.gz\"}"}