Finding an outlier in a dataset using percentile (MATLAB)

preview_player
Показать описание
Code is given in the comment section.

Other ways to detect outlier:
Z score for Outlier Detection – MATLAB
Find outliers in data using MAD | MATLAB

Learn Data Science and Machine Learning using MATLAB:

#DataScience #MachineLearning #MATLAB
Рекомендации по теме
Комментарии
Автор

Code:

clc
clear all
close all
warning off
x=readtable('mtcars.csv');
boxplot(x.hp);
Q1=prctile(x.hp, 25);
Q3=prctile(x.hp, 75);
MED=prctile(x.hp, 50);
IQR=Q3-Q1;
upper_bound=Q3+1.5*IQR;
lower_bound=Q1-1.5*IQR;
y=x.hp>upper_bound;
g=x(y, :);

KnowledgeAmplifier
Автор

Please what channel can a student contact you? please let have your email for any question regarding your wonderful lectures

ummaruje