Lecture 01: Glossary

Terms used in this lecture, with the Arabic term and a one-line meaning.

English العربية Meaning
list قائمة Ordered, changeable sequence: [1, 2, 3]
dictionary قاموس Key to value lookup: {"a": 1}
tuple صف مرتب (tuple) Fixed sequence: (1, 2)
mutable قابل للتعديل Can change in place after creation
immutable غير قابل للتعديل A change creates a new object
array مصفوفة رقمية NumPy block of numbers with one type and a shape
shape الأبعاد (الشكل) Size along each axis, e.g. (3, 4)
axis المحور One dimension of an array; axis=0 runs down the rows
matrix مصفوفة Two-dimensional array of numbers
vector متجه One-dimensional array of numbers
feature سمة One measured variable: a column of $X$
sample عينة One observation: a row of $X$
vectorisation المعالجة المتجهية Replacing a Python loop with one array operation
broadcasting البث (توسيع الأبعاد تلقائيًا) Stretching size-1 axes so shapes match
mean المتوسط الحسابي Sum divided by count
variance التباين Mean squared distance from the mean
standard deviation الانحراف المعياري Square root of the variance
standardisation التقييس (التوحيد القياسي) Subtract the mean, divide by the standard deviation
Euclidean distance المسافة الإقليدية Straight-line distance $\lVert a - b \rVert$
median الوسيط Middle value of sorted data
missing value قيمة مفقودة An empty entry, NaN in pandas
imputation تعويض القيم المفقودة Filling missing values, e.g. with the median
group by التجميع حسب Split rows into groups, compute per group
least squares المربعات الصغرى Fit that minimises the sum of squared residuals
residual الباقي Observed minus predicted value
loss function دالة الخسارة Number the fit minimises
gradient التدرج Vector of partial derivatives
intercept الحد الثابت (المقطع) Prediction when all features are zero
coefficient of determination معامل التحديد $R^2$: share of variance explained