The paper investigates the average beamforming (BF) gain of compact antenna arrays when statistical channel knowledge is available. The optimal excitation (precoding vector) and impedance termination that maximize the average BF gain are a compromise between the ones that maximize the array efficiency and the ones that maximize the array distributed directivity. Simulation results using a symmetric uniform circular array (UCA) operating in an indoor clustering environment are provided.