0

So if I have a dataset with many variables (x,y,z for each sample), and then I introduce a new data point, what statistical test in R can I do to check the probability that the new data point belongs to the original population?

x <- rnorm(1000,4,2)
y <- rnorm(1000,17,6)
z <- rbeta(1000,9,2)

orig.pop <- data.frame(x,y,z)

new.point <- c(5,18.5,.6)

I remember doing this in stats where we can take a book's parameters (freq of "and", average word length, etc.) and then say the probability it was written by a specific author. Thanks.

Schatzi121
  • 73
  • 1
  • 7

0 Answers0