Site icon R-bloggers

New Statistics Course: Conditional Probability in R

[This article was first published on rstats – Dataquest, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Take your data science and statistics knowledge to the next level with the latest addition to our fast-growing Data Analyst in R learning path: Conditional Probability in R.

In this course, you’ll learn about the basics of conditional probability and then dig into more advanced concepts like Bayes’s theorem and Naive Bayes algorithm. As you learn, you’ll be using your R skills to put theory into practice and build a working knowledge of these critical statistics concepts. 

Ready to start learning? Click the button below to dive into Conditional Probability in R, or scroll down to learn more about this new course.

< svg class="tcb-icon" viewBox="0 0 581 512" data-id="icon-r-project-brands" data-name=""> < path d="M581 226.6C581 119.1 450.9 32 290.5 32S0 119.1 0 226.6C0 322.4 103.3 402 239.4 418.1V480h99.1v-61.5c24.3-2.7 47.6-7.4 69.4-13.9L448 480h112l-67.4-113.7c54.5-35.4 88.4-84.9 88.4-139.7zm-466.8 14.5c0-73.5 98.9-133 220.8-133s211.9 40.7 211.9 133c0 50.1-26.5 85-70.3 106.4-2.4-1.6-4.7-2.9-6.4-3.7-10.2-5.2-27.8-10.5-27.8-10.5s86.6-6.4 86.6-92.7-90.6-87.9-90.6-87.9h-199V361c-74.1-21.5-125.2-67.1-125.2-119.9zm225.1 38.3v-55.6c57.8 0 87.8-6.8 87.8 27.3 0 36.5-38.2 28.3-87.8 28.3zm-.9 72.5H365c10.8 0 18.9 11.7 24 19.2-16.1 1.9-33 2.8-50.6 2.9v-22.1z">
CONDITIONAL PROBABILITY IN R

What’s Covered in Conditional Probability in R?

Conditional Probability is an area of probability theory that’s concerned with — as the name suggests — measuring the probability of a particular event occurring based on certain conditions. 

In this course, which builds off of the Probability Fundamentals course that precedes it in our Data Analyst in R path, we’ll start with some lessons on foundational concepts like the conditional probability formula, the multiplication rule, statistical dependence and independence, and more.

From there, we’ll look at Bayes’ Theorem and how it can be used to calculate probabilities. We’ll examine prior and posterior probability distributions. Then we’ll dig in and apply some of these statistical concepts by learning about the Naive Bayes algorithm, a common statistical tool employed by data scientists.

Finally, you’ll put all your new knowledge into practice in a new guided project that challenges you to build an SMS spam filter using a data set of over 5,000 messages by employing a Naive Bayes algorithm. 

By the end of the course, you’ll feel comfortable assigning probabilities to events based on conditions using the rules of conditional probability. You’ll know when these events have statistical dependence (or not) on other events. You’ll be able to assign probabilities based on prior knowledge using Bayes’s theorem.

And of course you’ll have built a cool SMS spam filter that makes use of a Naive Bayes algorithm (and all of the R programming skills you’ve been building throughout the learning path)!

Why Do I Need to Know This?

Conditional probability is an important area of statistics that comes up pretty frequently in data analysis and data science work. Understanding it is important for making sure that your analysis is on firm statistical footing, and you’re not drawing the wrong conclusions from your data.

Practically speaking, questions on Bayes’s theorem and the Naive Bayes algorithm specifically are fairly common in data science job interviews. You might be asked, for example, to explain what’s going on “under the hood” with the Naive Bayes algorithm. Understanding how it works — which we cover in this course — helps you demonstrate that you’re not just copy-pasting from GitHub, and that you really understand the math that underlies your analysis. 

So why wait? Start learning conditional probability today:

< svg class="tcb-icon" viewBox="0 0 581 512" data-id="icon-r-project-brands" data-name=""> < path d="M581 226.6C581 119.1 450.9 32 290.5 32S0 119.1 0 226.6C0 322.4 103.3 402 239.4 418.1V480h99.1v-61.5c24.3-2.7 47.6-7.4 69.4-13.9L448 480h112l-67.4-113.7c54.5-35.4 88.4-84.9 88.4-139.7zm-466.8 14.5c0-73.5 98.9-133 220.8-133s211.9 40.7 211.9 133c0 50.1-26.5 85-70.3 106.4-2.4-1.6-4.7-2.9-6.4-3.7-10.2-5.2-27.8-10.5-27.8-10.5s86.6-6.4 86.6-92.7-90.6-87.9-90.6-87.9h-199V361c-74.1-21.5-125.2-67.1-125.2-119.9zm225.1 38.3v-55.6c57.8 0 87.8-6.8 87.8 27.3 0 36.5-38.2 28.3-87.8 28.3zm-.9 72.5H365c10.8 0 18.9 11.7 24 19.2-16.1 1.9-33 2.8-50.6 2.9v-22.1z">
CONDITIONAL PROBABILITY IN R

Not ready to dive in just yet? Get started learning R today and you’ll be ready for this new course in no time. Plus, our first two R courses are completely free:

Charlie Custer

Charlie is a student of data science, and also a content marketer at Dataquest. In his free time, he’s learning to mountain bike and making videos about it.

< svg aria-hidden="true" class="sab-linkedin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">< path fill="currentColor" d="M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z">< svg aria-hidden="true" class="sab-youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">< path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z">

The post New Statistics Course: Conditional Probability in R appeared first on Dataquest.

To leave a comment for the author, please follow the link and comment on their blog: rstats – Dataquest.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.