1 Introduction

Semi-Latin rectangles form an important class of row–column designs with interesting and attractive combinatorial properties. Row–column designs admit two systems of blocks: the rows and columns, hence control heterogeneity in the experimental units which could have some effect on the response, in two directions: see, for example, [1, 16, 17] and [24, Chapter 5] for discussions on row–column designs.

Most of the classical row–column designs, which include, among others, Latin squares, Youden squares and generalized Youden designs, have only one plot in each row–column intersection (cell); hence, just one treatment can be applied to each cell: see, for example, [2, 11] and [31, Chapter 1] for several discussions on Latin squares; [29, 35] and [31, Chapter 6] for discussions on Youden squares; and [3, 25, 34] for generalized Youden designs.

An immediate generalization of the Latin square (LS) is the semi-Latin square (SLS), which is further generalized by the semi-Latin rectangle (SLR). In a SLS, the treatments are arranged in a square array, where each row–column intersection (block) contains more than one treatment. The Latin square and semi-Latin square have a property that each treatment is restricted to appearing only once in each row and also only once in each column; hence, for each of them, the number of rows is identical to the number of columns, and the number of treatments is simply the product of the block (cell) size and the number of rows (or columns). The semi-Latin square has an advantage over the Latin square in the sense that it can accommodate more than one treatment in each row–column intersection. For discussions on semi-Latin squares, see, for example, [4,5,6, 8, 9, 28, 30, 33, 36].

If there exists a set of k mutually orthogonal Latin squares of order s, where \(2\le k\le s-1\), then they may be superimposed to obtain a semi-Latin square with s rows and columns and k treatments per cell. Such a semi-Latin square is called a Trojan square by [15]. Although the case \(k=2\) was excluded by [15], more recent literature, such as [18], includes it.

When \(k=2\), the pair of mutually orthogonal Latin squares is often called a Graeco-Latin square: see [13, Chapter 6] and [31, Chapter 1]. However, this is not the same thing as the Trojan square. If the two constituent Latin squares have Latin and Greek letters, respectively, then they might be used for a design in which one treatment factor has s levels given by the Latin letters and a second treatment factor has s levels given by the Greek letters. On the other hand, the Trojan square simply has one treatment factor with 2s levels. If \(k=s-1\), the set of mutually orthogonal Latin squares is called a hyper-Graeco-Latin square in [10]; see also [31, Chapter 1]; again, this is not the same as the Trojan square.

The treatment concurrences in a Trojan square are 0 and 1, and when such design exists it is known to be optimal among semi-Latin squares of its size, and indeed among all incomplete block designs for sk treatments in \(s^2\) blocks of size k: see [14].

However, there could be certain experimental situations where the within-row replication number, as well as the within-column replication number, of each treatment is not limited to 1. In such circumstances, the semi-Latin rectangle, which generalizes both the Latin square and the semi-Latin square, becomes an invaluable design. This was introduced in [7]. The balanced semi-Latin rectangle (BSLR) is a special case.

In a SLR, there are v treatments, h rows, p columns and k treatments in each row–column intersection. We denote this structure by \((h\times p)/k\). Each row contains each treatment a constant number, \(n_r\), of times. Similarly, each column contains each treatment a constant number, \(n_c\), of times. In the general case, h and p are not necessarily distinct; likewise \(n_r\) and \(n_c\).

The quotient block design (QBD) of a SLR is the block design obtained by ignoring its rows and columns. For a SLR, we impose the condition that the QBD is binary. BSLRs form a subclass of semi-Latin rectangles with the property that their quotient block designs form balanced incomplete block designs (BIBDs). BIBDs are binary, proper and equireplicate incomplete block designs with a unique number of concurrences between every pair of treatments: see, for example, [26], and [32, Chapter 4] for some descriptions and discussions on BIBDs. BSLRs are, indeed, semi-Latin rectangles with an additional property of balance.

However, balanced designs do not exist for all values of the parameters; hence, their existence is limited. When they exist, they are known to possess optimality properties; they are optimal within their class over a range of criteria. For instance, a BIBD is optimal over all incomplete block designs of the same size. For such a design, its canonical efficiency factors are identical, and all elementary contrasts of treatment effects are estimated with the same variance: see, for example, [23, 25].

