Contents
- What is a completely randomized design?
- What is a randomized complete block design?
- How to choose between CRD and RCBD
- What do CRD and RCBD have in common?
- Does blocking always improve the experiment?
- Analysis in SAS and Python
- A worked example: a fertilizer trial on a sloping field
- Frequently asked questions
- What is the main difference between CRD and RCBD?
- When should a randomized complete block design be used?
- Is an RCBD a two-way ANOVA?
- How many replications are needed?
- What are RAL and RAK?
- References
Versi bahasa Indonesia: Info Lengkap RAL dan RAK
Short answer: a completely randomized design (CRD) is used when experimental units and their environment are homogeneous, so treatments are assigned randomly to all units without grouping. A randomized complete block design (RCBD) is used when the environment is heterogeneous, for example because of differences in soil fertility, slope, or location; units are first grouped into relatively uniform blocks, and treatments are randomized within each block. The RCBD model contains an extra block effect that removes environmental variation from the experimental error.
| Aspect | CRD | RCBD |
|---|---|---|
| Environment or units | Homogeneous | Heterogeneous, grouped into blocks |
| Randomization | Fully random across all units | Random within each block |
| Linear model | Yij = μ + τi + εij | Yij = μ + τi + βj + εij |
| Sources of variation | Treatment, error | Block, treatment, error |
| Typical setting | Laboratory, greenhouse, one animal pen | Sloping field, several villages, different soil types |
| Error degrees of freedom (t treatments, r replications) | t(r − 1) | (t − 1)(r − 1) |
In Indonesia, these two designs are known as RAL (Rancangan Acak Lengkap) and RAK (Rancangan Acak Kelompok). For students and researchers in the natural sciences, they are routine. Social scientists, however, are often asked to analyze agricultural experiments and need a simple way to remember the difference. A broad researcher benefits from understanding experimental design, even when surveys are the main tool.
What is a completely randomized design?
A CRD tests several levels of one factor, such as fertilizer type, plant spacing, or the concentration of a substance, under conditions that are kept uniform. Every experimental unit has the same chance of receiving any treatment.

In the model, Yij is the observation for treatment i and replication j, μ is the overall mean, τi is the effect of treatment i, and εij is the random error, with i = 1, 2, …, t and j = 1, 2, …, r.

What is a randomized complete block design?
An RCBD also tests one factor, but the experimental units are not homogeneous. The heterogeneity is handled by grouping units into blocks that are internally uniform. Each block contains every treatment once, and the treatments are randomized separately inside each block.

The only addition is βj, the effect of block j. That single term changes how the analysis treats environmental differences: variation that would otherwise inflate the error is assigned to the blocks.

