  In this paper we present results of numerical simulation based on Prequantum
Classical Statistical Field Theory (PCSFT), a model with hidden variables of
the field-type reproducing probabilistic predictions of quantum mechanics (QM).
PCSFT is combined with measurement theory based on detectors of the threshold
type. The latter describes discrete events corresponding to the continuous
fields model, PCSFT. Numerical modeling demonstrated that the classical
Brownian motion (the Wiener process valued in complex Hilbert space) producing
clicks when approaching the detection threshold gives probabilities of
detection predcited by the formalism QM (as well as PCSFT). This numerical
result is important, since the transition from PCSFT to the threshold detection
has a complex mathematical structure (in the framework of classical random
processes) and it was modeled only approximately. We also perform numerical
simulation for the PCSFT-value of the coefficient of second order coherence.
Our result matches well with the prediction of quantum theory. Thus, opposite
to semiclassical theory, PCSFT cannot be rejected as a consequence of
measurements of $g^{(2)}(0).$ Finally, we analyze the output of the recent
experiment performed in NIST questioning the validity of some predictions of
PCSFT.
