Skip to main content

Posts

Search

Search Search Any Topic from Any Website Search
Recent posts

Interactive AC Circuit Simulator & Phasor Visualization | Live Waveform & Bode Plot

AC Circuit Interactive DSP Tool AC Circuit Interactive DSP Tool Adjust Parameters Resistance (R): 20 Ω Inductance (L): 0.04 H Capacitance (C): 10 μF Frequency (f): 50 Hz Results Download Report Phasor Diagram Yellow = static phasor (initial phasor), Blue = rotating phasor Waveform Rotating Phasor Controls R: 20 Ω L: 40 mH C: 10 μF f: 50 Hz Download Report Rotating Phasor Live Signal Waveform Bode Plot 📐 Math Behind AC Circuits In an AC series RLC circuit, we have: Resistance: R (Ω) Inductor: L (H) → Reactance \( X_L = 2 \pi f L \) Capacitor: C (F) → Reactance \( X_C = \frac{1}{2 \pi f C} \) Angular Frequency: \( \omega = 2 \pi f \) The total impedance of the series ci...

Model Validation Explained

Model Validation Explained In machine learning, model validation is the process of checking how good your model is at making predictions on new, unseen data. The goal is simple: we want our model to perform well in the real world, not just on the data it was trained on. Why Do We Need Model Validation? A common mistake is evaluating a model using the same data it was trained on. This is called an "in-sample evaluation" . This can be misleading because the model may simply memorize the training data instead of learning real patterns. Simple Example Imagine your dataset shows that houses with green doors are expensive. The model may learn this pattern and assume all green-door houses are expensive. This pattern may only exist in your training data It may not be true in real-world...

MUX / DEMUX Cheat Sheet

MUX / DEMUX Cheat Sheet This cheat sheet summarizes the key formulas, select line calculations, and combination methods for Multiplexers (MUX) and Demultiplexers (DEMUX). 1. Multiplexer (MUX) A MUX selects one input from multiple inputs based on select lines. Inputs: I₀, I₁, ..., I N-1 Output: Y Select lines: S₀, S₁, ..., S n-1 Minimum Number of Select Lines To select N inputs : n = ⌈log₂ N⌉ Example: 8 inputs → n = log₂ 8 = 3 select lines Boolean Expression Y = Σ I i · m i (S), i = 0..N-1 Where m i (S) = minterm for select lines corresponding to input I i Example: 4-to-1 MUX (S₁, S₀) Y = I₀·¬S₁¬S₀ + I₁·¬S₁S₀ + I₂·S₁¬S₀ + I₃·S₁S₀ Combination Methods for MUX Cascading MUX: Combine smaller MUXs to form larger MUX (e.g., two 4-to-1 + one 2-to-1 → 8-to-1 MUX) Parallel MUX: Multiple MUXs in parallel for multi-bit channels 2. Demultiplexer (DEMUX) A DEMUX routes one input to one of many outputs based on select lines. Input: I Outp...

Random Forest Classifier Explained

Random Forest Classifier Decision trees can leave you with a difficult choice. A deep tree with many leaves tends to overfit because each prediction comes from only a few examples in its leaf. On the other hand, a shallow tree with fewer leaves tends to underfit , failing to capture enough distinctions in the raw data. Even the most sophisticated models today face this trade-off between underfitting and overfitting. However, many models have clever techniques that improve performance. For example, the random forest . The random forest combines many decision trees, making predictions by averaging the results of all the trees. It generally achieves much better predictive accuracy than a single tree and works well with default parameters. With further modeling and parameter tuning, you can achieve even better performance, though some models are sensitive to parameter choices. Example in Python: from sklearn.model_selection import train_test_split from sklear...

Decision Tree Regressor Explained

  Decision Tree Regressor Explained Suppose we are predicting house prices based on size (sq ft) . A Decision Tree Regressor splits data into branches to make predictions. Tree Diagram (Flow) All Houses: Price=? Size <= 1200 Size > 1200 250k 350k 400k 500k Python Implementation # Import the Decision Tree Regressor from sklearn.tree import DecisionTreeRegressor # Define the model (random_state ensures reproducibility) melbourne_model = DecisionTreeRegressor(random_state=1) # Fit the model to training data melbourne_model.fit(X, y) # Predict on new data predictions = melbourne_model.predict(X_new) Key Concepts Root Node: The first split of the dataset based on the best feature....

Why Histograms are Important in Machine Learning?

Why Histograms Are Important in Machine Learning & Deep Learning Histograms (or histplots in Python with Seaborn/Matplotlib) are extremely common in machine learning and deep learning because they help you understand your data before modeling . 1. What a Histogram Does A histogram counts how many data points fall into each range (bin): X-axis → value range Y-axis → frequency (count) of values Example: Ages `[10, 20, 20, 30]` will show 2 people in their 20s, 1 in 10s, 1 in 30s. 2. Why It's Important in ML/DL A. Detecting Distribution of Data Many algorithms assume normal distribution (e.g., linear regression, Gaussian Naive Bayes). A histogram shows skewed distributions, outliers, or multiple modes (clusters). B. Detecting Outliers Spikes at extreme values indicate outliers, which can break your model or bias learning. C. Feature Scaling & Normalization If a feature is ...

AC Circuit Cheat Sheet (R, L, C)

  AC Circuit Cheat Sheet (R, L, C) 1. Basic Quantities Angular frequency: ω = 2πf Inductive reactance: XL = ωL Capacitive reactance: XC = 1 / (ωC) 2. Pure Components Pure Resistor (R) Impedance: Z = R Phase angle: φ = 0° Voltage and current are in phase Pure Inductor (L) Impedance: Z = jωL Phase angle: φ = +90° Current lags voltage Pure Capacitor (C) Impedance: Z = 1 / (jωC) Phase angle: φ = −90° Current leads voltage 3. RL Circuit (Series) Impedance: Z = √(R² + (ωL)²) Phase angle: φ = tan⁻¹(ωL / R) Current lags voltage Special Cases ωL >> R → behaves like inductor (φ ≈ 90°) R >> ωL → behaves like resistor (φ ≈ 0°) 4. RC Circuit (Series) Impedance: Z = √(R² + (1/ωC)²) Phase ang...

Optical Fibre - Single Mode, Multimode, Step Index, Graded Index, and Bandwidth

  Optical Fibre Communication Concepts 1. Single Mode Fibre Single mode fibre allows only one light ray (mode) to propagate through the core. It has a very small core diameter (about 8–10 µm), which reduces dispersion significantly. Very high bandwidth Low signal loss Used for long-distance communication 2. Multimode Fibre Multimode fibre allows multiple light rays to travel through the core simultaneously. It has a larger core diameter (50–100 µm). Higher dispersion Lower bandwidth compared to single mode Used for short-distance communication 3. Step Index Fibre In step index fibre, the refractive index of the core is constant and sharply decreases at the cladding. Light...

People are good at skipping over material they already know!

View Related Topics to







Contact Us

Name

Email *

Message *