SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
Linear Regression Parameters




      Rodolfo Campos (@camposer)
     Universidad Politécnica de Madrid
          Madrid, October 2012
When to consider Linear
         Regression?
   When the outcome, or class, is numeric, and all 
    the attributes are numeric. 
   The idea is to express the class as a linear 
    combination of the attributes, with predetermined 
    weights:
       x = w0 + w1a1 + w2a2 + … + wkak
   x is the class; a1, a2, …, ak are the attribute values; 
    and w0, w1, …, wk are weights.
When to consider Linear
     Regression?
Linear Regression in Weka
Linear Regression in Weka
   Options specific to 
    weka.classifiers.functions.LinearRegression:
   ­D. Produce debugging output (default disabled).
   ­S <number of selection method>. Set the 
    attribute selection method to use. 1 = None, 2 = 
    Greedy (default 0 = M5' method).
   ­C. Do not try to eliminate colinear attributes.
   ­R <double>. Set ridge parameter (default 1.0e­
    8).
Linear Regression in Weka
   ­S <number of selection method>. Set the 
    method used to select attributes for use in the 
    linear regression:
          0 = M5' method.  Build trees whose leaves are 
           associated to multivariate linear models and the 
           nodes of the tree are chosen over the attribute that 
           maximizes the expected error reduction, given by 
           the Akaike information criterion (a measure of the 
           relative goodness of fit of a statistical model).
Linear Regression in Weka
      1 = None. No need explanation.
      2 = Greedy. ”For example, a greedy strategy for 
       the traveling salesman problem (which is of a high 
       computational complexity) is the following 
       heuristic: "At each stage visit an unvisited city 
       nearest to the current city". This heuristic need not 
       find a best solution but terminates in a reasonable 
       number of steps; finding an optimal solution 
       typically requires unreasonably many steps” from 
       Wikipedia.
Linear Regression in Weka
   ­C. Do not try to eliminate colinear attributes. 
    Possible examples:
          high performance, expensive German cars
          low performance, cheap American cars
Linear Regression in Weka
   ­R <double>. Set ridge parameter (default 1.0e­8).
           Its value is assigned by the analyst, and determines 
           how much Ridge Regression departs from Least 
           Square Regression, whose goal is to circumvent the 
           problem of predictors collinearity.
          If this value is too small, Ridge Regression cannot 
           fight collinearity efficiently. 
          If it is too large, the bias of the parameters become too 
           large, and so do the parameters and predictions Mean 
           Square Errors.
          It has therefore to be estimated by a series of trial and 
           errors, usually resorting to cross­validation
References
   I. Witten, E. Frank and M. Hall. Data Mining: Practical Machine 
    Learning Tools and Techniques (Third Edition). Elsevier. MA, 
    USA, 2011.
   Weka API. Class LinearRegression. Extracted on October 16, 
    2012 from 
    http://weka.sourceforge.net/doc/weka/classifiers/functions/LinearRegre
   D. Rodríguez, J.J. Cuadrado, M.A. Sicilia and R. Ruiz. 
    Segmentation of Software Engineering Datasets Using the M5 
    Algorithm. Extracted on October 14, 2012 from 
    http://www.cc.uah.es/drg/c/ICCS06.pdf
   AI Access. Ridge Regression. Extracted on October 16, 2012 from 
    http://www.aiaccess.net/English/Glossaries/GlosMod/e_gm_ridge.htm
No questions, right? :-)

Contenu connexe

Tendances

WolframAlpha Examples part 3
WolframAlpha Examples part 3WolframAlpha Examples part 3
WolframAlpha Examples part 3
Colleen Young
 
WolframAlpha Examples part 2
WolframAlpha Examples part 2WolframAlpha Examples part 2
WolframAlpha Examples part 2
Colleen Young
 
WolframAlpha - KS3 part 1
WolframAlpha - KS3 part 1WolframAlpha - KS3 part 1
WolframAlpha - KS3 part 1
Colleen Young
 
Conditional operators
Conditional operatorsConditional operators
Conditional operators
BU
 
Operators in c language
Operators in c languageOperators in c language
Operators in c language
Amit Singh
 

Tendances (20)

Commutative Short Circuit Operators
Commutative Short Circuit OperatorsCommutative Short Circuit Operators
Commutative Short Circuit Operators
 
WolframAlpha Examples part 3
WolframAlpha Examples part 3WolframAlpha Examples part 3
WolframAlpha Examples part 3
 
Numerical analysis using Scilab: Error analysis and propagation
Numerical analysis using Scilab: Error analysis and propagationNumerical analysis using Scilab: Error analysis and propagation
Numerical analysis using Scilab: Error analysis and propagation
 
WolframAlpha Examples part 4
WolframAlpha Examples part 4WolframAlpha Examples part 4
WolframAlpha Examples part 4
 
WolframAlpha Examples part 2
WolframAlpha Examples part 2WolframAlpha Examples part 2
WolframAlpha Examples part 2
 
Bubble Sort algorithm in Assembly Language
Bubble Sort algorithm in Assembly LanguageBubble Sort algorithm in Assembly Language
Bubble Sort algorithm in Assembly Language
 
