Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Find Outliers in Sales Data | Data Quality Essentials
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Working with Text, Dates, and Data Cleaning in R

bookChallenge: Find Outliers in Sales Data

Oppgave

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).

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 4
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Find Outliers in Sales Data

Sveip for å vise menyen

Oppgave

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).

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 4
single

single

some-alt