Memuat
Memuat
Linear Discriminant Analysis for Electrical Engineering and Energy
0 views
Reduce the dimensions of current harmonic distortion and power factor related to load type using Linear Discriminant Analysis to summarise the main pattern. Linear Discriminant Analysis finds linear combinations of features that best separate classes and can also act as a classifier. It suits supervised dimensionality reduction and classification with reasonably separated classes.

Reduce the dimensions of current harmonic distortion and power factor related to load type using Linear Discriminant Analysis to summarise the main pattern.
| Role | Variable | Unit |
|---|---|---|
| Main | Load type | - |
| Supporting 1 | Current harmonic distortion | % |
| Supporting 2 | Power factor | - |
LDA separates three groups with a test accuracy of 0.885 (cross-validated 0.889); LD1 explains 81.7% of the between-group separation.
Computed from illustrative synthetic data, not from a real study.
Linear Discriminant Analysis finds linear combinations of features that best separate classes and can also act as a classifier. It suits supervised dimensionality reduction and classification with reasonably separated classes.
Report accuracy, the explained variance ratio of each discriminant axis, and the features that discriminate most. Discuss covariance assumption violations if any.
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.datasets import make_blobs
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, confusion_matrix
X, load_type = make_blobs(n_samples=450, n_features=4, centers=3, cluster_std=2.0, random_state=21)
current_harmonic_distortion = X[:, 0]
power_factor = X[:, 1]
X_tr, X_te, y_tr, y_te = train_test_split(X, load_type, test_size=0.3, stratify=load_type, random_state=21)
lda = LinearDiscriminantAnalysis(n_components=2).fit(X_tr, y_tr)
pred = lda.predict(X_te)
print("Accuracy:", round(accuracy_score(y_te, pred), 3))
print("Confusion matrix:\n", confusion_matrix(y_te, pred))
print("Explained variance ratio:", lda.explained_variance_ratio_.round(3))
Z = lda.transform(X_te)
for c in np.unique(y_te):
plt.scatter(Z[y_te == c, 0], Z[y_te == c, 1], label=f"Class {c}", s=15)
plt.xlabel("LD1"); plt.ylabel("LD2"); plt.legend()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 5 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$66
excl. 11% VAT
Duration: 9 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$147
excl. 11% VAT
Duration: 14-17 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Linear Discriminant Analysis is commonly used at this level in Electrical Engineering and Energy. 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$22, Package 2 (your data analysis and interpretation) US$66 and Package 3 (full guidance) US$147, 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