Consequently, the existence of a BSLR is also restricted to certain sets of combinations of the parameters. But when such a design exists, it is, indeed, optimal over all semi-Latin rectangles in its class.

Semi-Latin rectangles have been found useful for conducting several types of experiment. Among these are agricultural experiments, such as plant disease experiments; food sensory experiments; and consumer testing experiments. For instance, a \((4\times 8)/2\) SLR, involving eight plants \((p=8)\) and pairs of half-leaves \((k=2)\) at four heights \((h=4)\), with eight treatments \((v=8)\), where each was a solution made from an extract of one of the offspring plants, was used for an experiment on tobacco plants, regarding mosaic virus, at Rothamsted Experimental Station: see [7].

In food sensory experiments, there are p panellists, h food-tasting sessions and v different food items (treatments) available for tasting; and each panellist is made to taste k items of food in each of h sessions. Again, for consumer testing experiments, v brands of a given consumer good (treatments) are available for the experiment; and these are to be tested by p consumers in h time periods, weeks, say. Each consumer tests k brands of the product each week: see, for example, [7]. Moreover, [5] describes some other experimental situations where a semi-Latin square can be used. In similar experimental situations, a semi-Latin rectangle becomes a useful design.

Balanced semi-Latin rectangles, when they exist, would be the best in any of the experimental situations described above.

Constructions are given in [7] for efficient SLRs for 2n treatments in n rows and 2n columns, where \(2\le n\le 10\), using some combinatorial approaches, viz starters and the cyclic method for constructing balanced tournament designs. Each row–column intersection (block) contains two treatments; and each treatment appears once in each column, but twice in each row. This is, simply, an \((n\times 2n)/2\) SLR corresponding to \(h=n,\; p=2n\) and \(k=2\). Each design is group-divisible, and indeed, but with the exception of the case \(n=2\), a regular graph semi-Latin rectangle (RGSLR). The designs are group-divisible in the sense that their treatments can be partitioned into groups (subsets), each being of a constant size, and each pair of treatments in the same group concurs a constant number of times. Similarly, each pair of treatments in different groups concurs a constant number of times also. Furthermore, the designs are regular graph semi-Latin rectangles since no two pairs of distinct treatments differ in their concurrences by more than unity, in absolute terms. In particular, the treatment concurrences in these designs are 1 and 2. The search for regular graph semi-Latin rectangles in [7] is buttressed by the belief that, when a BIBD does not exist, there will be a regular graph design (RGD) which is an optimal design within its class, particularly when the number of blocks is large enough: see, for example, [12, 22, 23].

In this work, we introduce the design, balanced semi-Latin rectangle, which forms a subclass of semi-Latin rectangles, as noted earlier. Section 2 is concerned with some definitions, combinatorial properties of the design and some necessary conditions on the parameters for such a design to exist. Section 3 gives some methods of construction for the case where there are two treatments in each row–column intersection.

As in [7], for the constructions we consider only BSLRs for the case that \(k=2\) because this seems likely to be very useful in practice. But unlike [7], we allow \(h\ge p\) since given an \((h\times p)/k\) SLR where \(h<p\), a corresponding \((p\times h)/k\) SLR with \(p>h\) can be obtained by transposition. Also, we allow \(h=p\); though this looks like a square, we call it a rectangle because the standard definition of semi-Latin square includes the condition that \(n_r=n_c=1\).

2 Definitions, Combinatorial Properties and Conditions for Existence

2.1 Definitions

Definition 1

Let \(v, h, p, k, n_r\) and \(n_c\in \mathbb {Z_+}\). Suppose \(h, p>1\); v divides kh and v divides kp. Then, an \((h\times p)/k\) semi-Latin rectangle (SLR) is a row–column design in which v treatments are arranged into h rows and p columns, where each row–column intersection (block) contains k treatments (each treatment appearing at most once in each block), and each treatment appears a constant number, \(n_r\), of times in each row, and also a constant number, \(n_c\), of times in each column.

Remark

