Browsed by
Month: May 2020

How to plot a histogram using matplotlib in python?

How to plot a histogram using matplotlib in python?

According to matplotlib official, Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib has pyplot as a module that provides a MATLAB-like interface. It is designed to be as applicable as MATLAB, with the ability to use python, and being opensource. There are various plotting techniques in matplotlib pyplot like line plot, histogram, scatter plot, 3D plot, Image plot, Contour plot, Scatter plot, Polar plot, Line plot, 3-D plot and…

Read full Article Read More

What is Exploratory Data Analysis (EDA)?

What is Exploratory Data Analysis (EDA)?

Exploratory Data Analysis ( EDA ) is the process of organizing, plotting and summarizing a data set. EDA was developed by one the greatest statistician of all time John W. Tukey. In his book “Exploratory data analysis” in 1977 where the principal for EDA was laid. He said “Exploratory Data Analysis can never be the whole story, but nothing else can serve as the foundation stone.” “Exploratory Data Analysis can never be the whole story,…

Read full Article Read More

Are Mutually Exclusive Events Independent?

Are Mutually Exclusive Events Independent?

In probability theory, two events are said to be mutually exclusive or disjoint events if and only if they can not occur at the same time. For example, while tossing a coin head and tail can not occur at the same time. To understand the independence of events you can check my previous article. In short, Event A and B are independent if and only if P(A ∩ B) = P(A) x P(B). To be independent…

Read full Article Read More

What is Independent Events in Probability?

What is Independent Events in Probability?

The definition of independence in probability: Event A and B are independent if and only if P(A ∩ B) = P(A) x P(B). Sometimes people misuse the terms independence of events with mutually exclusive or disjoint events or vice versa. Don’t get confused with those two term  independence of events is completely different property. To get clear view visit this article. If A and B are independent then P( A | B ) = […

Read full Article Read More

What is Bayes’ Theorem?

What is Bayes’ Theorem?

Bayes’s theorem is a way of finding a probability when we have certain other probabilities. Bayes’s theorem is stated mathematically as the following equation: Where A and B are events and P(B) ≠ 0, P(A | B) is also a conditional probability: the likelihood of event A occurring given  B is true. P(B | A) is also a conditional probability: the likelihood of event B occurring given  A is true. P(A)  and P(B) are conditional probabilities…

Read full Article Read More

What is Conditional Probability?

What is Conditional Probability?

Suppose two events A and B are mutually inclusive events ( having one or more outcomes in common ). Conditional probability i.e. P( A | B ) is the probability of event A occurring with some relationship to event B. Mathematically, P(A | B) = P(A and B) / P(A) which you can also rewrite as: P(A | B) = P(A∩B) / P(A) where P(A) ≠ 0 Conditional Probability in Real World Suppose the weather forecasts…

Read full Article Read More