Completely randomized design  In the design of experiments, completely randomized designs are for studying the effects of one primary factor without the need to take other nuisance variables into account. This article describes completely randomized designs that have one primary factor. The experiment compares the values of a response variable based on the different levels of that primary factor. For completely randomized designs, the levels of the primary factor are randomly assigned to the experimental units. By randomization, that is to say the run sequence of the experimental units is determined randomly. For example, if there are 3 levels of the primary factor with each level to be run 2 times, then there are 6! (where ! denotes factorial) possible run sequences (or ways to order the experimental trials). Because of the replication, the number of unique orderings is 90 (since 90 = 6!/(2!*2!*2!)). An example of an unrandomized design would be to always run 2 replications for the first level, then 2 for the second level, and finally 2 for the third level. To randomize the runs, one way would be to put 6 slips of paper in a box with 2 having level 1, 2 having level 2, and 2 having level 3. Before each run, one of the slips would be drawn blindly from the box and the level selected would be used for the next run of the experiment. In practice, the randomization is typically performed by a computer program. However, the randomization can also be generated from random number tables or by some physical mechanism (e.g., drawing the slips of paper). All completely randomized designs with one primary factor are defined by 3 numbers:   and the total sample size (number of runs) is "N" = "k" × "L" × "n". Balance dictates that the number of replications be the same at each level of the factor (this will maximize the sensitivity of subsequent statistical "t"- (or "F"-) tests). A typical example of a completely randomized design is the following:  The randomized sequence of trials might look like: X1: 3, 1, 4, 2, 2, 1, 3, 4, 1, 2, 4, 3  Note that in this example there are 12!/(3!*3!*3!*3!) = 369,600 ways to run the experiment, all equally likely to be picked by a randomization procedure. The model for the response is formula_1  with  with formula_4 = average of all "Y" for which "X"1 = "i".