$sample example's explanation is contradictory

In the explanation of the example of $sample the instructor says that N is greater than 5% and hence pseudo random cursor technique will apply but that is applicable only when N is less than 5%

2 Likes

@Rajat_60861

Which specific lecture are you referencing here?

The last lecture in chapter 2 $sample - just before the labs

@Rajat_60861

Yes. At ~1:40 in the lecture, Norberto says that the ‘size’ of 200 documents is greater than 5%, but he means that it is <5%. If you look at the collection ‘nycFacilities’ in the database, you’ll see that it has 36112 documents – so 200 is only ~.6% of the collection. I would recommend that you report this using the “Report an issue” tab at the bottom of the screen to bring it to the attention of the curriculum team. Thanks.

2 Likes