boot.mean.ml()
: Estimates the bootstrap distribution of
the likelihood ratio LRFuzzySTs::boot.mean.ml()
estimates the empirical
distribution of the likelihood ratio LR by the bootstrap technique as
exposed in the PhD Thesis of Berkachy R. (“The signed distance
measure in fuzzy statistical analysis”). It produces a vector of
replications of LR for several random drawings from a primary data set
using two algorithms written as Algorithms 1 and 2. The coefficient
\(\eta\) is then nothing but the \(1-\delta\)-quantile of this distribution.
This function can till now be used to the following distributions: the
normal, the Poisson and the Student distributions. The related density
functions are known and their likelihood functions can be accordingly
computed. In addition, this function computes internally the
MLE-estimator by the EM-algorithm using the function
EM.Fuzzy::EM.Trapezoidal()
by the EM.Fuzzy
package. A fuzzy number modelling the crisp estimator can be added. The
default spread of this number is \(2\).
The number of replications, the smoothness and the margins of calculations of the obtained distributions are defined by the nsim, step and the margin fixed by default to \(100\), \(0.05\) and \(c(5,5)\) respectively.
# Calculation of the 95%-quantile eta of the bootstrapped distribution
mat <- matrix(c(1,2,2,2,2,1),ncol=1)
MF111 <- TrapezoidalFuzzyNumber(0,1,1,2)
MF112 <- TrapezoidalFuzzyNumber(1,2,2,3)
PA11 <- c(1,2)
data.fuzzified <- FUZZ(mat,mi=1,si=1,PA=PA11)
emp.dist <- boot.mean.ml(data.fuzzified, algorithm = "algo1", distribution = "normal",
sig = 0.05, nsim = 5, sigma = 1)
(eta.boot <- quantile(emp.dist, probs = 95/100))
#> 95%
#> 2.268668
fci.ml.boot()
: Estimates a fuzzy confidence interval by
the likelihood method and the bootstrap techniqueFuzzySTs::fci.ml.boot()
estimates the fuzzy confidence
interval by the likelihood method given by the left and right \(\alpha\)-cuts, as exposed in the PhD Thesis
of Berkachy R. (“The signed distance measure in fuzzy statistical
analysis”). The proposed method can be used to compute the interval
without a specific expression for a particular distribution to estimate
a given related parameter. However, for our current situation, we
restrict ourselves to distributions drawn from the normal, the Poisson
and the Student distribution since the related density functions are
known and their likelihood functions can be easily computed. An eventual
upgrade to this function is welcomed in order to be able to introduce
empirical density functions as instance. In addition, we have used the
bootstrap technique to estimate the distribution of the likelihood
ratio. This task is done using the function
FuzzySTs::boot.mean.ml()
in the purpose of estimating the
quantile \(\eta\). The smoothness and
the margins of calculations of the constructed interval are defined by
the step and the margin fixed by default to \(0.05\) and \(c(5,5)\).
# Calculation of the 95% fuzzy confidence interval by the likelihood method
# and using the bootstrap technique
data <- matrix(c(1,2,3,2,2,1,1,3,1,2),ncol=1)
MF111 <- TrapezoidalFuzzyNumber(0,1,1,2)
MF112 <- TrapezoidalFuzzyNumber(1,2,2,3)
MF113 <- TrapezoidalFuzzyNumber(2,3,3,4)
PA11 <- c(1,2,3)
data.fuzzified <- FUZZ(data,mi=1,si=1,PA=PA11)
Fmean <- Fuzzy.sample.mean(data.fuzzified)
emp.dist <- boot.mean.ml(data.fuzzified, algorithm = "algo1", distribution = "normal",
sig = 0.05, nsim = 5, sigma = 0.79)
coef.boot <- quantile(emp.dist, probs = 95/100)
head(fci.ml.boot(data.fuzzified, t = Fmean, distribution = "normal", sig= 0.05, sigma = 0.62,
coef.boot = coef.boot))