Skip to content

Instantly share code, notes, and snippets.

View niteshjindal-7's full-sized avatar
🙂

Nitesh Jindal niteshjindal-7

🙂
View GitHub Profile
@niteshjindal-7
niteshjindal-7 / mle_1.R
Last active November 15, 2020 11:36
Maximum Likelihood Estimation
#Maximum Likelihood Estimation for a univariate Distribution.
library(dplyr)
'create dataframe with two columns of 0 values'
m = 20
n = 2
df = data.frame(matrix(0, nrow = m, ncol = n, dimnames = list(NULL, paste0("ColumnName_", 1:n))))
names(df) = c("member_id", "income")