In the illustration, a river runs beside the experimental field, so soil moisture changes with distance from the river. Blocks I to V are laid out parallel to the river so that units within each block share similar moisture.
How to choose between CRD and RCBD
The key question concerns the environment of the experimental units, not the physical place. Firstly, homogeneity does not simply mean “one location”. An experiment in a single field is not homogeneous if some units lie on flat land and others on a slope. Secondly, different locations can still be homogeneous. Experiments in two laboratories with identical temperature and humidity settings remain homogeneous. Thirdly, field experiments across different villages are almost always heterogeneous, because rainfall, farmer practices, and soil conditions differ. Thus, CRD suits laboratories, greenhouses, a single uniform plot, or animals in one pen, whereas RCBD suits most field trials.
What do CRD and RCBD have in common?
Both designs study a single factor, which corresponds to a single explanatory variable in regression terms. That factor has several levels (treatments), and each treatment is replicated. For example, a fertilizer factor may have three treatments, namely manure, liquid fertilizer, and compost, each replicated five times. Because only one factor is studied, both designs are analyzed with a one-way analysis of variance; RCBD simply adds the block as a second, non-experimental source of variation. Designs with two or more factors, such as factorial or split-plot designs, build on the same principles.
Does blocking always improve the experiment?
Blocking has a cost. With four treatments and five replications, the CRD leaves 4 × (5 − 1) = 16 degrees of freedom for error, while the RCBD leaves (4 − 1) × (5 − 1) = 12, because four degrees of freedom are spent on blocks. When blocks truly differ, the reduction in error sum of squares outweighs the loss of degrees of freedom, and treatment differences become easier to detect. When blocks do not differ, the RCBD is slightly less powerful than the CRD. The relative efficiency of the RCBD compared with the CRD can be calculated from the block and error mean squares to judge whether blocking was worthwhile.
Analysis in SAS and Python
The original example uses a fictitious dataset on the effect of four shallot fertilizer doses on productivity, with five replications. The same data were analyzed twice, once assuming homogeneous conditions (CRD) and once assuming heterogeneous conditions (RCBD), to compare the error terms of the two models. The analysis has two stages: (1) the ANOVA F-test decides whether any treatment differs; and (2) only if the F-test is significant (p < 0.05), a post hoc test such as Duncan’s multiple range test or Tukey’s HSD identifies which treatments differ.
/* SAS */
proc glm data=shallot;
class dose; /* CRD */
model yield = dose;
means dose / duncan;
run;
proc glm data=shallot;
class block dose; /* RCBD */
model yield = block dose;
means dose / duncan;
run;
# Python
import pandas as pd
import statsmodels.api as sm
from statsmodels.formula.api import ols
df = pd.read_csv("shallot.csv") # columns: block, dose, yield
crd = ols("yield ~ C(dose)", data=df).fit()
rcbd = ols("yield ~ C(block) + C(dose)", data=df).fit()
print(sm.stats.anova_lm(crd, typ=2))
print(sm.stats.anova_lm(rcbd, typ=2))
Comparing the two ANOVA tables shows where the block variation goes: in the CRD it is hidden inside the error term, while in the RCBD it appears as a separate row, leaving a smaller error mean square when the blocks matter.
A worked example: a fertilizer trial on a sloping field
Consider a trial of four nitrogen rates (0, 60, 120, and 180 kg N/ha) on maize, with four replications, on a field that slopes from north to south. The upper part of the slope has thinner topsoil than the lower part. A researcher walking the field before planting can see the difference in plant vigor from the previous season: the strip near the drainage channel at the bottom is visibly greener. This gradient is exactly the kind of known heterogeneity that a block design is meant to absorb.
When the 16 plots are analyzed as a CRD, the error mean square includes the slope effect. Suppose the error mean square equals 0.84 (t/ha)² with 12 degrees of freedom. When the same plots are arranged in four blocks across the slope and analyzed as an RCBD, the block sum of squares removes the slope effect, and the error mean square falls to 0.31 with 9 degrees of freedom. The F-value for nitrogen rate increases accordingly, and differences that were not significant under the CRD become significant under the RCBD.
The gain can be quantified with the relative efficiency (RE) of the RCBD compared with the CRD: RE = [(r − 1)MSblock + r(t − 1)MSerror] / [(rt − 1)MSerror], where r is the number of blocks and t the number of treatments. With a block mean square of 2.10, RE = [(3)(2.10) + (4)(3)(0.31)] / [(15)(0.31)] = (6.30 + 3.72) / 4.65 = 2.15. Thus, the RCBD was about twice as efficient: a CRD would have needed roughly twice as many replications to achieve the same precision.
However, the result reverses when the field is genuinely uniform. In that case, the block mean square is close to the error mean square, the RE approaches 1, and the RCBD loses three error degrees of freedom for no benefit. Consequently, blocking is a decision based on field knowledge before the trial, not a habit applied to every experiment.
Related guides on Catatan Budi: One-way ANOVA in Python, Regression vs path analysis vs SEM, R-squared vs adjusted vs predicted R-squared.
Frequently asked questions
What is the main difference between CRD and RCBD?
CRD assumes a homogeneous environment and randomizes treatments across all units, while RCBD groups units into homogeneous blocks and randomizes treatments within each block.
When should a randomized complete block design be used?
RCBD should be used when a known source of variation, such as a fertility gradient, slope, location, or time of planting, would otherwise inflate the experimental error.
Is an RCBD a two-way ANOVA?
Computationally, an RCBD is analyzed like a two-way ANOVA without interaction. Conceptually, it remains a single-factor experiment because the block is not a treatment of interest.
How many replications are needed?
A common rule requires at least 15 error degrees of freedom, that is, t(r − 1) ≥ 15 for CRD or (t − 1)(r − 1) ≥ 15 for RCBD.
What are RAL and RAK?
RAL (Rancangan Acak Lengkap) and RAK (Rancangan Acak Kelompok) are the Indonesian names for CRD and RCBD.
References
- Gomez, K. A., and Gomez, A. A. (1984). Statistical Procedures for Agricultural Research (2nd ed.). Wiley.
- Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). Wiley.
- Steel, R. G. D., Torrie, J. H., and Dickey, D. A. (1997). Principles and Procedures of Statistics: A Biometrical Approach (3rd ed.). McGraw-Hill.
Discussion
No comments yet. Have a question about this topic? Write it below and I will do my best to answer.