For a random variable that follows binomial distribution, $X|N=n\sim Binomial(n,p)$.
What is the expectation of $N$ when we know the value of the random variable but don't know the total? ie. What is $E[N|X=k]$?
Do we need to know the distribution of $N$ first? If so, please assume $N\sim Pois(\lambda)$
Note: I am not sure if my notation is entirely correct
This can be realized with a compound Poisson distribution. Each occurrence, independently, is a "success" with probability $p$ and otherwise a "failure"; the number of occurrences is a Poisson$(\lambda)$ random variable, and $X$ is the total number of successes. The successes and failures can also be considered as two separate independent Poisson random variables, with parameters $\lambda p$ and $\lambda (1-p)$ respectively. The expected number of failures is then $\lambda (1-p)$. Given the number of successes is $x$, the expected number of failures is still $\lambda (1-p)$ (since successes and failures are independent), and the number of occurrences is the sum of the numbers of successes and failures. Thus $$ E[N | X = x] = x + \lambda (1-p)$$