Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given a list of numbers, count the number of values that are outliers. An outlier is defined as a number that is 3 standard deviations
Given a list of numbers, count the number of values that are "outliers". An outlier is defined as a number that is 3 standard deviations or more, away from the mean. Example: Given an array with the following array: [0,1,1,0.5,0.5,1,1,0.33, 0.33,1,1,0.1,0.1,0.2,0.2,4,4,0.25,0.25,0.03,0.03,0.1,0.1, 0.01,0.01] There are two numbers that are "outliers" (4, and 4), so the output of the program should be "2" Input: An array of numbers Output: An integer, counting the number of outliers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started