Aaa ped-10-Supervised Learning: Introduction to Supervised Learning
Aaa ped-10-Supervised Learning: Introduction to Supervised LearningAaa ped-10-Supervised Learning: Introduction to Supervised Learning
Aaa ped-10-Supervised Learning: Introduction to Supervised Learning
 
Report on c
Report on cReport on c
Report on c
 
Operators
OperatorsOperators
Operators
 
Precedence and associativity (Computer programming and utilization)
Precedence and associativity (Computer programming and utilization)Precedence and associativity (Computer programming and utilization)
Precedence and associativity (Computer programming and utilization)
 
WolframAlpha - KS3 part 1
WolframAlpha - KS3 part 1WolframAlpha - KS3 part 1
WolframAlpha - KS3 part 1
 
COM1407: C Operators
COM1407: C OperatorsCOM1407: C Operators
COM1407: C Operators
 
Matlab Programming Help Research Guidance
Matlab Programming Help Research GuidanceMatlab Programming Help Research Guidance
Matlab Programming Help Research Guidance
 
Conditional operators
Conditional operatorsConditional operators
Conditional operators
 
Operators in c language
Operators in c languageOperators in c language
Operators in c language
 
Operators in c programming
Operators in c programmingOperators in c programming
Operators in c programming
 
190030341 fcp lab 1
190030341  fcp lab 1190030341  fcp lab 1
190030341 fcp lab 1
 
Matlab Projects for EEE Research Ideas
Matlab Projects for EEE Research IdeasMatlab Projects for EEE Research Ideas
Matlab Projects for EEE Research Ideas
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentation
 
Java 2
Java 2Java 2
Java 2
 

En vedette

Clustering and Regression using WEKA
Clustering and Regression using WEKAClustering and Regression using WEKA
Clustering and Regression using WEKA
Vijaya Prabhu
 
Machine Learning with WEKA
Machine Learning with WEKAMachine Learning with WEKA
Machine Learning with WEKA
butest
 
DATA MINING WITH WEKA
DATA MINING WITH WEKADATA MINING WITH WEKA
DATA MINING WITH WEKA
Shubham Gupta
 
Discovering knowledge using web structure mining
Discovering knowledge using web structure miningDiscovering knowledge using web structure mining
Discovering knowledge using web structure mining
Atul Khanna
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
Carlo Magno
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
saba khan
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
Khalid Aziz
 

En vedette (14)

Clustering and Regression using WEKA
Clustering and Regression using WEKAClustering and Regression using WEKA
Clustering and Regression using WEKA
 
Machine Learning with WEKA
Machine Learning with WEKAMachine Learning with WEKA
Machine Learning with WEKA
 
DATA MINING WITH WEKA
DATA MINING WITH WEKADATA MINING WITH WEKA
DATA MINING WITH WEKA
 
Discovering knowledge using web structure mining
Discovering knowledge using web structure miningDiscovering knowledge using web structure mining
Discovering knowledge using web structure mining
 
Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control Study
 
Survey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease predictionSurvey on data mining techniques in heart disease prediction
Survey on data mining techniques in heart disease prediction
 
How to detect &amp; diagnose congenital heart disease in children
How to detect &amp; diagnose congenital heart disease in childrenHow to detect &amp; diagnose congenital heart disease in children
How to detect &amp; diagnose congenital heart disease in children
 
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & BackpropagationArtificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
Artificial Neural Networks Lect5: Multi-Layer Perceptron & Backpropagation
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 

Similaire à Linear Regression Parameters

A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERSA WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
Silvio Cesare
 
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjdArjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
12345arjitcs
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
mydrynan
 
ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..
butest
 
ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..
butest
 

Similaire à Linear Regression Parameters (20)

Conference_paper.pdf
Conference_paper.pdfConference_paper.pdf
Conference_paper.pdf
 
A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERSA WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
A WHIRLWIND TOUR OF ACADEMIC TECHNIQUES FOR REAL-WORLD SECURITY RESEARCHERS
 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdf
 
Linear logisticregression
Linear logisticregressionLinear logisticregression
Linear logisticregression
 
Presentation on machine learning
Presentation on machine learningPresentation on machine learning
Presentation on machine learning
 
Machine learning and linear regression programming
Machine learning and linear regression programmingMachine learning and linear regression programming
Machine learning and linear regression programming
 
Analysis and Design of Algorithms notes
Analysis and Design of Algorithms  notesAnalysis and Design of Algorithms  notes
Analysis and Design of Algorithms notes
 
working with python
working with pythonworking with python
working with python
 
Predicting Employee Attrition
Predicting Employee AttritionPredicting Employee Attrition
Predicting Employee Attrition
 
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjdArjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
Arjrandomjjejejj3ejjeejjdjddjjdjdjdjdjdjdjdjdjd
 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
 
Supervised Learning.pptx
Supervised Learning.pptxSupervised Learning.pptx
Supervised Learning.pptx
 
Shrinkage Methods in Linear Regression
Shrinkage Methods in Linear RegressionShrinkage Methods in Linear Regression
Shrinkage Methods in Linear Regression
 
