Data Viz Basics - Badge - Key

LASER Institute Foundation Learning Badge 2 - Key

Author

ADD YOUR NAME HERE

The final activity for each learning lab provides space to work with data and to reflect on how the concepts and techniques introduced in each lab might apply to your own research.

To earn a badge for each lab, you are required to respond to a set of prompts for two parts:

Part I: Reflect and Plan

Use the institutional library (e.g. NCSU Library), Google Scholar or search engine to locate a research article, presentation, or resource that applies learning analytics analysis to an educational context or topic of interest. More specifically, locate a study that makes use of the Learning Analytics Workflow we learned today. You are also welcome to select one of your research papers.

  1. Provide an APA citation for your selected study.

  2. What educational issue, “problem of practice,” and/or questions were addressed?

  3. Briefly describe any steps of the data-intensive research workflow that detailed in your article or presentation.

  4. What were the key findings or conclusions? What value, if any, might education practitioners find in these results?

  5. Finally, how, if at at, were educators in your self-selected article involved prior to wrangling and analysis?

Draft a new research question of guided by the the phases of the Learning Analytics Workflow. Or use one of your current research questions.

  1. What educational issue, “problem of practice,” and/or questions is addressed??

  2. Briefly describe any steps of the data-intensive research workflow that can be detailed in your article or presentation.

  3. How, if at all, will your article touch upon the application(s) of LA to “understand and improve learning and the contexts in which learning occurs?”

Part II: Data Product

In our Learning Analytics code-along, we scratched the surface on the number of ways that we can Model the data.

You have two options for completing the Data Product portion:

  1. Create a visualization of your choice using a data set from the data folder, or your own .
  2. Create a visualization using your own data.

Finally, for each exercise:

  1. Add a write up about the motivation for your data visualization.
    1. What is the question you are asking?
    2. What is the Model telling us?
    3. Who is the stakeholder for this analysis?

I highly recommend creating a new R script in your Module 2 folder to complete this task. When your code is ready to share, use the code chunk below to share the final code for your model and answer the questions that follow.

Exercise 1: - Using the sci-online data or your own to create a basic visualization that:

  1. Examine the relationship between two categorical variables.
  2. Add an appropriate title to your chart.
  3. Add a caption that poses a question educators may have about this data that your visualization could help answer.
# YOUR FINAL CODE HERE

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.linear_model import LinearRegression
import numpy as np

data_to_explore = pd.read_csv("data/data_to_explore.csv")

subject_counts = data_to_explore['subject'].value_counts().reset_index()
subject_counts.columns = ['subject', 'count']

# Create the bar plot using sns.barplot()
plt.figure(figsize=(10, 6))
sns.barplot(data=subject_counts, x='subject', y='count')
plt.show()

{Write the motivation here: ……}

Exercise 2:

Using the sci-online data, create a basic visualization that:

  1. Examines the relationship between two continuous variables. (scatterplot with layers, a log-log or line plot, or one using coord functions.)
  2. Add an appropriate title to your chart.
  3. Add a caption that poses a question educators may have about this data that your visualization could help answer.
  4. Add or adjust any aesthetics to improve the readability of visual appeal of your viz.
  5. Use a color scale if appropriate to modify the default colors used by ggplot.
  6. Adjust or remove your legend as appropriate.

{Write the motivation here: ……}

Exercise 2:

Using the sci-online data, create a basic visualization that:

  1. Examines the relationship between two continuous variables. (scatterplot with layers, a log-log or line plot, or one using coord functions.)
  2. Add an appropriate title to your chart.
  3. Add a caption that poses a question educators may have about this data that your visualization could help answer.
  4. Add or adjust any aesthetics to improve the readability of visual appeal of your viz.
  5. Use a color scale if appropriate to modify the default colors used by ggplot.
  6. Adjust or remove your legend as appropriate.
# YOUR FINAL CODE HERE
plt.figure(figsize=(10, 6))
sns.scatterplot(data=data_to_explore, x='time_spent_hours', y='proportion_earned')
plt.title("Relationship Between Time Spent and Proportion of Points Earned")  # Add the title
plt.xlabel("Time Spent (Hours)")  # Label for the x-axis
plt.ylabel("Proportion of Points Earned")  # Label for the y-axis
plt.show()

{Write the motivation here: ……}

Render & Submit

Congratulations, you’ve completed Foundations Learning Badge 1!

To receive your the Foundations Badge, you will need to render this document and publish via a method designated by your instructor such as: Quarto Pub, Posit Cloud, RPubs , GitHub Pages, or other methods. Once you have shared a link to you published document with your instructor and they have reviewed your work, you will be provided a physical or digital version of the badge pictured at the top of this document!

If you have any questions about this badge, or run into any technical issues, don’t hesitate to contact your instructor.

Once your instructor has checked your link, you will be provided a physical version of the badge below!

Complete the following steps to submit your work for review by:

  1. First, change the name of the author: in the YAML header at the very top of this document to your name. The YAML header controls the style and feel for knitted document but doesn’t actually display in the final output.

  2. Next, click the knit button in the toolbar above to “knit” your R Markdown document to a HTML file that will be saved in your R Project folder. You should see a formatted webpage appear in your Viewer tab in the lower right pan or in a new browser window. Let’s us know if you run into any issues with knitting.

  3. Finally, publish.