The definition of semi-Latin rectangle given in [7] does not accommodate \(h=p\), as \(h<p\) is assumed; and by virtue of this, \(n_r>n_c\).

Figure 1 shows an example for \(v=8, h=4, p=8\) and \(k=2\) . This example was adapted from [7]. The design, though non-balanced, is a regular graph semi-Latin rectangle.

Fig. 1
figure 1

A \((4\times 8)/2\) regular graph (non-balanced) semi-Latin rectangle for 8 treatments

Definition 2

Let \(\varOmega \) denote a semi-Latin rectangle, and \(\Delta (\varOmega )\) its quotient block design. Denote by \({\mathcal {V}}=\lbrace 1, 2, \ldots , v\rbrace \) its treatment set; and \(\lambda _{ii'}\), \(i\ne i'\), the number of concurrences between treatments i and \(i'\). Suppose \(\Delta (\varOmega )\) forms a balanced incomplete block design, in the sense that, in addition to having each treatment appearing in \(hn_r=pn_c\) blocks (which is basic to semi-Latin rectangles), there exists a constant, \(\lambda \) such that \(\lambda _{ii'}=\lambda \) for all \(i, i'\in {\mathcal {V}}\), \(i\ne i'\). Then, \(\varOmega \) is said to be a balanced semi-Latin rectangle; otherwise, it is a non-balanced semi-Latin rectangle.

2.2 Combinatorial Properties

A balanced semi-Latin rectangle, just like other semi-Latin rectangles, exhibits the property of orthogonality with respect to the row and column strata. Its treatments are orthogonal to the row stratum, as well as the column stratum: see [7]. The treatments of this design are orthogonal to the row stratum, in the sense that each treatment appears the same number, \(n_r\), of times in each row. Similarly, the treatments are orthogonal to the column stratum since each treatment appears the same number, \(n_c\), of times in each column, where \(n_r\) and \(n_c\) are not necessarily equal. In particular, given an \((h\times p)/k\) SLR on v treatments, \(n_r=kp/v\), and \(n_c=kh/v\). Thus, v divides kh and v divides kp, and so

$$\begin{aligned} kh\equiv 0 \ (\mathrm {mod}\ v) \end{aligned}$$

and

$$\begin{aligned} kp\equiv 0 \ (\mathrm {mod}\ v). \end{aligned}$$

Hence, \(hn_r=pn_c\), which gives the number of times each treatment appears, overall, in the design.

Moreover, overall, there are khp plots in the design. Since each treatment is replicated \(hn_r=pn_c\) times in the design, then

$$\begin{aligned} vhn_r=vpn_c=khp. \end{aligned}$$
(1)

We note that \(n_r=n_c\) if and only if \(p=h\). Similarly, \(n_r>n_c\) if and only if \(p>h\), and \(n_r<n_c\) if and only if \(p<h\).

Moreover, the design is \(n_r\)- and \(n_c\)-resolvable with regards to the rows and columns, respectively. It is \(n_r\)-resolvable in the sense that, in each row which constitutes a superblock, each treatment appears exactly \(n_r\) times. Similarly, the design is \(n_c\)-resolvable since each treatment appears \(n_c\) times in each column, which constitutes another superblock.

Furthermore, each pair of distinct treatments concurs a constant number of times in the design. This is what distinguishes a BSLR from general SLRs. Denoting the constant number of concurrences between each pair of distinct treatments in the design by \(\lambda \), each treatment appears with each of \(v-1\) distinct complementary treatments \(\lambda \) times. Also, each treatment appears in \(hn_r=pn_c\) blocks, overall, and in each of these blocks it concurs with \(k-1\) distinct treatments. Hence, the sum of concurrences with that treatment is \(\lambda (v-1)\), so

$$\begin{aligned} \lambda (v-1)=hn_r(k-1)=pn_c(k-1). \end{aligned}$$
(2)

Also, \(v\in (k, hp]\), by virtue of both Fisher’s inequality and the blocks of the design being incomplete.

2.3 Existence of the Design

Equations (1) and (2) give necessary conditions for a BSLR to exist.

