Installing Node.js in Ubuntu

Installing Node.js in Ubuntu

To install nodejs in your Ubuntu you have follow the following command. sudo apt install nodejs -y sudo npm i -g n sudo n latest # or sudo n lts if you want to install LTS version. If you get permission issue while executing this command than execute the following command. Using chown command, we are providing proper permission to the logged-in user. Update the folder path if it is different sudo chown -R $USER /usr/local/lib/node_modules/n/bin/n #Or in…

Read full Article Read More

Exploring a Python Pandas dataframe

Exploring a Python Pandas dataframe

Panda is open source, the BSD-licensed library used for data analysis in Python programming language. It is build on top of two most essential python packages numpy and matplotlib. Numpy provides multidimensional array objects for easy data manipulation which pandas uses to store data. Matplotlib has powerful data visualization capabilities. It is most popularly used for data manipulation and data visualization. Pandas designed to work with tabular form of data which is also called dataframe….

Read full Article Read More

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

Install and run your project in python virtual Environment

Install and run your project in python virtual Environment

In this article, we’ll show you how to install virtual environment in your system and run your python project in virtual environment. A virtual environment is important if you don’t want to disturb what you install for a specific project to others in the same system. You can have multiple virtual environments in one system and each project requirement can be kept in a specific python environment. It is the best practice while working in…

Read full Article Read More

Run Docker without using sudo in Linux

Run Docker without using sudo in Linux

Docker Engine is an open-source containerization technology for building and containerizing your applications. To know more see the official site. After the successful installation of docker in your system you have to go through a few basic steps to run docker without SUDO. Step 1: Add the docker group if it doesn’t already exist sudo groupadd docker Step 2: Add the connected user “$USER” to the docker group. sudo gpasswd -a $USER docker Step 3:…

Read full Article Read More