The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
asked in Probability by Active (1.7k points) | 445 views

1 Answer

+1 vote
Best answer

Let Xi denote the random variable for ith selection being prime. 

We require expected value of sum of all Xi to be 1. Linearity of expectation (refer link at bottom) says that expected value of sum of a random variable is equal to the sum of the individual expectations.

i.e., E(∑ Xi) = ∑ E(Xi)

We have X = 1/2302 and that is the same for all i. (once we take a number that number can be repeated also and hence events are independent)

So, E(∑ Xi) = ∑ E(Xi) = 1

=> ∑ (1/2302) = 1

as summation is from 1 to n, we get

n/2302 = 1 => n = 2302

answered by Veteran (348k points)
selected by

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

34,239 questions
40,932 answers
39,846 users