Hi, I am having trouble understanding how to approach a simulation:

I have a sample of n=250 from a population of N=2,000 individuals, and I would like to test whether this particular sample has a value Y which is significantly different from the values of any other random samples of the same population. I thought I needed to take random samples (but I am not sure how many) of n=250 from the N=2,000 population and maybe do a t-test between the random samples and the one sample I am trying to prove that is different from any others? Would the t-test be the right way to do it?

For now I only have the simulation as:

df<-

i.e.

x y

1 2

3 4

5 6

7 8

. .

. .

. .

2,000

sample1 <- df[sample(nrow(df), 250, replace=TRUE),]

I have a sample of n=250 from a population of N=2,000 individuals, and I would like to test whether this particular sample has a value Y which is significantly different from the values of any other random samples of the same population. I thought I needed to take random samples (but I am not sure how many) of n=250 from the N=2,000 population and maybe do a t-test between the random samples and the one sample I am trying to prove that is different from any others? Would the t-test be the right way to do it?

For now I only have the simulation as:

df<-

i.e.

x y

1 2

3 4

5 6

7 8

. .

. .

. .

2,000

sample1 <- df[sample(nrow(df), 250, replace=TRUE),]

Last edited: