Kinetic theory of particle-in-cell simulation plasma and the ensemble averaging technique