Lab 5 - Heitor Faria - Lab 5 Introduo Regresso Linear...

This preview shows page 1 - 2 out of 13 pages.

12/09/2016 Lab 5 - Introdução à Regressão Linear 1/13 Lab 5 ­ Introdução à Regressão Linear Professor Dr. Donald Pianto 12 de setembro, 2016 Aluno: Heitor Medrado de Faria Participantes: Carrega o banco de dados MLB11: load ("~/Documentos/LabsAlunos/lab5/mlb11.RData") Exercícios: Exercício 1: Podemos conseguir o coeficiente de correlação das duas variáveis, e dessa forma saber sua “força”: mlb11 %>% summarise ( cor (runs, at_bats)) ## cor(runs, at_bats) ## 1 0.610627 Exercício 2: Aparentemente existe uma correção forte entre as variáveis, na medida que enquanto uma cresce, existe tendência de crescimento da outra. Isso também é explícito pelo coeficiente angular: 1.046, o que indica um crescimento médio bem uniforme entre as variáveis. plot_ss (x = at_bats, y = runs, data = mlb11, showSquares = TRUE)
Image of page 1

Subscribe to view the full document.

12/09/2016 Lab 5 - Introdução à Regressão Linear 2/13 ## Click two points to make a line. ## Call: ## lm(formula = y ~ x, data = pts)
Image of page 2

You've reached the end of your free preview.

Want to read all 13 pages?

  • Fall '15
  • regressão linear, Adjusted R-squared, and 28 df, file:///home/hfaria/Documentos/LabsAlunos/lab5/lab5.html

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern