Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Find Outliers in Sales Data | Data Quality Essentials
Working with Text, Dates, and Data Cleaning in R

bookChallenge: Find Outliers in Sales Data

Tâche

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 the sales vector.
  • Compute the interquartile range (iqr) as q3 - 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) and values (the outlier sales figures).

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain this in more detail?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Find Outliers in Sales Data

Glissez pour afficher le menu

Tâche

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 the sales vector.
  • Compute the interquartile range (iqr) as q3 - 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) and values (the outlier sales figures).

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4
single

single

some-alt