MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to plot cauchy distribution in R?

# How to plot cauchy distribution in R?

This recipe helps you plot cauchy distribution in R

Cauchy distribution is a type of continuous probability distribution which is also known as Lorentz distribution. It resembles normal distribution curve but has a taller peak with tails decaying much more slowly than normal distribution.

It is mainly used as an example of a "pathological" distribution due to an undefined variance.

In this recipe, we will learn how to plot cauchy distribution.

We will use sequence (seq()) function to do the same.

```
# creating numbers to plot between -5 and 5 with a difference of 0.01 between each of them
x_cauchy = seq(-5, 5, by = 0.01)
```

We use dcauchy() and plot() function to carry out the task

```
plot(x_cauchy, # x-values
dcauchy(x_cauchy), # y-values
type = "l", # lineplot
col = "red", #colour of the line
lwd = 2, # line width
xlab = "X-values", # x-label
ylab = "Probability density", # y-label
main = "Cauchy Distribution") # title
```

In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

In this data science project, you will contextualize customer data and predict the likelihood a customer will stay at 100 different hotel groups.

Machine Learning Project in R- Predict the customer churn of telecom sector and find out the key drivers that lead to churn. Learn how the logistic regression model using R can be used to identify the customer churn in telecom dataset.

Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

In this machine learning project, you will develop a machine learning model to accurately forecast inventory demand based on historical sales data.

Text data requires special preparation before you can start using it for any machine learning project.In this ML project, you will learn about applying Machine Learning models to create classifiers and learn how to make sense of textual data.

Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

In this machine learning project you will work on creating a robust prediction model of Rossmann's daily sales using store, promotion, and competitor data.