I am trying to replicate this table (from the MITx course in “Fundamental of statistics”):
I can get the cdf, but not the quantiles. For example, for n=7:
julia> using Distributions
julia> KSd = KSDist(7)
KSDist(n=7)
julia> cdf(KSd,0.48342)
0.9499971874088311
julia> quantile(KSd,0.95)
ERROR: MethodError: no method matching iterate(::KSDist)
Closest candidates are:
iterate(::Core.SimpleVector) at essentials.jl:604
iterate(::Core.SimpleVector, ::Any) at essentials.jl:604
iterate(::ExponentialBackOff) at error.jl:214
...
Stacktrace:
[1] copyto!(::Array{Float64,1}, ::KSDist) at ./abstractarray.jl:722
[2] _collect(::UnitRange{Int64}, ::KSDist, ::Base.HasEltype, ::Base.HasLength) at ./array.jl:550
[3] collect(::KSDist) at ./array.jl:544
[4] #quantile#50(::Bool, ::typeof(quantile), ::KSDist, ::Float64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Statistics/src/Statistics.jl:941
[5] quantile(::KSDist, ::Float64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/Statistics/src/Statistics.jl:941
[6] top-level scope at none:0
Are quantiles not defined for the KSDis distribution ? Would be there any workaround ?
