univariate feature selection method in machine learing.Statistical tests can be used to select those features that have the strongest relationship with the output variable. The scikit-learn library provides the SelectKBest class that can be used with a suite of different statistical tests to select a specific number of features. The example below uses the chi-squared (chi²) statistical test for non-negative features to select 10 of the best features from the Mobile Price Range Prediction Dataset.
using linear regressions predicting the prices of house
selecting odd and even numbers
finding the eligibility
finding mean , mode and median