机器学习Adaboost
机器学习Adaboost机器学习Adaboost
机器学习Adaboost
 
Bound and Checked
Bound and CheckedBound and Checked
Bound and Checked
 
Project management
Project managementProject management
Project management
 
Implement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratchImplement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratch
 
4 R Tutorial DPLYR Apply Function
4 R Tutorial DPLYR Apply Function4 R Tutorial DPLYR Apply Function
4 R Tutorial DPLYR Apply Function
 
ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..
 
ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..ASCE_ChingHuei_Rev00..
ASCE_ChingHuei_Rev00..
 

Plus de camposer

Plus de camposer (10)

Curso de Ajax
Curso de AjaxCurso de Ajax
Curso de Ajax
 
Hadoop
HadoopHadoop
Hadoop
 
Fundamentos de Administración PostgreSQL
Fundamentos de Administración PostgreSQLFundamentos de Administración PostgreSQL
Fundamentos de Administración PostgreSQL
 
Fundamentos de SQL
Fundamentos de SQLFundamentos de SQL
Fundamentos de SQL
 
MongoDB
MongoDBMongoDB
MongoDB
 
Javascript Básico
Javascript BásicoJavascript Básico
Javascript Básico
 
Seguridad web
Seguridad webSeguridad web
Seguridad web
 
Entonamiento de aplicaciones Web (Enfasis en PHP)
Entonamiento de aplicaciones Web (Enfasis en PHP)Entonamiento de aplicaciones Web (Enfasis en PHP)
Entonamiento de aplicaciones Web (Enfasis en PHP)
 
Entonamiento y perfilado de Drupal
Entonamiento y perfilado de DrupalEntonamiento y perfilado de Drupal
Entonamiento y perfilado de Drupal
 
Extracción de Requerimientos
Extracción de RequerimientosExtracción de Requerimientos
Extracción de Requerimientos
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Linear Regression Parameters

  • 1. Linear Regression Parameters Rodolfo Campos (@camposer) Universidad Politécnica de Madrid Madrid, October 2012
  • 2. When to consider Linear Regression?  When the outcome, or class, is numeric, and all  the attributes are numeric.   The idea is to express the class as a linear  combination of the attributes, with predetermined  weights: x = w0 + w1a1 + w2a2 + … + wkak  x is the class; a1, a2, …, ak are the attribute values;  and w0, w1, …, wk are weights.
  • 3. When to consider Linear Regression?
  • 5. Linear Regression in Weka  Options specific to  weka.classifiers.functions.LinearRegression:  ­D. Produce debugging output (default disabled).  ­S <number of selection method>. Set the  attribute selection method to use. 1 = None, 2 =  Greedy (default 0 = M5' method).  ­C. Do not try to eliminate colinear attributes.  ­R <double>. Set ridge parameter (default 1.0e­ 8).
  • 6. Linear Regression in Weka  ­S <number of selection method>. Set the  method used to select attributes for use in the  linear regression:  0 = M5' method.  Build trees whose leaves are  associated to multivariate linear models and the  nodes of the tree are chosen over the attribute that  maximizes the expected error reduction, given by  the Akaike information criterion (a measure of the  relative goodness of fit of a statistical model).
  • 7. Linear Regression in Weka  1 = None. No need explanation.  2 = Greedy. ”For example, a greedy strategy for  the traveling salesman problem (which is of a high  computational complexity) is the following  heuristic: "At each stage visit an unvisited city  nearest to the current city". This heuristic need not  find a best solution but terminates in a reasonable  number of steps; finding an optimal solution  typically requires unreasonably many steps” from  Wikipedia.
  • 8. Linear Regression in Weka  ­C. Do not try to eliminate colinear attributes.  Possible examples:  high performance, expensive German cars  low performance, cheap American cars
  • 9. Linear Regression in Weka  ­R <double>. Set ridge parameter (default 1.0e­8).   Its value is assigned by the analyst, and determines  how much Ridge Regression departs from Least  Square Regression, whose goal is to circumvent the  problem of predictors collinearity.  If this value is too small, Ridge Regression cannot  fight collinearity efficiently.   If it is too large, the bias of the parameters become too  large, and so do the parameters and predictions Mean  Square Errors.  It has therefore to be estimated by a series of trial and  errors, usually resorting to cross­validation
  • 10. References  I. Witten, E. Frank and M. Hall. Data Mining: Practical Machine  Learning Tools and Techniques (Third Edition). Elsevier. MA,  USA, 2011.  Weka API. Class LinearRegression. Extracted on October 16,  2012 from  http://weka.sourceforge.net/doc/weka/classifiers/functions/LinearRegre  D. Rodríguez, J.J. Cuadrado, M.A. Sicilia and R. Ruiz.  Segmentation of Software Engineering Datasets Using the M5  Algorithm. Extracted on October 14, 2012 from  http://www.cc.uah.es/drg/c/ICCS06.pdf  AI Access. Ridge Regression. Extracted on October 16, 2012 from  http://www.aiaccess.net/English/Glossaries/GlosMod/e_gm_ridge.htm