Visual Algorithms Meet Motion: mBlock Practice for Phuket Learners
Phuket families gain from visual robotics that stays optional on hardware. Enquire WhatsApp +92 322 4217059. No invented Phuket studio.
An mBlock STEM robotics starter course for Phuket expat kids lets learners write visual algorithms that control motor drives, distance sensing and light indicators—on screen first, optional hardware later.

Outliers sit far from the main body of the data. Left alone, they skew summaries, pull regression lines, and confuse models. Detecting and handling them is a standard preprocessing step.
Summary stats: Compare Q3 (75%) to the max with .describe(). A large gap (e.g. Q3 = 1,300, max = 5,000) flags upper outliers.
Box plots: The box and whiskers show the bulk of the data; points beyond the whiskers (e.g. 3,000 and 5,000) are visual outliers.
import pandas as pd
import numpy as np
from scipy.stats.mstats import winsorize
sales = pd.Series([200, 400, 800, 1000, 1100, 1200, 1300, 1500, 3000, 5000])
df = pd.DataFrame({"Original": sales})
print(df.describe()) # Q3 vs max gap
# Clipping
df["Clipped"] = df["Original"].clip(upper=1000)
# Winsorization (top 20%)
df["Winsorized"] = winsorize(df["Original"], limits=[0.0, 0.20])
# Removal
df["Removed"] = df["Original"].apply(lambda x: x if x <= 1000 else np.nan)
df_dropped = df.dropna(subset=["Removed"])
| Method | Mechanism | Best when |
|---|---|---|
| Clipping | Cap at a threshold | Few outliers |
| Winsorize | Pull percentiles inward; keep rows | Many outliers; preserve sample size |
| Removal | Drop rows or set null | Corrupt / unsalvageable points |
Compare side by side with a multi-column box plot before choosing a final policy for the pipeline.
Outliers are extreme points far from the main distribution. Use .describe() to compare Q3 with the max, and box plots to see points beyond the whiskers (e.g. 3,000 and 5,000).
Clipping caps values at a threshold. Winsorization pulls extreme percentiles to boundary values without dropping rows. Removal discards those rows or sets them to null and reduces dataset size the most.
Prefer winsorization when many outliers exist and you need to keep sample size. Clipping suits a few isolated extremes; removal is for clear data errors you are willing to drop.
mBlock Coding Fast Track for Beginners on Udemy.
Disclosure: This page contains affiliate links. We may earn from qualifying purchases at no extra cost to you. Links are intended for parents and educators, not as marketing directed at young children.
Phuket families gain from visual robotics that stays optional on hardware. Enquire WhatsApp +92 322 4217059. No invented Phuket studio.
mBlock combines the drag-and-drop simplicity of Scratch visual block programming with real hardware control. Phuket students write visual algorithms that operate physical mBot motors, distance sensors, and LED lights in real time.
Yes! We utilize interactive software robotics simulators during online live sessions, enabling students to program and test robot movements on screen prior to purchasing physical kits.
Click the WhatsApp button on this page to connect with our admissions desk and secure a free live trial pass for this week.