Let \({\mathcal {V}}=\lbrace 1, 2, \ldots , v\rbrace \) be the set of treatments of a \((v, k, \lambda )\)-BIBD, where \(k\in [2, v)\) is the size of each block and \(\lambda \) is the concurrence number between every possible pair of treatments. Then,

$$\begin{aligned} \lambda (v-1) \equiv 0 \ (\mathrm {mod}\ k-1) \end{aligned}$$
(3)

and

$$\begin{aligned} \lambda v(v-1) \equiv 0 \ (\mathrm {mod}\ k(k-1)). \end{aligned}$$
(4)

Equation (2) implies Eq. (3). Equations (1) and (2) together imply Eq. (4). Hence, Eqs. (3) and (4) give necessary conditions for the existence of a BIBD: see, for example, [21, 27].

The conditions in Eqs. (3) and (4) are not, in general, sufficient, in the sense that there exist certain situations where these conditions, though satisfied, may not guarantee the existence of a design. For instance, a (15, 5, 2)-BIBD does not exist, though its parameters satisfy Eqs. (3) and (4): see, for example, [24, Chapter 1], and [20]. Again, the existence of a (22, 8, 4)-BIBD, whose parameters also satisfy Eqs. (3) and (4), is uncertain: see, for example, [37, Chapter 1].

However, for \(k\in \) [2, 5] and all possible values of \(\lambda \), except for the aforementioned (15, 5, 2)-BIBD, the conditions in Eqs. (3) and (4) are sufficient for the existence of a BIBD: see, for example, [19,20,21]. Also, for \(k=6\) and \(\lambda >1\), except for the (21, 6, 2)-BIBD, Eqs. (3) and (4) are also sufficient for a BIBD to exist: see, for example, [21]. For more results on the sufficiency (or otherwise) of Eqs. (3) and (4), see, for example, [21, 38].

3 Construction of the Designs

We base our constructions on an algebraic approach via addition on the set of integers modulo v (or modulo \(v-1\)), as the case may be. Note that we regard the set of integers modulo v as \(\lbrace 1,2,\ldots ,v\rbrace \).

3.1 Case 1: When v is Odd

Label the treatments by the integers modulo v. Put \(\delta = (v-1)/2\). For \(u=1, \ldots , \delta \) and \(j=1, \ldots , v\), put \(S_{uj} = \{j,j+u\}\).

Notice that \(S_{u1}=\lbrace 1, 1+u\rbrace \). Similarly, \(S_{1j}=\lbrace j,j+1\rbrace \), \(S_{2j}=\lbrace j,j+2\rbrace \), and so on, each component reduced modulo v.

We now give an algorithm for constructing the design.

3.1.1 An Algorithm for Constructing the Design When v is Odd

  1. Step 1:

    For \(u=1, \ldots , \delta \) and \(j=1,\ldots , v\), put \(S_{uj}=\lbrace j, j+u\rbrace \), where each component is reduced modulo v.

  2. Step 2:

    For \(u=1, \ldots , \delta \), make a Latin square, \(\Delta _u\), of order v using the sets \(S_{u1}, S_{u2}, \ldots , S_{uv}\), as symbols.

  3. Step 3:

    Juxtapose the Latin squares \(\Delta _1, \Delta _2, \ldots , \Delta _\delta \) made in Step 2, one beside another.

This algorithm produces a \((v\times v\delta )/2\) BSLR. The constructed design is identical to:

figure a

where \(\Delta _u\), \(u=1, 2, \ldots , \delta \), could be the Latin square

figure b

Example 1

We illustrate the construction in Fig. 2, obtained via the algorithm. In this example, \(v=h=5, \delta =2, \text {and}\;p=10\).

Fig. 2
figure 2

A \((5\times 10)/2\) balanced semi-Latin rectangle for 5 treatments

