Rosenblatt's 1958 analysis of the perceptron rests on two probabilities about a randomly wired association cell (A-unit). is the expected proportion of A-units activated by a stimulus of a given size. is the conditional probability that an A-unit which responds to one stimulus also responds to another stimulus . Compute both exactly for a large retina.
Implement overlap_probabilities(x, y, theta, R, L, G).
Inputs
x, y: the numbers of excitatory and inhibitory connections of each A-unit.theta: the threshold. A unit responds when (lit excitatory origin points) minus (lit inhibitory origin points) is at least theta.R: the proportion of S-points lit by .L: the proportion of the S-points lit by that are not lit by .G: the proportion of the remaining S-points (those not lit by ) that are lit by .Model. On a large retina every connection lands on a lit point independently with probability . So under the number of lit excitatory points is binomial with trials and the number of lit inhibitory points is binomial with trials:
When is replaced by , each lit origin point is lost with probability and each dark origin point is gained with probability , independently. Let be the numbers of excitatory and inhibitory points lost and the numbers gained. The unit responds to both stimuli when and
is the probability of both events divided by .
Output: a tuple of two floats (p_a, p_c).
(0.0, 0.0).