Lab 02

Childcare costs + Collaborative workflows

Sep 16, 2024

Welcome

Goals

  • LaTex in this course
  • Meet your team!
  • Team agreement
  • Lab 02: Childcare costs

LaTex in this class

For this class you will need to be able to…

  • Properly write mathematical symbols, e.g., \(\beta_1\) not B1, \(R^2\) not R2

  • Write basic regression equations, e.g., \(\hat{y} = \beta_0 + \beta_1x_1 + \beta_2x_2\)

  • Write matrix equations: \(\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}\)

  • Write hypotheses (we’ll start this next week), e.g., \(H_0: \beta = 0\)

You are welcome to but not required to write math proofs using LaTex.

Writing LaTex (from AE 02)

Inline: Your mathematics will display within the line of text.

  • Use $ to start and end your LaTex syntax. You can also use the menu: Insert -> LaTex Math -> Inline Math.

  • Example: The text The simple linear regression model is $\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}$ produces

    The simple linear regression model is \(\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}\)

Writing LaTex (from AE 02)

Display: Your mathematics will display outside the line of text

  • Use a $$ to start and end your LaTex syntax. You can also use the menu: Insert -> LaTex Math -> Display Math.

  • Example: The text The estimated regression equation is $$\hat{\mathbf{y}} = \mathbf{X}\hat{\boldsymbol{\beta}}$$ produces

    The estimated regression equation is

\[ \hat{\mathbf{y}} = \mathbf{X}\hat{\boldsymbol{\beta}} \]

Tip

Click here for a quick reference of LaTex code.

Teams

Meet your team!

  • Click here to find your team.

  • Sit with your team.

Team name + agreement

  • Come up with a team name. You can’t have the same name as another group in the class, so be creative!

    • Your TA will get your team name by the end of lab.
  • Fill out the team agreement. The goals of the agreement are to…

    • Gain a common understanding of the team’s goals and expectations for collaboration
    • Make a plan for team communication
    • Make a plan for working outside of lab

Team workflow

  • Only one team member should type at a time. There are markers in today’s lab to help you determine whose turn it is to type.

    • Every team member should still be engaged in discussion for all questions, even if it’s not your turn type.
  • Don’t forget to pull to get your teammates’ updates before making changes to the .qmd file.

    Important

    Only one submission per team on Gradescope. Read the submission instructions carefully!

Team workflow, in action

  • Complete the “Workflow: Using Git and GitHub as a team” section of the lab in your teams.
  • Raise your hand if you have any questions about the workflow.
05:00

Tips for working on a team

  • Do not pressure each other to finish early; use the time wisely to really learn the material and produce a quality report.

  • The labs are structured to help you learn the steps of a data analysis. Do not split up the lab among the team members; work on it together in its entirety.

  • Everyone has something to contribute! Use the lab groups as an opportunity to share ideas and learn from each other.

Lab 02: Childcare costs

Today’s lab focuses on using multiple linear regression (Week 03 content) to predict childcare costs for school-aged children in North Carolina.

🔗 sta221-fa24.netlify.app/labs/lab-02.html