WilcoxonSignedRank<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter.Statistical

Wilcoxon Signed-Rank test for feature selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → WilcoxonSignedRank<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

When you have paired data (like measurements from the same subjects at different times), this test checks if there’s a consistent difference. It doesn’t assume normal distributions, making it more robust than paired t-tests for real-world data.

How It Works

The Wilcoxon Signed-Rank test is a non-parametric test for paired samples. It tests whether the median difference between pairs of observations is zero, useful for before/after comparisons or matched samples.

Constructors

Constructor Summary
WilcoxonSignedRank(int nFeaturesToSelect, double alpha, int[] columnIndices)

Properties

Property Summary
Vector<T> PValues { get; }
Vector<T> WStatistics { get; }
bool SupportsInverseTransform { get; }
double Alpha { get; }
int NFeaturesToSelect { get; }
int[] SelectedIndices { get; }

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data, Vector<T> target)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)
void Fit(Matrix<T> data, Vector<T> target)