select subsamples many times in order to calculate an average value
Clash Royale CLAN TAG #URR8PPP select subsamples many times in order to calculate an average value First of all sorry for my english I am a beginner in programming. In general I am trying to retrieve an index of an input file, which contain some values. The first function selects randomly values in a certain range. The second function takes the output and calculates an Index for each sample size. However if I execute my script I got a value for each sample size. But I want to pick the subsamples (200, 400, etc.) multiple times, so that I can calculate the average index for each sample size. In a first step I passed an input file as an argument to my script. file_name1 = sys.argv[1] I selected the values of the input file and saved them to a list, as following: data2 = [7, 7, 7, 5, 3, 1, 2, 8, 6, 5, 1, 1, 9, 7 ......] #sample size 2010 I wrote a function, which picks randomly numbers from the list within a certain range (0, 200, 400, n). But I want, that my script picks many times (200,...