r - Frequencies for a normal distribution -
how frequencies reflect normal distribution each integer 1...400.
values 1 , 400 have minimum frequency of 1, frequencies other values?
also, if want frequencies in case of integers 1...300. there general expression frequencies normality?
edit:
here's start of looking for:
probability_weights <- choose(400, 0:400) sample(1:400, 400, replace=t, prob=probability_weights) the issue sample, whereas i'd definite population frequencies (so scaled down huge triangle probabilities).
it seems want binomial distribution:
binom <- function(k,p,n) choose(n,k)*p^k*(1-p)^(n-k) p <- binom(0:399,0.5,399) plot(p/min(p)) 
p[1]/min(p) #[1] 1 p[400]/min(p) #[1] 1
Comments
Post a Comment