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)) 

binomial distribution

p[1]/min(p) #[1] 1 p[400]/min(p) #[1] 1 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -