Input Design and Model Validation
Input Design
Achieving a Desired
Several methods can be employed to shape the frequency content of a signal .
1) Filtering
- Types: Low-pass, high-pass, band-pass, band-stop filters.
- Control: The steepness of the filter's cutoff can be controlled by the filter order ().
- End-to-End Example:
- A white signal passes through a filter.
- The output is then processed, potentially involving rescaling.
- Filter order affects the filter's characteristics (e.g., ).
- represents the cutoff frequency.
2) Upsampling
- Goal: Retain the low-frequency content.
- Process:
- Start with a white signal .
- Upsample the signal (e.g., by a factor of 4).
- This process generates low-frequency components.
3) Sum of Sinusoids
- Equation:
- : Amplitude of the sinusoid.
- : Frequency of the sinusoid.
- : Phase of the sinusoid.
- Frequency Domain Representation:
- This shows that the frequency spectrum consists of impulses at the frequencies .
- Power Spectrum:
4) Swept Sinusoid (Chirp)
- Equation:
- Instantaneous Frequency:
- Chirp Signal:
Model Validation
Cross-Validation
- Data Set: Split the data set into training and testing sets.
- Process:
- Train the model on the training data.
- Use the trained model to make predictions on the test data: .
- Validate the model by comparing the predictions with the actual test data.
Overfitting
- Example: Learning an Autoregressive (AR) model.
- AR Model:
- NAR(p) Model:
prepresents the order of the AR model.
- Observations:
- p=1: Medium training error, medium test error.
- p=2: Very low training error, high test error (overfitting).
- Overfitting occurs when the model learns the training data too well, including the noise, and performs poorly on unseen data.
Time-Series Data
- Important: In time-series data, the train-test split must respect temporal continuity.
- Order: Maintain the order of the learned model (number of lags).
- Disjoint Segments: Do NOT attach originally disjoint segments until computing (or ) on each segment.