RobustMeans.RobustMeans
— ModuleRobustMeans
Simple package implementing some Robust mean estimator.
RobustMeans.EmpiricalMean
— Typemean(A::AbstractArray, Estimator::EmpiricalMean)
The usual empirical mean estimator. Nothing fancy.
RobustMeans.LeeVal
— MethodLeeVal(x, w, δ; α₀ = 0.0)
Reference: Optimal Sub-Gaussian Mean Estimation in R by Lee et Valiant
RobustMeans.LeeVal
— MethodLeeVal(x, δ; α₀ = 0.0)
Reference: Optimal Sub-Gaussian Mean Estimation in R by Lee et Valiant
RobustMeans.MinNda
— MethodMinskerNdaoud(x, k, p)
Reference: Robust and efficient mean estimation: an approach based on the properties of self-normalized sums
RobustMeans.MinNda
— MethodMinskerNdaoud(x, w, k, p)
Reference: Robust and efficient mean estimation: an approach based on the properties of self-normalized sums
RobustMeans.MoM
— MethodMedianOfMean(x::AbstractArray, k::Integer)
Compute the Median of Mean with k
groups (it does not permute the samples)
RobustMeans.MoM
— MethodMedianOfMean(x::AbstractArray, w::AbstractWeights, k::Integer)
Compute the Median of Mean with k
groups (it does not permute the samples)
RobustMeans.TrimMean
— MethodTrimmedMean(x::AbstractArray, k::Integer)
Compute the Trimmed Mean thresolding data smaller α
or larger than β
RobustMeans.TrimMean
— MethodTrimmedMean(z, ε)
RobustMeans.Z_estimator
— MethodZ_estimator(x::AbstractArray, α, ψ::Function; ini = median(x))
Implement Z estimators given a
RobustMeans.Z_estimator
— MethodZ_estimator(x::AbstractArray, w::AbstractWeights, α, ψ::Function; ini = median(x))
Implement Z estimators given a
RobustMeans.bound
— Methodbound(estimator, δ, n::Int) Give the theoritical bound B such that for the estimator #TODO! correction math formula
\[\mathbb{P}( |X- \mathbb{E}(X)|/\sigma \leq B) \leq \delta\]
RobustMeans.bound
— Method" sqrt(2log(1 / δ) / n) # Multiply by a factor (1 + o(1)) where o(1) = (1+O(sqrt(log(1/δ)/n)))*(1+log(log(1/δ))/log(1/δ)) goes to zeros with (log(1/δ)/n, δ)→ (0, 0) see https://www.youtube.com/watch?v=Kr0Kl_sXsJM Q&A
RobustMeans.chunk
— Methodchunk(n, k)
Divide an set {1,2,...,n} into k blocks of equal size (exept the last one if n is not a multiple of k)
RobustMeans.ψ_Catoni
— Methodψ_Catoni(x)
Catoni's influence function
RobustMeans.ψ_Huber
— Methodψ_Huber(x)
ψ_Huber's influence function
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::MoM)
The Median of Mean estimator.
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::Catoni, kwargs...)
Reference: Catoni
Statistics.mean
— Methodmean(A::AbstractArray, δ::Real, Estimator::EmpiricalMean)
The usual empirical mean estimator, for convenience, we authorize the extra dummy argument δ.
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::Huber, kwargs...)
Reference: Huber
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::δLeeValiant; kwargs...)
Reference: Optimal Sub-Gaussian Mean Estimation in R by Lee et Valiant
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::MoM)
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::δMinskerNdaoud; kwargs...)
Reference: Robust and efficient mean estimation: an approach based on the properties of self-normalized sums
Statistics.mean
— Method mean(A::AbstractArray, Estimator::TrimmedMean)
Statistics.mean
— Methodmean(A::AbstractArray, w::AbstractWeights, Estimator::EmpiricalMean)
The usual empirical mean estimator. Nothing fancy.
Statistics.mean
— Methodmean(A::AbstractArray, w::AbstractWeights, Estimator::MoM)
The Median of Mean estimator.
Statistics.mean
— Methodmean(A::AbstractArray, w::AbstractWeights, Estimator::δLeeValiant; kwargs...)
Reference: Optimal Sub-Gaussian Mean Estimation in R by Lee et Valiant
Statistics.mean
— Methodmean(A::AbstractArray, w::AbstractWeights, Estimator::δMinskerNdaoud; kwargs...)
Reference: Robust and efficient mean estimation: an approach based on the properties of self-normalized sums
Statistics.mean
— Methodmean(A::AbstractArray, w::AbstractWeights, Estimator::Z_Estimator)
A Z estimator given an influence function x->ψ(x)
and a scaling parameter α
.
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::TrimmedMean)
The Trimmed Mean estimator. (p)
Statistics.mean
— Methodmean(A::AbstractArray, Estimator::Z_Estimator)
A Z estimator given an influence function x->ψ(x)
and a scaling parameter α
.