Memuat
Memuat
Data Normalisation and Standardisation for Psychology
0 views
Normalise and standardise raw stress score, raw anxiety score, and raw depression score and assess the effect on downstream analysis. Normalisation (min-max) and standardisation (z-score) put variables on the same scale so none dominates because of its units. They are required before distance- or penalty-based methods such as k-NN, SVM, K-Means, and regularised regression.

Normalise and standardise raw stress score, raw anxiety score, and raw depression score and assess the effect on downstream analysis.
| Role | Variable | Unit |
|---|---|---|
| Main | Raw stress score | skor |
| Supporting 1 | Raw anxiety score | skor |
| Supporting 2 | Raw depression score | skor |
Variable scales differ by up to 750.0x; after standardisation, kNN accuracy moves from 0.537 to 0.860 (min-max 0.860).
Computed from illustrative synthetic data, not from a real study.
Normalisation (min-max) and standardisation (z-score) put variables on the same scale so none dominates because of its units. They are required before distance- or penalty-based methods such as k-NN, SVM, K-Means, and regularised regression.
Explain the chosen scaling method and why, then show statistics before and after. State that scaling parameters are stored so new predictions are treated the same way.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler
from sklearn.model_selection import train_test_split
rng = np.random.default_rng(38)
n = 300
raw_anxiety_score = rng.normal(1000, 200, n) # large-scale variable
raw_depression_score = rng.exponential(2.0, n) # small-scale, skewed variable
raw_depression_score[:3] += 30 # outliers
raw_stress_score = np.column_stack([raw_anxiety_score, raw_depression_score])
X_tr, X_te = train_test_split(raw_stress_score, test_size=0.3, random_state=38)
scalers = {"MinMax": MinMaxScaler(), "Standard": StandardScaler(), "Robust": RobustScaler()}
print("Raw train mean:", X_tr.mean(axis=0).round(2), "std:", X_tr.std(axis=0).round(2))
fig, ax = plt.subplots(1, 4, figsize=(14, 3.5))
ax[0].boxplot(X_tr); ax[0].set_xticklabels(["x1", "x2"]); ax[0].set_title("Raw")
for a, (name, sc) in zip(ax[1:], scalers.items()):
tr = sc.fit_transform(X_tr)
te = sc.transform(X_te)
print(name, "train mean:", tr.mean(axis=0).round(2), "std:", tr.std(axis=0).round(2),
"test min:", te.min(axis=0).round(2))
a.boxplot(tr); a.set_xticklabels(["x1", "x2"]); a.set_title(name)
plt.tight_layout()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$16
excl. 11% VAT
Duration: 3 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$50
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$106
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Data Normalisation and Standardisation is commonly used at this level in Psychology. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$16, Package 2 (your data analysis and interpretation) US$50 and Package 3 (full guidance) US$106, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio