SlideShare a Scribd company logo
1 of 5
Feature Selection Methods:
Variance Threshold
21-11-2021 1
Department of Computer Science and Engineering
National Institute of Technology Silchar, Assam, INDIA
By-
Nurul Amin Choudhury
NIT Silchar - PhD Scholar
21-11-2021 2
Variance Threshold for feature Selection
• Main idea: Removing Numerical features with low variance.
• Assumption: Higher variance may contain more useful information.
• It is a Filter-based method.
• The idea is to compute the variance of each features (independently), and select the subset of features based on
a user-specified threshold (𝜶).
• This feature selection algorithm looks only at the features (X), not the desired outputs (y), and can thus be used
for unsupervised learning.
• It is applicable only on Numerical features.
• Drawbacks: As we are not taking the relationship between features variables, we may delete the dependency
among the features.
21-11-2021 3
Example Problem-
F1 F2 Class
5 1 C1
4 4 C1
3 5 C2
6 3 C2
2 4 C1
Table 1. Sample Dataset
Step 1. Let us consider the Variance Threshold (𝜶) >= 2.
Step 2. Finding Mean of Feature F1 and F2 respectively, using Ui= 𝒊=𝟎
𝒏
𝒙𝒏
𝒏
.
Mean (F1): U1= (5+4+3+6+2) / 5 = 4
Mean (F2): U2 = (1+4+5+3+4) / 5 = 3.4
Step 3. Finding the Variance of F1 and F2 using Pi = 𝒊=𝟎
𝒏
𝒙𝒊−𝑼𝟏
𝟐
𝒏
Variance (F1): P1 = [ (5-4)2 + (4-4)2 + (3-4)2 + (6-4)2 + (4-2)2 ] / 5
P1 = 2
Variance (F2): P1 = [ (1-3.4)2 + (4-3.4)2 + (5-3.4)2 + (3-3.4)2 + (4-3.4)2 ] / 5
P1 = 1.84
21-11-2021 4
Cntd…
Step 4. Comparing the Variance with our threshold Variance (𝜶) which was 2.
P1 = 2  Is, P1 >= 𝜶 (Yes, it satisfies) (It can be chosen in our feature subset)
P2 = 1.84  Is, P1 >= 𝜶 (No, it does not satisfies) (It cannot be chosen in our feature subset)
Step 5. Finally, Feature F1 is chosen among the features F1 and F2.
Thank You

More Related Content

Similar to Variance threshold based feature selection method

Face recognition based on curvelets, invariant moments features and SVM
Face recognition based on curvelets, invariant moments features and SVMFace recognition based on curvelets, invariant moments features and SVM
Face recognition based on curvelets, invariant moments features and SVMTELKOMNIKA JOURNAL
 
Line Search Techniques by Fibonacci Search
Line Search Techniques by Fibonacci SearchLine Search Techniques by Fibonacci Search
Line Search Techniques by Fibonacci Searchinventionjournals
 
Crop yield forecasting by adaptive neuro fuzzy inference system
Crop yield forecasting by adaptive neuro fuzzy inference systemCrop yield forecasting by adaptive neuro fuzzy inference system
Crop yield forecasting by adaptive neuro fuzzy inference systemAlexander Decker
 
11.crop yield forecasting by adaptive neuro fuzzy inference system
11.crop yield forecasting by adaptive neuro fuzzy inference system11.crop yield forecasting by adaptive neuro fuzzy inference system
11.crop yield forecasting by adaptive neuro fuzzy inference systemAlexander Decker
 
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...Fu-Yin Cherng
 
Development of deep reinforcement learning for inverted pendulum
Development of deep reinforcement learning for inverted  pendulumDevelopment of deep reinforcement learning for inverted  pendulum
Development of deep reinforcement learning for inverted pendulumIJECEIAES
 
Midterm common mistakes
Midterm common mistakesMidterm common mistakes
Midterm common mistakesASU Online
 
Fourth order improved finite difference approach to pure bending analysis o...
Fourth   order improved finite difference approach to pure bending analysis o...Fourth   order improved finite difference approach to pure bending analysis o...
Fourth order improved finite difference approach to pure bending analysis o...eSAT Journals
 
Detection of Attentiveness from Periocular Information
Detection of Attentiveness from Periocular InformationDetection of Attentiveness from Periocular Information
Detection of Attentiveness from Periocular InformationIRJET Journal
 
An fpga based efficient fruit recognition system using minimum
An fpga based efficient fruit recognition system using minimumAn fpga based efficient fruit recognition system using minimum
An fpga based efficient fruit recognition system using minimumAlexander Decker
 
An efficient fuzzy classifier with feature selection based
An efficient fuzzy classifier with feature selection basedAn efficient fuzzy classifier with feature selection based
An efficient fuzzy classifier with feature selection basedssairayousaf
 
About _principal_component_analysis(PCA)
About _principal_component_analysis(PCA)About _principal_component_analysis(PCA)
About _principal_component_analysis(PCA)bethellemma4
 
High Performance Decision Tree Optimization within a Deep Learning Framework ...
High Performance Decision Tree Optimization within a Deep Learning Framework ...High Performance Decision Tree Optimization within a Deep Learning Framework ...
High Performance Decision Tree Optimization within a Deep Learning Framework ...Yigal D. Jhirad
 

Similar to Variance threshold based feature selection method (20)

AI Lesson 39
AI Lesson 39AI Lesson 39
AI Lesson 39
 
Face recognition based on curvelets, invariant moments features and SVM
Face recognition based on curvelets, invariant moments features and SVMFace recognition based on curvelets, invariant moments features and SVM
Face recognition based on curvelets, invariant moments features and SVM
 
Line Search Techniques by Fibonacci Search
Line Search Techniques by Fibonacci SearchLine Search Techniques by Fibonacci Search
Line Search Techniques by Fibonacci Search
 
Crop yield forecasting by adaptive neuro fuzzy inference system
Crop yield forecasting by adaptive neuro fuzzy inference systemCrop yield forecasting by adaptive neuro fuzzy inference system
Crop yield forecasting by adaptive neuro fuzzy inference system
 
11.crop yield forecasting by adaptive neuro fuzzy inference system
11.crop yield forecasting by adaptive neuro fuzzy inference system11.crop yield forecasting by adaptive neuro fuzzy inference system
11.crop yield forecasting by adaptive neuro fuzzy inference system
 
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...
CHI 2016: An EEG-based Approach for Evaluating Graphic Icons from the Perspec...
 
Development of deep reinforcement learning for inverted pendulum
Development of deep reinforcement learning for inverted  pendulumDevelopment of deep reinforcement learning for inverted  pendulum
Development of deep reinforcement learning for inverted pendulum
 
Midterm common mistakes
Midterm common mistakesMidterm common mistakes
Midterm common mistakes
 
Ds33717725
Ds33717725Ds33717725
Ds33717725
 
Ds33717725
Ds33717725Ds33717725
Ds33717725
 
Biometry.docx
Biometry.docxBiometry.docx
Biometry.docx
 
Fourth order improved finite difference approach to pure bending analysis o...
Fourth   order improved finite difference approach to pure bending analysis o...Fourth   order improved finite difference approach to pure bending analysis o...
Fourth order improved finite difference approach to pure bending analysis o...
 
Taller parcial 2
Taller parcial 2Taller parcial 2
Taller parcial 2
 
Detection of Attentiveness from Periocular Information
Detection of Attentiveness from Periocular InformationDetection of Attentiveness from Periocular Information
Detection of Attentiveness from Periocular Information
 
An fpga based efficient fruit recognition system using minimum
An fpga based efficient fruit recognition system using minimumAn fpga based efficient fruit recognition system using minimum
An fpga based efficient fruit recognition system using minimum
 
An efficient fuzzy classifier with feature selection based
An efficient fuzzy classifier with feature selection basedAn efficient fuzzy classifier with feature selection based
An efficient fuzzy classifier with feature selection based
 
About _principal_component_analysis(PCA)
About _principal_component_analysis(PCA)About _principal_component_analysis(PCA)
About _principal_component_analysis(PCA)
 
Assg 2 dsp
Assg 2 dspAssg 2 dsp
Assg 2 dsp
 
High Performance Decision Tree Optimization within a Deep Learning Framework ...
High Performance Decision Tree Optimization within a Deep Learning Framework ...High Performance Decision Tree Optimization within a Deep Learning Framework ...
High Performance Decision Tree Optimization within a Deep Learning Framework ...
 
Fz3410961102
Fz3410961102Fz3410961102
Fz3410961102
 

Recently uploaded

BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 

Variance threshold based feature selection method

  • 1. Feature Selection Methods: Variance Threshold 21-11-2021 1 Department of Computer Science and Engineering National Institute of Technology Silchar, Assam, INDIA By- Nurul Amin Choudhury NIT Silchar - PhD Scholar
  • 2. 21-11-2021 2 Variance Threshold for feature Selection • Main idea: Removing Numerical features with low variance. • Assumption: Higher variance may contain more useful information. • It is a Filter-based method. • The idea is to compute the variance of each features (independently), and select the subset of features based on a user-specified threshold (𝜶). • This feature selection algorithm looks only at the features (X), not the desired outputs (y), and can thus be used for unsupervised learning. • It is applicable only on Numerical features. • Drawbacks: As we are not taking the relationship between features variables, we may delete the dependency among the features.
  • 3. 21-11-2021 3 Example Problem- F1 F2 Class 5 1 C1 4 4 C1 3 5 C2 6 3 C2 2 4 C1 Table 1. Sample Dataset Step 1. Let us consider the Variance Threshold (𝜶) >= 2. Step 2. Finding Mean of Feature F1 and F2 respectively, using Ui= 𝒊=𝟎 𝒏 𝒙𝒏 𝒏 . Mean (F1): U1= (5+4+3+6+2) / 5 = 4 Mean (F2): U2 = (1+4+5+3+4) / 5 = 3.4 Step 3. Finding the Variance of F1 and F2 using Pi = 𝒊=𝟎 𝒏 𝒙𝒊−𝑼𝟏 𝟐 𝒏 Variance (F1): P1 = [ (5-4)2 + (4-4)2 + (3-4)2 + (6-4)2 + (4-2)2 ] / 5 P1 = 2 Variance (F2): P1 = [ (1-3.4)2 + (4-3.4)2 + (5-3.4)2 + (3-3.4)2 + (4-3.4)2 ] / 5 P1 = 1.84
  • 4. 21-11-2021 4 Cntd… Step 4. Comparing the Variance with our threshold Variance (𝜶) which was 2. P1 = 2  Is, P1 >= 𝜶 (Yes, it satisfies) (It can be chosen in our feature subset) P2 = 1.84  Is, P1 >= 𝜶 (No, it does not satisfies) (It cannot be chosen in our feature subset) Step 5. Finally, Feature F1 is chosen among the features F1 and F2.