Online · Phuket · Thailand

mBlock STEM Robotics Starter Course for Phuket Expat Kids

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.

mBlock Phuket

1. What Outliers Are

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.

2. Three Handling Strategies

  • Clipping — Cap values at a fixed threshold (e.g. 1,000).
  • Winsorization — Pull extreme percentiles (e.g. top 20%) to boundary values; keep every row.
  • Removal — Drop rows or set extreme values to null; largest reduction in sample size.

3. Detection

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.

4. Python: Three Methods

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"])

5. When to Use Which

MethodMechanismBest when
ClippingCap at a thresholdFew outliers
WinsorizePull percentiles inward; keep rowsMany outliers; preserve sample size
RemovalDrop rows or set nullCorrupt / unsalvageable points

Compare side by side with a multi-column box plot before choosing a final policy for the pipeline.

Lesson Q&A

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.

What children can learn

WhatsApp +92 322 421 7059

AI and Robotics Club | The 100 Mission AI & Robotics Hero Journey

Recommended self-paced course for parents & educators

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.

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.

Frequently asked questions

What makes mBlock effective for expat kids taking robotics courses in Phuket?

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.

Can Phuket students join the mBlock program online without buying physical hardware first?

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.

How can I request a free mBlock demo session for my child in Phuket?

Click the WhatsApp button on this page to connect with our admissions desk and secure a free live trial pass for this week.

Explore related learning

SathornArduino · Sathorn SukhumvitRobotics · Sukhumvit Samut PrakanSTEM Club · Samut Prakan