Comments

  1. (1)

    The double vertical lines show the construction and should be ignored in randomization.

  2. (2)

    The Latin square, \(\Delta _u\), does not need to be cyclic.

  3. (3)

    Also, \(\Delta _u\)does not need to be isomorphic to \(\Delta _{u'}\), where \(u\ne u'\).

  4. (4)

    If \(\delta =1\), then \(v=3\), and we have a \((3\times 3)/2\)BSLR as the only possible design.

If \(\delta >1\), we could obtain another possibility by transposition. If \(\delta \)is prime, then this transposed design is the only other possibility; otherwise, if there exists \(a, b\in {\mathbb {Z}}\), where \(1<a,b<\delta \)such that \(ab=\delta \), a slight modification of Step 3 gives another possibility for all such (a,b), which is an \((h'\times p')/2\)BSLR, where \(h'=av, \text {and } p'=bv\). In particular, if \(a=b\), then \(\delta =a^2\), and consequently, \(h'=p'=av\).

Example 2

Let \(v=9\). Then, \(\delta =4\), and we can put \(a=b=2\) and obtain the \((18\times 18)/2\) BSLR in Fig. 3.

This is an alternative to a \((9\times 36)/2\) BSLR and a \((36\times 9)/2\) BSLR that could also be obtained for the same values of v and \(\delta \).

Again, the double vertical and horizontal lines show construction but are not part of the design.

Fig. 3
figure 3

An \((18\times 18)/2\) balanced semi-Latin rectangle for 9 treatments

3.2 Case 2: When v is Even

Label one of the treatments \(\infty \), and the others by the integers modulo \(v-1\). Put \(t = v/2\). For \(m=1, \ldots , t\) and \(l=1, \ldots , v-1\), put

$$\begin{aligned} A_{lm} = \left\{ \begin{array}{ll} \{l,\infty \}, &{} {\text {if}}\; m=1,\\ \{l+m-1,l-m+1\}, &{} {\text {if}}\; m\in (1,t],\\ \end{array} \right. \end{aligned}$$

with reduction modulo \(v-1\) for each component. In particular, \(A_{l1}=\{l,\infty \}\).

We give, in the next section, an algorithm for constructing the design.

3.2.1 An Algorithm for Constructing the Design When v is Even

  1. Step 1:

    For \(m=1, \ldots , t\) and \(l=1, \ldots , v-1\), put

    $$\begin{aligned} A_{lm} = \left\{ \begin{array}{ll} \{l,\infty \}, &{ \text {if}}\; m=1,\\ \{l+m-1,l-m+1\}, &{ \text {if}}\; m\in (1,t],\\ \end{array} \right. \end{aligned}$$

    each component being reduced modulo \(v-1\).

  2. Step 2:

    Make a Latin square \(\varXi _l\), of order t, for \(l=1,2, \ldots ,v-1\), using the sets \(A_{l1}\), \(A_{l2}\), ..., \(A_{lt}\), as symbols.

  3. Step 3:

    Juxtapose the Latin squares \(\varXi _1, \varXi _2, \ldots , \varXi _{v-1}\) made in Step 2, one beside another.

This algorithm produces an \((h\times p)/2\) BSLR, where \(h=t, \text {and}\; p=t(v-1)\). The constructed design is simply:

figure c

where each Latin square, \(\varXi _1\), \(\varXi _2\), ..., \(\varXi _{v-1}\), is of order t and could take any form—cyclic or otherwise.

For instance, suppose they are cyclic, they could take the form:

figure d

Example 3

Figure 4 shows an example with \(v=6,h=3,\; {\text {and}}\;p=15\).

Fig. 4
figure 4

A \((3\times 15)/2\) balanced semi-Latin rectangle for 6 treatments

Comment

If \(v-1\)is not prime, in a similar manner as in Case 1, there are other possibilities for the design. Suppose that there are \(w,y\in {\mathbb {Z}}\), where \(1<w,y<v-1\)and \(wy=v-1\). Then, the design could have \(h=wt\)and \(p=yt\). If \(w=y\), this gives \(h=p=wt\).

Example 4

For instance, if \(v-1=9\), and consequently, \(v=10\), apart from a \((5\times 45)/2\) BSLR and a \((45\times 5)/2\) BSLR, a \((15\times 15)/2\) BSLR can also be obtained: see Fig. 5.

Fig. 5
figure 5

A \((15\times 15)/2\) balanced semi-Latin rectangle for 10 treatments