wilsonzhang746

Passing a List to Function in Python

When we perform data analysis using Python, it is often useful to pass a list in calling the function as…

2 years ago

Using t-distribution and t-test with R

A Student t-distributed random variable is modeling the ratio between a standard Normal random variate and square root of a…

2 years ago

Kernel density plots with ggplot2 in R

Kernel density function is a nonparametric method to find the drawing density curve of random samples, and it is often…

2 years ago

Using a function with a while loop in Python

A function in Python is a group of code statements wrapped together to perform specific tasks. After a function is…

2 years ago

Poisson distribution implementation in Python

Poisson distribution is a discrete distribution. It is frequently used to model the counts of event occurrence during a specified…

2 years ago

Calculating Type I Error and Type II Error in Hypothesis Testing using Python

In hypothesis testing, the possibility of the other side than the conclusion usually exists, and the analysis commits so-called Type…

2 years ago

Calculating The Power of a Test in Hypothesis Testing with R

In hypothesis testing, the analyst has chance to commit both Type I and Type II errors. The Type I error…

2 years ago

Calculating Type I Error and Type II Error of Hypothesis Testing using R

In statistical hypothesis testing, there are usually two types of errors that the process will encounter, namely Type I and…

2 years ago

Using Weibull distribution in R programming

Weibull distribution, named after Swedish mathematician Waloddi Weibull, is a continuous distribution which is widely used to model the distribution…

2 years ago

Using Lognormal distributions in R programming

Lognormal distribution in probability and statistics is used to model the distribution of a positive random variable Y, if Y…

2 years ago