From the course: Machine Learning Foundations: Statistics
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Selection without replacement - Python Tutorial
From the course: Machine Learning Foundations: Statistics
Selection without replacement
- [Instructor] Let's look at another way we can collect the samples. We will use the previous example with 10 objects with assigned numbers from zero to nine, but this time, we will randomly select one object, for example, the object with the number one, from the original dataset and place it in the new dataset. That way, the original dataset has one less object, and we repeat the process with the object with the number three and then object with the number six. We call this type of sampling the selection without replacement, or shorter, SWOR. The easiest way you can imagine this is by thinking about playing a card game. Every time we deal cards, they aren't in the original pack of cards, and we cannot give them again. The selection without replacement has the following properties: we can select an element only once after we remove it from the original dataset. The new dataset can be smaller than the original dataset or…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.