Challenge: Find Outliers in Sales Data
Завдання
Swipe to start coding
You will use the 1.5 * IQR rule to detect outliers in a vector of sales figures. Outliers can sometimes signal data entry errors or rare but valid events.
- Calculate the first quartile (
q1) and third quartile (q3) of thesalesvector. - Compute the interquartile range (
iqr) asq3 - q1. - Determine the lower and upper bounds for outliers using the 1.5 * IQR rule.
- Identify the indices and values of any sales figures below the lower bound or above the upper bound.
- Return a list with two elements:
indices(the positions of outliers in the original vector) andvalues(the outlier sales figures).
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Can you explain this in more detail?
What are the next steps I should take?
Can you provide an example?
Чудово!
Completion показник покращився до 5
Challenge: Find Outliers in Sales Data
Свайпніть щоб показати меню
Завдання
Swipe to start coding
You will use the 1.5 * IQR rule to detect outliers in a vector of sales figures. Outliers can sometimes signal data entry errors or rare but valid events.
- Calculate the first quartile (
q1) and third quartile (q3) of thesalesvector. - Compute the interquartile range (
iqr) asq3 - q1. - Determine the lower and upper bounds for outliers using the 1.5 * IQR rule.
- Identify the indices and values of any sales figures below the lower bound or above the upper bound.
- Return a list with two elements:
indices(the positions of outliers in the original vector) andvalues(the outlier sales figures).
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 4
single