[{"data":1,"prerenderedAt":564},["ShallowReactive",2],{"i-kinnu:logo":3,"i-kinnu:origami-folding":8,"tile-science-statistics-for-data-science-advanced-level-probability":12,"i-lucide:chevron-right":559,"i-lucide:menu":562},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,27,false,"\u003Cg fill=\"none\">\u003Cpath d=\"M0.046875 1.05555C0.046875 1.03541 0.048197 1.01579 0.0507438 0.996728C0.0987149 0.438619 0.586845 0 1.18194 0H25.4398C26.451 0 26.9575 1.171 26.2424 1.85585L15.7301 11.9243L1.31574 0.903476C1.17475 0.79568 1.01137 0.761884 0.859586 0.784111L26.2936 25.1441C27.0086 25.829 26.5022 27 25.4909 27H1.18194C0.555061 27 0.046875 26.5133 0.046875 25.9129V1.05555Z\" fill=\"currentColor\"/>\u003C/g>",{"left":4,"top":4,"width":9,"height":10,"rotate":4,"vFlip":6,"hFlip":6,"body":11},1000,236,"\u003Cg fill=\"none\">\u003Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n    d=\"M193.68 38.2238C195.994 38.2238 197.87 40.0989 197.87 42.412V231.812C197.87 234.125 195.994 236 193.68 236H4.19013C1.87603 236 2.02305e-07 234.125 0 231.812V42.412C-2.02305e-07 40.0989 1.87603 38.2238 4.19013 38.2238H193.68ZM111.76 89.0072C111.685 87.9474 110.572 87.2905 109.608 87.7376L96.8872 93.641C95.7786 94.1554 95.702 95.7016 96.7545 96.3225L101.579 99.167C94.7045 109.365 90.5733 122.892 90.5732 137.642C90.5733 154.323 95.8569 169.439 104.416 179.945C105.301 181.032 106.9 181.196 107.987 180.311C109.075 179.426 109.238 177.828 108.353 176.741C100.621 167.25 95.6522 153.305 95.6521 137.642C95.6522 123.661 99.6138 111.051 105.963 101.754L110.456 104.403C111.508 105.024 112.826 104.21 112.74 102.991L111.76 89.0072ZM9.63194 136.286C9.14864 136.286 8.75684 136.678 8.75684 137.161C8.7569 137.644 9.14868 138.035 9.63194 138.035H17.2161C17.6993 138.035 18.0912 137.644 18.0912 137.161C18.0912 136.678 17.6994 136.286 17.2161 136.286H9.63194ZM22.6813 136.286C22.198 136.286 21.8062 136.678 21.8062 137.161C21.8063 137.644 22.1981 138.035 22.6813 138.035H30.2655C30.7487 138.035 31.1406 137.644 31.1406 137.161C31.1406 136.678 30.7488 136.286 30.2655 136.286H22.6813ZM35.7464 136.286C35.2631 136.286 34.8713 136.678 34.8713 137.161C34.8713 137.644 35.2631 138.035 35.7464 138.035H44.4973C44.9805 138.035 45.3724 137.644 45.3724 137.161C45.3724 136.678 44.9806 136.286 44.4973 136.286H35.7464ZM49.9977 136.286C49.5144 136.286 49.1226 136.678 49.1226 137.161C49.1226 137.644 49.5144 138.035 49.9977 138.035H57.5819C58.0651 138.035 58.4569 137.644 58.457 137.161C58.457 136.678 58.0651 136.286 57.5819 136.286H49.9977ZM63.0783 136.286C62.595 136.286 62.2032 136.678 62.2032 137.161C62.2033 137.644 62.5951 138.035 63.0783 138.035H70.6625C71.1457 138.035 71.5375 137.644 71.5376 137.161C71.5376 136.678 71.1457 136.286 70.6625 136.286H63.0783ZM76.1277 136.286C75.6444 136.286 75.2526 136.678 75.2526 137.161C75.2527 137.644 75.6445 138.035 76.1277 138.035H83.7119C84.1951 138.035 84.5869 137.644 84.587 137.161C84.587 136.678 84.1951 136.286 83.7119 136.286H76.1277ZM102.266 136.286C101.782 136.286 101.39 136.678 101.39 137.161C101.391 137.644 101.782 138.035 102.266 138.035H109.85C110.333 138.035 110.725 137.644 110.725 137.161C110.725 136.678 110.333 136.286 109.85 136.286H102.266ZM115.338 136.286C114.855 136.286 114.463 136.678 114.463 137.161C114.463 137.644 114.855 138.035 115.338 138.035H122.923C123.406 138.035 123.798 137.644 123.798 137.161C123.798 136.678 123.406 136.286 122.923 136.286H115.338ZM128.403 136.286C127.92 136.286 127.528 136.678 127.528 137.161C127.528 137.644 127.92 138.035 128.403 138.035H135.988C136.471 138.035 136.863 137.644 136.863 137.161C136.863 136.678 136.471 136.286 135.988 136.286H128.403ZM141.468 136.286C140.985 136.286 140.593 136.678 140.593 137.161C140.593 137.644 140.985 138.035 141.468 138.035H149.053C149.536 138.035 149.928 137.644 149.928 137.161C149.928 136.678 149.536 136.286 149.053 136.286H141.468ZM154.541 136.286C154.058 136.286 153.666 136.678 153.666 137.161C153.666 137.644 154.058 138.035 154.541 138.035H162.125C162.609 138.035 163 137.644 163.001 137.161C163.001 136.678 162.609 136.286 162.125 136.286H154.541ZM167.614 136.286C167.131 136.286 166.739 136.678 166.739 137.161C166.739 137.644 167.131 138.035 167.614 138.035H175.198C175.681 138.035 176.073 137.644 176.073 137.161C176.073 136.678 175.681 136.286 175.198 136.286H167.614ZM180.671 136.286C180.188 136.286 179.796 136.678 179.796 137.161C179.796 137.644 180.188 138.035 180.671 138.035H188.255C188.739 138.035 189.13 137.644 189.131 137.161C189.131 136.678 188.739 136.286 188.255 136.286H180.671Z\"\n    fill=\"currentColor\" />\n  \u003Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n    d=\"M444.85 38.2277C447.164 38.2277 449.04 40.1028 449.04 42.4159V132.928C449.04 135.241 447.164 137.116 444.85 137.116H255.36C253.046 137.116 251.17 135.241 251.17 132.928V42.4159C251.17 40.1028 253.046 38.2277 255.36 38.2277H444.85ZM361.96 125.388C361.618 125.046 361.064 125.046 360.722 125.388L354.534 131.572C354.192 131.914 354.192 132.468 354.534 132.81C354.876 133.151 355.43 133.151 355.772 132.81L361.96 126.624C362.301 126.283 362.301 125.73 361.96 125.388ZM371.047 116.311C370.705 115.969 370.15 115.969 369.809 116.311L364.446 121.671C364.104 122.012 364.104 122.567 364.446 122.908C364.788 123.249 365.342 123.25 365.684 122.908L371.047 117.548C371.388 117.207 371.388 116.652 371.047 116.311ZM380.124 107.246C379.782 106.904 379.227 106.904 378.885 107.246L373.523 112.606C373.181 112.948 373.181 113.502 373.523 113.844C373.864 114.185 374.419 114.185 374.761 113.844L380.124 108.483C380.465 108.142 380.465 107.587 380.124 107.246ZM385.736 65.8841C385.891 64.6727 384.622 63.7845 383.536 64.3434L371.069 70.7636C370.124 71.2504 369.96 72.5334 370.752 73.2424L381.2 82.5938C382.11 83.4081 383.561 82.8672 383.717 81.6557L384.393 76.3725C391.143 77.1933 398.567 80.7709 404.771 86.9711C411.124 93.3213 414.726 100.952 415.43 107.827C415.573 109.221 416.819 110.236 418.214 110.093C419.609 109.95 420.624 108.703 420.481 107.309C419.644 99.1317 415.435 90.4514 408.362 83.3817C401.466 76.489 393.038 72.3185 385.038 71.338L385.736 65.8841ZM389.2 98.1733C388.859 97.8319 388.304 97.8318 387.962 98.1733L382.6 103.534C382.258 103.875 382.258 104.429 382.6 104.771C382.941 105.112 383.496 105.112 383.838 104.771L389.2 99.4108C389.542 99.0693 389.542 98.5149 389.2 98.1733ZM398.262 89.1047C397.92 88.7633 397.365 88.7632 397.024 89.1047L391.661 94.4649C391.319 94.8065 391.319 95.3608 391.661 95.7024C392.002 96.0436 392.557 96.0438 392.899 95.7024L398.262 90.3421C398.603 90.0007 398.603 89.4463 398.262 89.1047ZM416.431 70.9616C416.089 70.6202 415.534 70.6201 415.193 70.9616L409.83 76.3218C409.488 76.6634 409.488 77.2177 409.83 77.5592C410.172 77.9005 410.726 77.9007 411.068 77.5592L416.431 72.199C416.772 71.8575 416.772 71.3032 416.431 70.9616ZM425.508 61.891C425.166 61.5496 424.611 61.5495 424.27 61.891L418.907 67.2512C418.565 67.5928 418.565 68.1471 418.907 68.4887C419.249 68.8299 419.803 68.8301 420.145 68.4887L425.508 63.1284C425.849 62.787 425.849 62.2326 425.508 61.891ZM434.569 52.8146C434.227 52.4731 433.673 52.4731 433.331 52.8146L427.968 58.1748C427.626 58.5163 427.627 59.0706 427.968 59.4122C428.31 59.7534 428.864 59.7537 429.206 59.4122L434.569 54.052C434.91 53.7105 434.91 53.1562 434.569 52.8146ZM443.638 43.7479C443.296 43.4065 442.742 43.4064 442.4 43.7479L437.037 49.1081C436.695 49.4496 436.696 50.004 437.037 50.3455C437.379 50.6868 437.933 50.687 438.275 50.3455L443.638 44.9853C443.98 44.6438 443.979 44.0895 443.638 43.7479Z\"\n    fill=\"currentColor\" />\n  \u003Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n    d=\"M684.066 38.2277C687.798 38.2281 689.667 42.7391 687.027 45.3773L596.473 135.889C595.687 136.675 594.621 137.116 593.51 137.116H506.335C504.021 137.116 502.145 135.241 502.145 132.928V42.4159C502.145 40.1028 504.021 38.2277 506.335 38.2277H684.066ZM514.603 124.566C514.261 124.224 513.707 124.224 513.365 124.566L507.178 130.751C506.836 131.093 506.836 131.646 507.178 131.988C507.519 132.329 508.073 132.329 508.415 131.988L514.603 125.803C514.945 125.462 514.945 124.908 514.603 124.566ZM523.689 115.491C523.348 115.15 522.794 115.15 522.452 115.491L517.09 120.852C516.748 121.193 516.748 121.747 517.09 122.088C517.431 122.43 517.985 122.43 518.327 122.088L523.689 116.728C524.031 116.386 524.031 115.833 523.689 115.491ZM532.102 65.8295C530.707 65.6872 529.46 66.7017 529.318 68.0957C529.175 69.4896 530.189 70.7355 531.584 70.8787C538.463 71.5825 546.096 75.1826 552.45 81.5329C558.723 87.8037 562.312 95.3226 563.079 102.13L557.738 102.392C556.518 102.452 555.865 103.855 556.607 104.827L565.115 115.969C565.76 116.814 567.051 116.751 567.611 115.847L574.992 103.928C575.635 102.889 574.848 101.555 573.628 101.615L568.161 101.882C568.161 101.878 568.162 101.874 568.161 101.871C567.324 93.6931 563.114 85.0124 556.041 77.9425C548.968 70.873 540.283 66.6668 532.102 65.8295ZM532.766 106.421C532.425 106.079 531.871 106.079 531.529 106.421L526.166 111.781C525.825 112.123 525.825 112.676 526.166 113.018C526.508 113.359 527.062 113.359 527.403 113.018L532.766 107.657C533.108 107.316 533.108 106.762 532.766 106.421ZM541.843 97.3445C541.501 97.003 540.948 97.003 540.606 97.3445L535.243 102.705C534.901 103.046 534.902 103.6 535.243 103.941C535.585 104.283 536.139 104.283 536.48 103.941L541.843 98.5809C542.185 98.2393 542.185 97.686 541.843 97.3445ZM550.92 88.2778C550.578 87.9363 550.025 87.9363 549.683 88.2778L544.32 93.638C543.978 93.9796 543.978 94.5329 544.32 94.8745C544.662 95.2161 545.215 95.2161 545.557 94.8745L550.92 89.5142C551.262 89.1727 551.262 88.6193 550.92 88.2778ZM569.066 70.1405C568.724 69.799 568.17 69.7991 567.829 70.1405L562.466 75.5008C562.124 75.8423 562.124 76.3956 562.466 76.7372C562.808 77.0788 563.361 77.0788 563.703 76.7372L569.066 71.377C569.407 71.0354 569.407 70.4821 569.066 70.1405ZM578.143 61.0699C577.801 60.7284 577.247 60.7285 576.906 61.0699L571.543 66.4302C571.201 66.7717 571.201 67.3251 571.543 67.6666C571.885 68.0082 572.438 68.0082 572.78 67.6666L578.143 62.3064C578.484 61.9648 578.484 61.4115 578.143 61.0699ZM587.219 51.9896C586.878 51.6481 586.324 51.6481 585.982 51.9896L580.62 57.3498C580.278 57.6914 580.278 58.2447 580.62 58.5863C580.961 58.9279 581.515 58.9279 581.857 58.5863L587.219 53.2261C587.561 52.8845 587.561 52.3312 587.219 51.9896ZM596.288 42.9249C595.947 42.5833 595.392 42.5833 595.05 42.9249L589.689 48.2851C589.347 48.6267 589.347 49.18 589.689 49.5216C590.03 49.863 590.584 49.8631 590.926 49.5216L596.288 44.1613C596.63 43.8198 596.63 43.2664 596.288 42.9249Z\"\n    fill=\"currentColor\" />\n  \u003Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n    d=\"M850.814 38.2277C854.547 38.2281 856.416 42.739 853.777 45.3773L763.223 135.889C762.437 136.674 761.371 137.116 760.26 137.116H673.176C669.443 137.116 667.574 132.605 670.213 129.966L760.768 39.4544C761.554 38.6692 762.62 38.2277 763.731 38.2277H850.814ZM761.338 121.8C760.855 121.8 760.463 122.191 760.463 122.674V131.13H762.213V122.674C762.213 122.191 761.821 121.8 761.338 121.8ZM761.338 108.971C760.855 108.971 760.463 109.363 760.463 109.846V118.301H762.213V109.846C762.213 109.363 761.821 108.971 761.338 108.971ZM761.338 96.1402C760.855 96.1406 760.463 96.5321 760.463 97.0149V105.47H762.213V97.0149C762.213 96.532 761.821 96.1404 761.338 96.1402ZM782.263 71.887C781.043 71.951 780.395 73.3571 781.139 74.3257L784.474 78.6631C779.115 82.951 771.242 85.7443 762.35 85.7444C753.366 85.7442 745.421 82.8944 740.059 78.5305C738.972 77.6461 737.373 77.8099 736.488 78.8961C735.602 79.983 735.766 81.582 736.853 82.467C743.231 87.6574 752.348 90.8207 762.35 90.8209C772.209 90.8208 781.205 87.746 787.568 82.6884L790.833 86.9341C791.577 87.9025 793.103 87.6391 793.479 86.4767L797.791 73.138C798.118 72.127 797.33 71.1017 796.268 71.1566L782.263 71.887ZM761.338 70.4847C760.855 70.4851 760.463 70.8767 760.463 71.3594V79.8147H762.213V71.3594C762.213 70.8766 761.821 70.485 761.338 70.4847ZM761.338 57.656C760.855 57.6564 760.463 58.048 760.463 58.5307V66.986H762.213V58.5307C762.213 58.0479 761.821 57.6563 761.338 57.656ZM761.338 44.8293C760.855 44.8297 760.463 45.2212 760.463 45.704V54.1592H762.213V45.704C762.213 45.2211 761.821 44.8295 761.338 44.8293Z\"\n    fill=\"currentColor\" />\n  \u003Cpath\n    d=\"M995.759 38.2277C999.53 38.228 1001.42 42.5171 998.752 45.0253L959.55 81.9005L905.796 41.5363C905.271 41.1418 904.662 41.0182 904.096 41.0994L997.485 130.319C1000.15 132.828 998.262 137.116 994.491 137.116H905.298C902.96 137.116 901.065 135.333 901.065 133.134V42.0941C901.065 42.0204 901.07 41.9483 901.079 41.8786C901.258 39.8345 903.079 38.2277 905.298 38.2277H995.759Z\"\n    fill=\"currentColor\" />\n  \u003Cpath\n    d=\"M505.873 0C506.657 4.57042e-05 507.307 0.195499 507.823 0.587023C508.338 0.969046 508.596 1.53802 508.596 2.29251C508.596 2.76034 508.467 3.19015 508.209 3.58162C507.951 3.96344 507.497 4.26401 506.848 4.48361V4.54114C507.65 4.67487 508.205 4.96191 508.51 5.4012C508.816 5.83087 508.969 6.31772 508.969 6.86193C508.969 7.74056 508.672 8.41851 508.08 8.89604C507.497 9.38304 506.733 9.62731 505.787 9.62738C504.861 9.62738 504.158 9.42172 503.68 9.0111C503.212 8.60054 502.935 8.08005 502.849 7.44993L503.881 7.10571L503.924 7.24028C504.035 7.54934 504.211 7.82925 504.454 8.07986C504.731 8.36635 505.166 8.50986 505.758 8.50989C506.465 8.50989 506.943 8.32772 507.191 7.9648C507.449 7.6019 507.579 7.20078 507.579 6.7615C507.579 6.2173 507.378 5.80683 506.977 5.52992C506.585 5.25295 505.93 5.10026 505.013 5.07161V4.15402C505.901 4.12537 506.489 3.92484 506.776 3.55237C507.062 3.18009 507.206 2.82242 507.206 2.47876C507.206 1.62801 506.752 1.17539 505.845 1.12237L505.658 1.11749C505.467 1.11752 505.242 1.14605 504.985 1.2033C504.736 1.25105 504.511 1.3274 504.31 1.43245L504.081 2.56457L503.05 2.44951L503.322 0.687461C503.666 0.49653 504.068 0.33454 504.526 0.200875C504.985 0.0671945 505.434 0 505.873 0Z\"\n    fill=\"currentColor\" />\n  \u003Cpath\n    d=\"M905.727 2.30616L904.638 2.4066L904.466 1.26083H901.428V3.72497C901.533 3.71544 901.643 3.71034 901.757 3.71034H902.086C902.755 3.71034 903.386 3.78668 903.979 3.93949C904.58 4.09229 905.068 4.38363 905.44 4.8132C905.822 5.23335 906.014 5.84949 906.014 6.66106C906.014 7.64468 905.722 8.38068 905.14 8.86776C904.557 9.36434 903.783 9.6127 902.818 9.61275C901.91 9.61275 901.213 9.40711 900.725 8.99648C900.248 8.59544 899.96 8.08007 899.865 7.44993L900.911 7.10571C901.007 7.49723 901.203 7.8271 901.499 8.09449C901.795 8.37131 902.211 8.50985 902.746 8.50989C903.395 8.50989 903.869 8.33787 904.165 7.99405C904.461 7.65981 904.609 7.22507 904.609 6.69031C904.609 5.87861 904.337 5.3625 903.792 5.14279C903.248 4.91361 902.612 4.79958 901.886 4.79955C901.695 4.79955 901.489 4.80365 901.27 4.8132C901.059 4.82275 900.854 4.83701 900.653 4.85611L900.224 4.44071V0.143343H905.569L905.727 2.30616Z\"\n    fill=\"currentColor\" />\n  \u003Cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n    d=\"M765.49 6.04576H766.966L766.837 7.14862H765.49V9.48404H764.185V7.14862H759.857L759.713 6.04576L762.909 0.143343H765.49V6.04576ZM760.96 6.04576H764.185V1.26083H763.541L760.96 6.04576Z\"\n    fill=\"currentColor\" />\n  \u003Cpath d=\"M4.80573 6.47481H6.41154V7.60693H1.81068V6.47481H3.50235V1.27546H1.81068V0.143343H4.80573V6.47481Z\"\n    fill=\"currentColor\" />\n  \u003Cpath\n    d=\"M254.359 0C255.353 0 256.055 0.239186 256.466 0.716715C256.877 1.18447 257.083 1.68072 257.083 2.20573C257.083 2.85516 256.849 3.44346 256.38 3.96875C255.912 4.49397 255.348 4.96638 254.689 5.38657C254.039 5.79717 253.437 6.15968 252.883 6.47481H256.423L256.538 5.42948L257.599 5.51529L257.426 7.60693H251.407L251.292 6.58987C252.582 5.73032 253.638 4.98523 254.46 4.35489C255.281 3.71509 255.693 3.05632 255.693 2.37832C255.693 1.53787 255.166 1.11749 254.115 1.12237L254.115 1.11749C253.924 1.11754 253.695 1.14604 253.427 1.2033C253.16 1.25104 252.916 1.32238 252.697 1.41783L252.467 2.47876L251.45 2.3637L251.707 0.60165C252.118 0.401088 252.563 0.253475 253.041 0.15797C253.519 0.0529708 253.958 1.99446e-05 254.359 0Z\"\n    fill=\"currentColor\" />\u003C/g>",{"tile":13,"orbsWithOnlyMarkdownPages":180},{"id":14,"data":15,"type":16,"maxContentLevel":19,"version":20,"orbs":21},"2d5d00ca-2884-40ca-8ab4-9f1b0514c002",{"type":16,"title":17,"tagline":18},9,"Probability ","Learn how to model and predict the world around you – from card games to medicine.",3,1,[22,81,116,143],{"id":23,"data":24,"type":25,"version":20,"maxContentLevel":19,"pages":27},"f9513546-54b5-4d50-a4f1-13492108bdd9",{"type":25,"title":26},2,"Foundations of Probability",[28,47,65],{"id":29,"data":30,"type":20,"maxContentLevel":19,"version":20,"reviews":34},"c3239cdb-5339-4c79-b4ff-07695e2c570f",{"type":20,"title":31,"contentRole":25,"markdownContent":32,"audioMediaId":33},"What is Probability ?","\nHave you ever wanted to predict an event, like who will win the election, or how likely you can flip a coin and get heads three times in a row? \n\nProbability helps you answer such questions. While many events can’t be predicted with complete certainty, when done correctly, probability methods enable us to predict the likelihood of events with enough reliability to inform our decision making. \n\nProbability values always range from 0 to 1, where 0 is ‘never going to happen’ and 1 is ‘you bet, it will definitely happen’. In the middle, we have 0.5, which is an even chance of the event happening, or not happening. \n\nWhen it comes to predicting events, probability is just a guide. For example, strictly speaking, if you flip a coin 10 times you should expect to get heads 5 of those flips. Go ahead and try it though, because in reality it doesn’t always work out this way. You might get 7 heads, or even 10. \n\nProbability is used to make predictions in fields like weather forecasting, medicine, insurance, and more.\n\n\n ![Graph](image://77667267-8a8c-4f45-9cea-d55e616a7dbd \"x\")","3db214dd-a8e6-4a21-9dc3-3d6fc279b57c",[35],{"id":36,"data":37,"type":38,"version":20,"maxContentLevel":19},"3a111f19-4080-4eaa-bfce-9a6ea69316c3",{"type":38,"reviewType":19,"spacingBehaviour":20,"multiChoiceQuestion":39,"multiChoiceCorrect":41,"multiChoiceIncorrect":43},11,[40],"What is the range of values that probability values can take?",[42],"0 to 1",[44,45,46],"0 to 10","0 to 100","0 to 0.5",{"id":48,"data":49,"type":20,"maxContentLevel":19,"version":20,"reviews":53},"339fdabe-8bb2-4877-9acc-ec2e95f08fd9",{"type":20,"title":50,"contentRole":25,"markdownContent":51,"audioMediaId":52},"Introduction to frequentist probability ","\nHave you ever wondered how likely it is that something will happen? Maybe you wondered how likely it was you could flip a coin and get heads 5 times in a row? It’s possible you were even trying to win a bet. Probability can help you with that.  \n\nThe two main schools of probability thought are frequentist probability, and Bayesian probability. Here we will focus on the frequentist way of thinking.\n\nFrequentist methods use large samples and statistical methods to generate probability distributions, and from those, make predictions about the probability of an event. For example, to find the probability of getting heads when flipping a coin, a frequentist would flip that coin 100000 times and count how many of them it landed on heads. \n\nWhen you want to find a general trend in data that you’ve already collected, frequentist statistics typically produce more reliable results than bayesian statistics. Also, when you need to test multiple hypotheses at once – like determining whether there is enough evidence to support two competing hypotheses, then frequentist statistics is typically preferable.\n\n\n ![Graph](image://bed48557-49e1-4ac9-89d1-2348ce32ad9a \"x\")","193ee3d6-8616-4524-88ce-0de808c61f28",[54],{"id":55,"data":56,"type":38,"version":20,"maxContentLevel":19},"78d3e63e-8bf2-4fc7-8687-279d1f3a3093",{"type":38,"reviewType":19,"spacingBehaviour":20,"multiChoiceQuestion":57,"multiChoiceCorrect":59,"multiChoiceIncorrect":61},[58],"What type of statistics is typically used when wanting to find a general trend in data that has already been collected?",[60],"Frequentist statistics",[62,63,64],"Bayesian statistics","Inferential statistics","Descriptive statistics",{"id":66,"data":67,"type":20,"maxContentLevel":19,"version":20,"reviews":71},"061dec8f-785a-4634-bfe6-ba51b31fe870",{"type":20,"title":68,"contentRole":25,"markdownContent":69,"audioMediaId":70},"Introduction to bayesian probability ","\nBayesian probability can be used to estimate the likelihood of an event based on your current knowledge and prior beliefs. As an example, if you know that people with red hair are more likely to be left-handed, then you can use the Bayes' Theorem to estimate the likelihood of left-handedness given the observed data. Bayesian probability provides a framework for understanding how chance affects outcomes in complex systems.\n\nAs an example, when flipping a coin, a bayesian would say that we know that there are two equally likely possible outcomes, so the chance of getting heads is 50% – we don’t need to flip the coin 100000 times. \n\nBayesian probability actually goes much deeper than that, though, it involves forming prior assumptions based on known observations or estimates, and updating probability estimates based on new evidence. \n\nFor example, Bayesian probability tells you the chance that you have a disease, given that you tested positive for it. This takes into account evidence, such as the base rate of the disease in the population, as well as the test’s accuracy. Bayesian statistics is useful for things like rare diseases, where finding large samples for frequentist methods is just not possible. \n","bf6a4f0f-0c4d-47cd-a040-b6b9af751ac5",[72],{"id":73,"data":74,"type":38,"version":20,"maxContentLevel":19},"5ed8bc89-3412-4245-8924-9b94258fed57",{"type":38,"reviewType":75,"spacingBehaviour":20,"clozeQuestion":76,"clozeWords":78},4,[77],"Bayesian probability can be used to estimate the likelihood of an event, given observed data.",[79,80],"likelihood","observed",{"id":82,"data":83,"type":25,"version":20,"maxContentLevel":19,"pages":85},"f5ffd4fd-c451-4b95-a0fe-ce8c53c40b8f",{"type":25,"title":84},"Probability Operations",[86,100],{"id":87,"data":88,"type":20,"maxContentLevel":19,"version":20,"reviews":92},"0809cc2d-6758-4a1a-8a75-dcd3c22c7d4a",{"type":20,"title":89,"contentRole":25,"markdownContent":90,"audioMediaId":91},"Unions, Complements, and Intersections","\n ![Graph](image://a38b07c0-b089-4e3e-b642-29245278e522 \" \")\n\nIntersections are when two events occur together, and are typically denoted by the intersection symbol (with the common way of expressing an interaction’s probability below):\n\n ![Graph](image://1caab321-bda1-4886-9a8c-8177f7fa2ac0 \"The intersection symbol (above), and the expression for an intersection's probability (below)\")\n\nBut sometimes you might see it written as P(A and B) or just P(AB). The intersection is shown in the overlapping of the circles in our venn diagram above. As an example, the probability that a card drawn from a deck is both red, and a Queen. \n\nUnions are when either event A, or B, or both occur. Unions are typically denoted by the union symbol symbol (with the common way of expressing an interaction’s probability below): \n\n\n ![Graph](image://07743de3-9802-438e-94fb-70afe8bc274f \"The union symbol (above), and the expression for an union's probability (below)\")\n\nThe union is visualied as the entire area of the two circles in our venn diagram above, minus the area of the intersection. An example would be drawing a red card or a queen. The equation to find the union looks like this:  \n\n ![Graph](image://d8d8fe5e-88e4-4ce3-a1e1-1cadad0418f1 \" \")\n\n","f71916ea-dd99-4205-8542-b24a7ecbff33",[93],{"id":94,"data":95,"type":38,"version":20,"maxContentLevel":19},"220c050a-0ea9-4dc9-8bd4-f2bf5e8e122c",{"type":38,"reviewType":20,"spacingBehaviour":20,"activeRecallQuestion":96,"activeRecallAnswers":98},[97],"P(AB) is one way of representing the probability of what kind of relationship?",[99],"An intersection",{"id":101,"data":102,"type":20,"maxContentLevel":19,"version":20,"reviews":106},"4e40618d-dde2-4c45-8a68-9c0ff222d06c",{"type":20,"title":103,"contentRole":25,"markdownContent":104,"audioMediaId":105},"Complements"," ![Graph](image://09985913-48b8-4b34-8128-e1ef5fd84f00 \" \")\n\nComplements are all of the events outside of A, and are typically signified by A’. Due to the fact that the sample space probability adds up to 1, the probability of A’ is equal to 1 - P(A). \n\nTo take a useful medical example, imagine we have a union between diabetes and hypertension – the probability that the person has neither of these is 1 -  P(A U B). In this way, by knowing the probability of an event, or events, you can easily calculate the probability of an event not occurring, too. \n\nAs an example, if A is the probability of you drawing a red card from a deck of cards, then A’ is the probability that you draw anything other than a red card. \n\nGiven there are 26 red cards in a deck of cards, the probability you draw one is 26/52 which equals .5 – so A’ = 1 - .5 = .5\n\n","8b2a2b2d-c800-42aa-b3e1-8e94c404ed0f",[107],{"id":108,"data":109,"type":38,"version":20,"maxContentLevel":19},"63f66e59-18c3-4761-bd89-1ba245454d92",{"type":38,"reviewType":25,"spacingBehaviour":20,"binaryQuestion":110,"binaryCorrect":112,"binaryIncorrect":114},[111],"What is the probability of drawing a card from a deck of cards that is not red?",[113],"0.5",[115],"0.25",{"id":117,"data":118,"type":25,"version":20,"maxContentLevel":19,"pages":120},"23b2f638-48fe-41ee-91ee-5147d2366a1a",{"type":25,"title":119},"Conditional Probability",[121,137],{"id":122,"data":123,"type":20,"maxContentLevel":19,"version":20,"reviews":127},"b4e7e33b-05d4-46d7-8960-ecc9f08acc46",{"type":20,"title":124,"contentRole":25,"markdownContent":125,"audioMediaId":126},"Introduction to Conditional Probability "," ![Graph](image://37402960-471e-4c3a-a618-d4546fb107cd \" \")\n\nConditional probability is perhaps easiest to visualize first – you’ve come across a venn diagram before, right? Well let’s just wrap that in a bigger circle which represents our sample space of all possible outcomes. \n\nWhen it comes to conditional probability, we are narrowing our potential set of outcomes. Given that B has occurred, that narrows our sample space and excludes anything shown in red. It also reduces the probability that A can occur, which is why we only have a small piece of overlap in the venn diagram.\n\nIf we want to know what the probability of A occuring, given that B has already occurred, the formula to do so looks like this, where the formula in the numerator is the intersection of events A and B, the chance they happen together: \n\n ![Graph](image://116cb5ed-9899-4265-8ae2-5ac7d6a5af50 \" \")\n\nP(B|A) means the probability of event B occurring, given that A has already occurred. \n\n\n ![Graph](image://e9da21a4-26c2-4e88-a470-1fdfaa3e1ef2 \" \")\n\nAs an example, what is the probability that somebody is a Kinnu user given that you know they prefer cats? That would be P(Kinnu user|prefers cats) = 12/36 = 33.3% \n\n","42f93442-ea61-4a55-8f9a-cf838c1989a4",[128],{"id":129,"data":130,"type":38,"version":20,"maxContentLevel":19},"8eeb5f84-f9e5-47da-aa79-b9008aca171f",{"type":38,"reviewType":25,"spacingBehaviour":20,"binaryQuestion":131,"binaryCorrect":133,"binaryIncorrect":135},[132],"What is the equation for the probability of an event occurring, given that another event has already occurred?",[134],"P(B|A)",[136],"P(2AB)",{"id":138,"data":139,"type":20,"maxContentLevel":19,"version":20},"457d1844-93e6-49d0-a3e8-f8adf59f856a",{"type":20,"title":140,"contentRole":25,"markdownContent":141,"audioMediaId":142},"Conditional probability calculations","\nConditional probability is the chance that one event will happen, given that another event has already occurred. It is calculated via the formula below. \n\n ![Graph](image://0659704c-ad61-43a8-abab-e28cb2ff4c41 \" \")\n\nLet’s say that 50% of Kinnu users study data science, and 30% study history. 15% study both history and data science. Yesterday you met a random Kinnu user on the street, and you wondered if they do the history pathway like you do. They mentioned that they take data science, but they didn’t mention anything about history. So what are the chances they do? \n\nWe know the probability they take history is 0.3 – let’s call that event B. And the probability they are learning data science is 0.5 – that’s event A. The probability they do both, is .15 – which is given as the intersection in our formula above, in the numerator. \n\n\n\n ![Graph](image://70fbcbe6-7a43-4d25-aab4-f3a121301733 \" \")\n\n\nSo, it turns out there is a 30% chance that your new friend takes history as well. Next time you see them you can ask about it, but it's not very likely that they do. \n\n","35f32834-89cb-4419-bf10-c546c4985bce",{"id":144,"data":145,"type":25,"version":20,"maxContentLevel":19,"pages":147},"32323060-7243-42c1-8861-ae09ed4e95f4",{"type":25,"title":146},"Probability Events",[148,162],{"id":149,"data":150,"type":20,"maxContentLevel":19,"version":20,"reviews":154},"1a884b29-b050-4d7d-8a59-4ac8681966a3",{"type":20,"title":151,"contentRole":25,"markdownContent":152,"audioMediaId":153},"Mutually Exclusive Events","\n ![Graph](image://40603feb-0ee0-4092-b133-e6eb9ae3b37b \"A coin flip is a classic disjoint event\")\n\n\nSometimes also called ‘disjoint events’, mutually exclusive events just cannot happen together. For example, imagine that you flip a two sided coin, once. It's impossible for the flip to be both heads and tails on a single coin flip. Let’s take it one step further though, instead of two possible events, you now have three. You have a handful of delicious, tasty, and colorful M&Ms. Yum. \n\nFor simplicity, let’s say we only have three colors left, somebody ate all the rest – not the Kinnu team, I swear! We know that there are 10 M&Ms total – 3 red, 3 green, and 4 blue. \n\nThat means our probabilities of picking each are 0.3, 0.3, and 0.4 – but what if we want to know our probability of picking a red OR a green M&M. When we have mutually exclusive events, it’s easy to calculate the probability of a problem like this. All we do is add up the two probabilities like so: \n\n\n ![Graph](image://d44021b9-9dba-4541-b3a5-50bfe326de9e \" \")\n\nThe U symbol that you see means Union – and means that either A or B occurs, but not both. \n\n","e971ad86-79ec-4022-a92b-c2c8958387ac",[155],{"id":156,"data":157,"type":38,"version":20,"maxContentLevel":19},"0a998639-a198-4aab-aa3b-37aab7592fab",{"type":38,"reviewType":20,"spacingBehaviour":20,"activeRecallQuestion":158,"activeRecallAnswers":160},[159],"What is the term for the probability that either A or B occurs, but not both?",[161],"Union",{"id":163,"data":164,"type":20,"maxContentLevel":19,"version":20,"reviews":168},"08ec1a70-9038-4a29-bfae-df7cd10a8f24",{"type":20,"title":165,"contentRole":25,"markdownContent":166,"audioMediaId":167},"Frequentist Statistics ","\n\n\nA simple example to understand frequentist statistics is to imagine that we didn’t know the probabilities associated with a coin flip. Maybe the coin is weighted heavier on one side which changes the odds? How would we uncover the underlying probability? \n\nAs frequentists rely purely on the ‘what is’ of data, meaning, what has already been observed, to a frequentist, probability is what has been observed in the frequencies of different outcomes from a series of controlled trials. Frequentist statistics uses something called Maximum Likelihood Estimation ‘MLE’. \n\n ![Graph](image://f514a859-c8d8-4a15-bb47-6bc6eec67a87 \" \")\n\nA frequentist coin flip experiment involves hundreds, thousands, or even hundreds of thousands of coin flips – each time the result is recorded, and at the end of the experiment the total number of heads is divided by the total number of coin flips. That is our estimate of the probability of flipping heads, and only after a large number of trials can we estimate it with confidence. \n\nBut, frequentist probability has its limitations, because it requires that events be repeatable. However some things just aren’t repeatable, like elections, or a world cup soccer match. Sure, there is an election every year, and a world cup match every 4 years  – but not the same election or the exact same world cup match. For events like these, a Bayesian approach is more reliable. ","f763eb33-50dc-4639-8cf4-e2f087a04cba",[169],{"id":170,"data":171,"type":38,"version":20,"maxContentLevel":19},"deb31257-d9ff-4c73-9563-1c9a94d7c15b",{"type":38,"reviewType":19,"spacingBehaviour":20,"multiChoiceQuestion":172,"multiChoiceCorrect":174,"multiChoiceIncorrect":176},[173],"What is the name of the method used by frequentist statistics to estimate probability?",[175],"Maximum Likelihood Estimation (MLE)",[177,178,179],"Maximum Likelihood Analysis (MLA)","Maximum Likelihood Probability (MLP)","Maximum Likelihood Calculation (MLC)",[181,291,385,481],{"id":23,"data":24,"type":25,"version":20,"maxContentLevel":19,"pages":182},[183,230,264],{"id":29,"data":30,"type":20,"maxContentLevel":19,"version":20,"reviews":34,"parsed":184},{"data":185,"body":188,"toc":228},{"title":186,"description":187},"","Have you ever wanted to predict an event, like who will win the election, or how likely you can flip a coin and get heads three times in a row?",{"type":189,"children":190},"root",[191,198,203,208,213,218],{"type":192,"tag":193,"props":194,"children":195},"element","p",{},[196],{"type":197,"value":187},"text",{"type":192,"tag":193,"props":199,"children":200},{},[201],{"type":197,"value":202},"Probability helps you answer such questions. While many events can’t be predicted with complete certainty, when done correctly, probability methods enable us to predict the likelihood of events with enough reliability to inform our decision making.",{"type":192,"tag":193,"props":204,"children":205},{},[206],{"type":197,"value":207},"Probability values always range from 0 to 1, where 0 is ‘never going to happen’ and 1 is ‘you bet, it will definitely happen’. In the middle, we have 0.5, which is an even chance of the event happening, or not happening.",{"type":192,"tag":193,"props":209,"children":210},{},[211],{"type":197,"value":212},"When it comes to predicting events, probability is just a guide. For example, strictly speaking, if you flip a coin 10 times you should expect to get heads 5 of those flips. Go ahead and try it though, because in reality it doesn’t always work out this way. You might get 7 heads, or even 10.",{"type":192,"tag":193,"props":214,"children":215},{},[216],{"type":197,"value":217},"Probability is used to make predictions in fields like weather forecasting, medicine, insurance, and more.",{"type":192,"tag":193,"props":219,"children":220},{},[221],{"type":192,"tag":222,"props":223,"children":227},"img",{"alt":224,"src":225,"title":226},"Graph","image://77667267-8a8c-4f45-9cea-d55e616a7dbd","x",[],{"title":186,"searchDepth":25,"depth":25,"links":229},[],{"id":48,"data":49,"type":20,"maxContentLevel":19,"version":20,"reviews":53,"parsed":231},{"data":232,"body":234,"toc":262},{"title":186,"description":233},"Have you ever wondered how likely it is that something will happen? Maybe you wondered how likely it was you could flip a coin and get heads 5 times in a row? It’s possible you were even trying to win a bet. Probability can help you with that.",{"type":189,"children":235},[236,240,245,250,255],{"type":192,"tag":193,"props":237,"children":238},{},[239],{"type":197,"value":233},{"type":192,"tag":193,"props":241,"children":242},{},[243],{"type":197,"value":244},"The two main schools of probability thought are frequentist probability, and Bayesian probability. Here we will focus on the frequentist way of thinking.",{"type":192,"tag":193,"props":246,"children":247},{},[248],{"type":197,"value":249},"Frequentist methods use large samples and statistical methods to generate probability distributions, and from those, make predictions about the probability of an event. For example, to find the probability of getting heads when flipping a coin, a frequentist would flip that coin 100000 times and count how many of them it landed on heads.",{"type":192,"tag":193,"props":251,"children":252},{},[253],{"type":197,"value":254},"When you want to find a general trend in data that you’ve already collected, frequentist statistics typically produce more reliable results than bayesian statistics. Also, when you need to test multiple hypotheses at once – like determining whether there is enough evidence to support two competing hypotheses, then frequentist statistics is typically preferable.",{"type":192,"tag":193,"props":256,"children":257},{},[258],{"type":192,"tag":222,"props":259,"children":261},{"alt":224,"src":260,"title":226},"image://bed48557-49e1-4ac9-89d1-2348ce32ad9a",[],{"title":186,"searchDepth":25,"depth":25,"links":263},[],{"id":66,"data":67,"type":20,"maxContentLevel":19,"version":20,"reviews":71,"parsed":265},{"data":266,"body":268,"toc":289},{"title":186,"description":267},"Bayesian probability can be used to estimate the likelihood of an event based on your current knowledge and prior beliefs. As an example, if you know that people with red hair are more likely to be left-handed, then you can use the Bayes' Theorem to estimate the likelihood of left-handedness given the observed data. Bayesian probability provides a framework for understanding how chance affects outcomes in complex systems.",{"type":189,"children":269},[270,274,279,284],{"type":192,"tag":193,"props":271,"children":272},{},[273],{"type":197,"value":267},{"type":192,"tag":193,"props":275,"children":276},{},[277],{"type":197,"value":278},"As an example, when flipping a coin, a bayesian would say that we know that there are two equally likely possible outcomes, so the chance of getting heads is 50% – we don’t need to flip the coin 100000 times.",{"type":192,"tag":193,"props":280,"children":281},{},[282],{"type":197,"value":283},"Bayesian probability actually goes much deeper than that, though, it involves forming prior assumptions based on known observations or estimates, and updating probability estimates based on new evidence.",{"type":192,"tag":193,"props":285,"children":286},{},[287],{"type":197,"value":288},"For example, Bayesian probability tells you the chance that you have a disease, given that you tested positive for it. This takes into account evidence, such as the base rate of the disease in the population, as well as the test’s accuracy. Bayesian statistics is useful for things like rare diseases, where finding large samples for frequentist methods is just not possible.",{"title":186,"searchDepth":25,"depth":25,"links":290},[],{"id":82,"data":83,"type":25,"version":20,"maxContentLevel":19,"pages":292},[293,351],{"id":87,"data":88,"type":20,"maxContentLevel":19,"version":20,"reviews":92,"parsed":294},{"data":295,"body":296,"toc":349},{"title":186,"description":186},{"type":189,"children":297},[298,306,311,319,324,329,337,342],{"type":192,"tag":193,"props":299,"children":300},{},[301],{"type":192,"tag":222,"props":302,"children":305},{"alt":224,"src":303,"title":304},"image://a38b07c0-b089-4e3e-b642-29245278e522"," ",[],{"type":192,"tag":193,"props":307,"children":308},{},[309],{"type":197,"value":310},"Intersections are when two events occur together, and are typically denoted by the intersection symbol (with the common way of expressing an interaction’s probability below):",{"type":192,"tag":193,"props":312,"children":313},{},[314],{"type":192,"tag":222,"props":315,"children":318},{"alt":224,"src":316,"title":317},"image://1caab321-bda1-4886-9a8c-8177f7fa2ac0","The intersection symbol (above), and the expression for an intersection's probability (below)",[],{"type":192,"tag":193,"props":320,"children":321},{},[322],{"type":197,"value":323},"But sometimes you might see it written as P(A and B) or just P(AB). The intersection is shown in the overlapping of the circles in our venn diagram above. As an example, the probability that a card drawn from a deck is both red, and a Queen.",{"type":192,"tag":193,"props":325,"children":326},{},[327],{"type":197,"value":328},"Unions are when either event A, or B, or both occur. Unions are typically denoted by the union symbol symbol (with the common way of expressing an interaction’s probability below):",{"type":192,"tag":193,"props":330,"children":331},{},[332],{"type":192,"tag":222,"props":333,"children":336},{"alt":224,"src":334,"title":335},"image://07743de3-9802-438e-94fb-70afe8bc274f","The union symbol (above), and the expression for an union's probability (below)",[],{"type":192,"tag":193,"props":338,"children":339},{},[340],{"type":197,"value":341},"The union is visualied as the entire area of the two circles in our venn diagram above, minus the area of the intersection. An example would be drawing a red card or a queen. The equation to find the union looks like this:",{"type":192,"tag":193,"props":343,"children":344},{},[345],{"type":192,"tag":222,"props":346,"children":348},{"alt":224,"src":347,"title":304},"image://d8d8fe5e-88e4-4ce3-a1e1-1cadad0418f1",[],{"title":186,"searchDepth":25,"depth":25,"links":350},[],{"id":101,"data":102,"type":20,"maxContentLevel":19,"version":20,"reviews":106,"parsed":352},{"data":353,"body":354,"toc":383},{"title":186,"description":186},{"type":189,"children":355},[356,363,368,373,378],{"type":192,"tag":193,"props":357,"children":358},{},[359],{"type":192,"tag":222,"props":360,"children":362},{"alt":224,"src":361,"title":304},"image://09985913-48b8-4b34-8128-e1ef5fd84f00",[],{"type":192,"tag":193,"props":364,"children":365},{},[366],{"type":197,"value":367},"Complements are all of the events outside of A, and are typically signified by A’. Due to the fact that the sample space probability adds up to 1, the probability of A’ is equal to 1 - P(A).",{"type":192,"tag":193,"props":369,"children":370},{},[371],{"type":197,"value":372},"To take a useful medical example, imagine we have a union between diabetes and hypertension – the probability that the person has neither of these is 1 -  P(A U B). In this way, by knowing the probability of an event, or events, you can easily calculate the probability of an event not occurring, too.",{"type":192,"tag":193,"props":374,"children":375},{},[376],{"type":197,"value":377},"As an example, if A is the probability of you drawing a red card from a deck of cards, then A’ is the probability that you draw anything other than a red card.",{"type":192,"tag":193,"props":379,"children":380},{},[381],{"type":197,"value":382},"Given there are 26 red cards in a deck of cards, the probability you draw one is 26/52 which equals .5 – so A’ = 1 - .5 = .5",{"title":186,"searchDepth":25,"depth":25,"links":384},[],{"id":117,"data":118,"type":25,"version":20,"maxContentLevel":19,"pages":386},[387,440],{"id":122,"data":123,"type":20,"maxContentLevel":19,"version":20,"reviews":127,"parsed":388},{"data":389,"body":390,"toc":438},{"title":186,"description":186},{"type":189,"children":391},[392,399,404,409,414,421,426,433],{"type":192,"tag":193,"props":393,"children":394},{},[395],{"type":192,"tag":222,"props":396,"children":398},{"alt":224,"src":397,"title":304},"image://37402960-471e-4c3a-a618-d4546fb107cd",[],{"type":192,"tag":193,"props":400,"children":401},{},[402],{"type":197,"value":403},"Conditional probability is perhaps easiest to visualize first – you’ve come across a venn diagram before, right? Well let’s just wrap that in a bigger circle which represents our sample space of all possible outcomes.",{"type":192,"tag":193,"props":405,"children":406},{},[407],{"type":197,"value":408},"When it comes to conditional probability, we are narrowing our potential set of outcomes. Given that B has occurred, that narrows our sample space and excludes anything shown in red. It also reduces the probability that A can occur, which is why we only have a small piece of overlap in the venn diagram.",{"type":192,"tag":193,"props":410,"children":411},{},[412],{"type":197,"value":413},"If we want to know what the probability of A occuring, given that B has already occurred, the formula to do so looks like this, where the formula in the numerator is the intersection of events A and B, the chance they happen together:",{"type":192,"tag":193,"props":415,"children":416},{},[417],{"type":192,"tag":222,"props":418,"children":420},{"alt":224,"src":419,"title":304},"image://116cb5ed-9899-4265-8ae2-5ac7d6a5af50",[],{"type":192,"tag":193,"props":422,"children":423},{},[424],{"type":197,"value":425},"P(B|A) means the probability of event B occurring, given that A has already occurred.",{"type":192,"tag":193,"props":427,"children":428},{},[429],{"type":192,"tag":222,"props":430,"children":432},{"alt":224,"src":431,"title":304},"image://e9da21a4-26c2-4e88-a470-1fdfaa3e1ef2",[],{"type":192,"tag":193,"props":434,"children":435},{},[436],{"type":197,"value":437},"As an example, what is the probability that somebody is a Kinnu user given that you know they prefer cats? That would be P(Kinnu user|prefers cats) = 12/36 = 33.3%",{"title":186,"searchDepth":25,"depth":25,"links":439},[],{"id":138,"data":139,"type":20,"maxContentLevel":19,"version":20,"parsed":441},{"data":442,"body":444,"toc":479},{"title":186,"description":443},"Conditional probability is the chance that one event will happen, given that another event has already occurred. It is calculated via the formula below.",{"type":189,"children":445},[446,450,457,462,467,474],{"type":192,"tag":193,"props":447,"children":448},{},[449],{"type":197,"value":443},{"type":192,"tag":193,"props":451,"children":452},{},[453],{"type":192,"tag":222,"props":454,"children":456},{"alt":224,"src":455,"title":304},"image://0659704c-ad61-43a8-abab-e28cb2ff4c41",[],{"type":192,"tag":193,"props":458,"children":459},{},[460],{"type":197,"value":461},"Let’s say that 50% of Kinnu users study data science, and 30% study history. 15% study both history and data science. Yesterday you met a random Kinnu user on the street, and you wondered if they do the history pathway like you do. They mentioned that they take data science, but they didn’t mention anything about history. So what are the chances they do?",{"type":192,"tag":193,"props":463,"children":464},{},[465],{"type":197,"value":466},"We know the probability they take history is 0.3 – let’s call that event B. And the probability they are learning data science is 0.5 – that’s event A. The probability they do both, is .15 – which is given as the intersection in our formula above, in the numerator.",{"type":192,"tag":193,"props":468,"children":469},{},[470],{"type":192,"tag":222,"props":471,"children":473},{"alt":224,"src":472,"title":304},"image://70fbcbe6-7a43-4d25-aab4-f3a121301733",[],{"type":192,"tag":193,"props":475,"children":476},{},[477],{"type":197,"value":478},"So, it turns out there is a 30% chance that your new friend takes history as well. Next time you see them you can ask about it, but it's not very likely that they do.",{"title":186,"searchDepth":25,"depth":25,"links":480},[],{"id":144,"data":145,"type":25,"version":20,"maxContentLevel":19,"pages":482},[483,525],{"id":149,"data":150,"type":20,"maxContentLevel":19,"version":20,"reviews":154,"parsed":484},{"data":485,"body":486,"toc":523},{"title":186,"description":186},{"type":189,"children":487},[488,496,501,506,511,518],{"type":192,"tag":193,"props":489,"children":490},{},[491],{"type":192,"tag":222,"props":492,"children":495},{"alt":224,"src":493,"title":494},"image://40603feb-0ee0-4092-b133-e6eb9ae3b37b","A coin flip is a classic disjoint event",[],{"type":192,"tag":193,"props":497,"children":498},{},[499],{"type":197,"value":500},"Sometimes also called ‘disjoint events’, mutually exclusive events just cannot happen together. For example, imagine that you flip a two sided coin, once. It's impossible for the flip to be both heads and tails on a single coin flip. Let’s take it one step further though, instead of two possible events, you now have three. You have a handful of delicious, tasty, and colorful M&Ms. Yum.",{"type":192,"tag":193,"props":502,"children":503},{},[504],{"type":197,"value":505},"For simplicity, let’s say we only have three colors left, somebody ate all the rest – not the Kinnu team, I swear! We know that there are 10 M&Ms total – 3 red, 3 green, and 4 blue.",{"type":192,"tag":193,"props":507,"children":508},{},[509],{"type":197,"value":510},"That means our probabilities of picking each are 0.3, 0.3, and 0.4 – but what if we want to know our probability of picking a red OR a green M&M. When we have mutually exclusive events, it’s easy to calculate the probability of a problem like this. All we do is add up the two probabilities like so:",{"type":192,"tag":193,"props":512,"children":513},{},[514],{"type":192,"tag":222,"props":515,"children":517},{"alt":224,"src":516,"title":304},"image://d44021b9-9dba-4541-b3a5-50bfe326de9e",[],{"type":192,"tag":193,"props":519,"children":520},{},[521],{"type":197,"value":522},"The U symbol that you see means Union – and means that either A or B occurs, but not both.",{"title":186,"searchDepth":25,"depth":25,"links":524},[],{"id":163,"data":164,"type":20,"maxContentLevel":19,"version":20,"reviews":168,"parsed":526},{"data":527,"body":529,"toc":557},{"title":186,"description":528},"A simple example to understand frequentist statistics is to imagine that we didn’t know the probabilities associated with a coin flip. Maybe the coin is weighted heavier on one side which changes the odds? How would we uncover the underlying probability?",{"type":189,"children":530},[531,535,540,547,552],{"type":192,"tag":193,"props":532,"children":533},{},[534],{"type":197,"value":528},{"type":192,"tag":193,"props":536,"children":537},{},[538],{"type":197,"value":539},"As frequentists rely purely on the ‘what is’ of data, meaning, what has already been observed, to a frequentist, probability is what has been observed in the frequencies of different outcomes from a series of controlled trials. Frequentist statistics uses something called Maximum Likelihood Estimation ‘MLE’.",{"type":192,"tag":193,"props":541,"children":542},{},[543],{"type":192,"tag":222,"props":544,"children":546},{"alt":224,"src":545,"title":304},"image://f514a859-c8d8-4a15-bb47-6bc6eec67a87",[],{"type":192,"tag":193,"props":548,"children":549},{},[550],{"type":197,"value":551},"A frequentist coin flip experiment involves hundreds, thousands, or even hundreds of thousands of coin flips – each time the result is recorded, and at the end of the experiment the total number of heads is divided by the total number of coin flips. That is our estimate of the probability of flipping heads, and only after a large number of trials can we estimate it with confidence.",{"type":192,"tag":193,"props":553,"children":554},{},[555],{"type":197,"value":556},"But, frequentist probability has its limitations, because it requires that events be repeatable. However some things just aren’t repeatable, like elections, or a world cup soccer match. Sure, there is an election every year, and a world cup match every 4 years  – but not the same election or the exact same world cup match. For events like these, a Bayesian approach is more reliable.",{"title":186,"searchDepth":25,"depth":25,"links":558},[],{"left":4,"top":4,"width":560,"height":560,"rotate":4,"vFlip":6,"hFlip":6,"body":561},24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"/>",{"left":4,"top":4,"width":560,"height":560,"rotate":4,"vFlip":6,"hFlip":6,"body":563},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"/>",1778179418251]