| Algorithm 1: Replacement Noise Algorithm |
| Input: Dataset D with N samples and F features |
| Output: D’, a corrupted dataset with N samples and F features |
| 1: Define noise term p, the proportion of values to replace |
| 2: For each |
| 3: |
| 4: |
| 5: |
| 6: |
| 7: Randomly remove v values from column |
| 8: Replace each value with a randomly sampled value from N |
| 9: End for loop |