1. Learn
  2. /
  3. Courses
  4. /
  5. Support Vector Machines in R

Connected

Exercise

Generating a complex dataset - part 1

In this exercise you will create a dataset that has two attributes x1 and x2, with x1 normally distributed (mean = -0.5, sd = 1) and x2 uniformly distributed in (-1, 1).

Instructions

100 XP
  • Generate a data frame df with 1000 points (x1, x2) distributed as follows:
  • x1 - normally distributed with mean = -0.5 and std deviation 1.
  • x2 uniformly distributed in (-1, 1).