statistics - How to use ChebyShev's Inequality in R -
i have statistical question in r , hoping use chebyshev inequality theorem, don't know how implement it.
example: imagine dataset nonnormal distribution, need able use chebyshev's inequality theorem assign na values data point falls within lower bound of distribution. example, lower 5% of distribution. distribution one-tailed absolute zero.
i unfamiliar how go this, sort of example might help.
if helpful know, problem stemming large amount of different datasets different types of distribution - nonnormal. need able select lower percentage of distribution , assign na values them discount them rest of analysis. appreciate help!
thanks!
from description "i need able select lower percentage of distribution , assign na values them discount them rest of analysis," sounds pretty simple:
x <- runif(1000) # simulate data cutpt <- quantile(x,probs=.05) x[x<cutpt] <- na
Comments
Post a Comment