Final Project: Independent Data Intensive Research

ETR537

Author

Jazmyne Garcia

Published

Invalid Date

Prepare

I am a mathematics teacher for high school students. I have been teaching mathematics for four years now, and I am always looking for ways to improve my teaching. I wanted to focus my final project on analyze data that supports or does not support why different teaching styles work.

The purpose of this project is to analyze data on student’s test scores in mathematics based on different teaching styles. I found this data set on Kaggle. Kaggle does provided a descriptive synopsis of the background information, but I will state some important key factors here. The data was collected from the classes of three different 8th grade math teachers. The school has a demographic of African-American, Hispanic, Asian, and Caucasian students, and a good proportion of the students qualify for free or reduced lunch. The purpose of this data set is to analyze student assessment scores based on different teaching styles. So, each of the three math teachers have different teaching styles.

The first math teacher, Ms. Ruger is certified to teach math and science, and Ms. Ruger has been teaching mathematics for 3 out of the 5 total years she has been a teacher. Ms. Ruger’s teaching style can be described as a constructive approach to teaching. Ms. Ruger runs her class by having students discover, explore, and develop their own understanding of standards-based mathematics.

The second math teacher, Ms. Smith is certified to teach Spanish and math. Ms. Smith has been a teacher for 12 years, and she has been teaching math for 3 out of the 12 years. Similar to Ms. Ruger, Ms. Smith teaches mathematics with a constructive approach with a focus on standards-based learning. The biggest difference between Ms. Smith and Ms. Ruger as teachers is their age difference and their years of experience with teaching.

The third and final math teacher, Ms. Wesson was a PE teacher for 24 years and recently started teaching mathematics for 3 years. Ms. Wesson has a direct instruction approach to teaching where all of the information comes from the teacher, and the students are required to reproduce work similar to work that was demonstrated to them by the teacher.

Another important note about the data set is that the data was collected because one of the teachers proposed that students who are of a certain ethnicity should be in the class of a teacher with the same ethnicity. So, for this data set the teacher proposed all of the African-American students should be with Ms. Ruger since she is African-American, the students with a Latino background should be with Ms. Smith because she speaks Spanish, and all of the other students could be dispersed randomly.

Research Questions:

  1. Do students perform better under direct instruction or in a learning environment where they are required to discover and explore the material on their own?

  2. Do students learn better with a teacher who is the same ethnicity as them or has a better understanding of their culture?

  3. Does the gender of the students have any impact on their test scores?

  4. Does if the student has free or reduced lunch have any impact on their test scores?

Variables of Data Set:

  1. Gender of Student

  2. Teacher

  3. Test Score

  4. Type of teaching style (labeled by the name of the teacher they have)

  5. Free or Reduced Lunch Status

  6. Ethnicity of Students

Load Packages

#loadpackages
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.3     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.3     ✔ tibble    3.2.1
✔ lubridate 1.9.2     ✔ tidyr     1.3.0
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Import Data Set

#importantdataset

math_class<- read_csv("mathstudentdatacsv.csv")
Rows: 217 Columns: 7
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (5): Teacher, Gender, Ethnic, Freereduce, TypeofTeaching
dbl (2): Student, TestScore

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
View(math_class)

Wrangle

The data set is already separated into 7 different variables. The variables are the student, teacher, gender, ethnicity, free or reduced lunch status, test score, and the type of learning environment. As is, the data set includes 217 observations of 7 variables.

The first thing we are going to do is omit any empty data. This will just be easier for us when it comes to analyzing data.

math_class <- na.omit(math_class)

Now, let’s just view that data to make sure that we did in fact omit empty data.

glimpse(math_class)
Rows: 216
Columns: 7
$ Student        <dbl> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, …
$ Teacher        <chr> "Ruger", "Ruger", "Ruger", "Ruger", "Ruger", "Ruger", "…
$ Gender         <chr> "Female", "Female", "Female", "Female", "Male", "Male",…
$ Ethnic         <chr> "Asian", "Hispanic", "African-American", "Asian", "Hisp…
$ Freereduce     <chr> "Free lunch", "Paid lunch", "Free lunch", "Paid lunch",…
$ TestScore      <dbl> 76, 56, 34, 59, 73, 58, 62, 40, 82, 78, 64, 68, 39, 48,…
$ TypeofTeaching <chr> "Ruger_Smith", "Ruger_Smith", "Ruger_Smith", "Ruger_Smi…

By using the glimpse() function to view the improved data set, the number of observations went from 217 to 216. So, there was only one observation that had empty data, but now it will no longer be apart of our data.

Next, I will create two objects. One object will be just the female students and the other just be the male students. This will be beneficial for when I start analyzing the data. I will also use the head and tail functions, respectively, as ways to view the new objects.

female_students <- math_class |>
  filter(Gender=="Female")

head(female_students)
# A tibble: 6 × 7
  Student Teacher Gender Ethnic           Freereduce TestScore TypeofTeaching
    <dbl> <chr>   <chr>  <chr>            <chr>          <dbl> <chr>         
1       1 Ruger   Female Asian            Free lunch        76 Ruger_Smith   
2       2 Ruger   Female Hispanic         Paid lunch        56 Ruger_Smith   
3       3 Ruger   Female African-American Free lunch        34 Ruger_Smith   
4       4 Ruger   Female Asian            Paid lunch        59 Ruger_Smith   
5       7 Ruger   Female African-American Paid lunch        62 Ruger_Smith   
6       9 Ruger   Female African-American Free lunch        82 Ruger_Smith   
male_students <- math_class |>
  filter(Gender=="Male")

tail(male_students)
# A tibble: 6 × 7
  Student Teacher Gender Ethnic           Freereduce TestScore TypeofTeaching
    <dbl> <chr>   <chr>  <chr>            <chr>          <dbl> <chr>         
1     208 Wesson  Male   Caucasian        Paid lunch        75 Wesson        
2     211 Wesson  Male   Caucasian        Paid lunch        79 Wesson        
3     212 Wesson  Male   African-American Paid lunch        56 Wesson        
4     213 Wesson  Male   Hispanic         Free lunch        94 Wesson        
5     214 Wesson  Male   Hispanic         Paid lunch        91 Wesson        
6     216 Wesson  Male   Hispanic         Paid lunch        57 Wesson        

I will do the same thing but focus on paid and free lunch to see if that has any effect on student test scores later on in the analysis.

free_lunch <- math_class |>
  filter(Freereduce == "Free lunch")

free_lunch
# A tibble: 104 × 7
   Student Teacher Gender Ethnic           Freereduce TestScore TypeofTeaching
     <dbl> <chr>   <chr>  <chr>            <chr>          <dbl> <chr>         
 1       1 Ruger   Female Asian            Free lunch        76 Ruger_Smith   
 2       3 Ruger   Female African-American Free lunch        34 Ruger_Smith   
 3       5 Ruger   Male   Hispanic         Free lunch        73 Ruger_Smith   
 4       8 Ruger   Male   Hispanic         Free lunch        40 Ruger_Smith   
 5       9 Ruger   Female African-American Free lunch        82 Ruger_Smith   
 6      13 Ruger   Male   Hispanic         Free lunch        39 Ruger_Smith   
 7      14 Ruger   Male   Caucasian        Free lunch        48 Ruger_Smith   
 8      15 Ruger   Female Caucasian        Free lunch        66 Ruger_Smith   
 9      16 Ruger   Male   Asian            Free lunch        68 Ruger_Smith   
10      18 Ruger   Female African-American Free lunch        60 Ruger_Smith   
# ℹ 94 more rows
paid_lunch <- math_class |>
  filter(Freereduce == "Paid lunch")

paid_lunch
# A tibble: 112 × 7
   Student Teacher Gender Ethnic           Freereduce TestScore TypeofTeaching
     <dbl> <chr>   <chr>  <chr>            <chr>          <dbl> <chr>         
 1       2 Ruger   Female Hispanic         Paid lunch        56 Ruger_Smith   
 2       4 Ruger   Female Asian            Paid lunch        59 Ruger_Smith   
 3       6 Ruger   Male   Caucasian        Paid lunch        58 Ruger_Smith   
 4       7 Ruger   Female African-American Paid lunch        62 Ruger_Smith   
 5      10 Ruger   Male   African-American Paid lunch        78 Ruger_Smith   
 6      11 Ruger   Male   African-American Paid lunch        64 Ruger_Smith   
 7      12 Ruger   Female Asian            Paid lunch        68 Ruger_Smith   
 8      17 Ruger   Female Hispanic         Paid lunch        72 Ruger_Smith   
 9      20 Ruger   Male   Asian            Paid lunch        34 Ruger_Smith   
10      21 Ruger   Female Hispanic         Paid lunch        30 Ruger_Smith   
# ℹ 102 more rows

Now, I will do something similar, but this time I am going to create a new object that will filter students by ethnicity.

AAstudents <- math_class |>
  filter(Ethnic == "African-American")

AAstudents
# A tibble: 52 × 7
   Student Teacher Gender Ethnic           Freereduce TestScore TypeofTeaching
     <dbl> <chr>   <chr>  <chr>            <chr>          <dbl> <chr>         
 1       3 Ruger   Female African-American Free lunch        34 Ruger_Smith   
 2       7 Ruger   Female African-American Paid lunch        62 Ruger_Smith   
 3       9 Ruger   Female African-American Free lunch        82 Ruger_Smith   
 4      10 Ruger   Male   African-American Paid lunch        78 Ruger_Smith   
 5      11 Ruger   Male   African-American Paid lunch        64 Ruger_Smith   
 6      18 Ruger   Female African-American Free lunch        60 Ruger_Smith   
 7      24 Ruger   Male   African-American Free lunch        44 Ruger_Smith   
 8      26 Ruger   Male   African-American Free lunch        67 Ruger_Smith   
 9      35 Ruger   Female African-American Paid lunch        39 Ruger_Smith   
10      40 Ruger   Female African-American Paid lunch        74 Ruger_Smith   
# ℹ 42 more rows
Hstudents <- math_class |>
  filter(Ethnic == "Hispanic")

Hstudents
# A tibble: 66 × 7
   Student Teacher Gender Ethnic   Freereduce TestScore TypeofTeaching
     <dbl> <chr>   <chr>  <chr>    <chr>          <dbl> <chr>         
 1       2 Ruger   Female Hispanic Paid lunch        56 Ruger_Smith   
 2       5 Ruger   Male   Hispanic Free lunch        73 Ruger_Smith   
 3       8 Ruger   Male   Hispanic Free lunch        40 Ruger_Smith   
 4      13 Ruger   Male   Hispanic Free lunch        39 Ruger_Smith   
 5      17 Ruger   Female Hispanic Paid lunch        72 Ruger_Smith   
 6      21 Ruger   Female Hispanic Paid lunch        30 Ruger_Smith   
 7      23 Ruger   Female Hispanic Paid lunch        73 Ruger_Smith   
 8      27 Ruger   Female Hispanic Paid lunch        37 Ruger_Smith   
 9      29 Ruger   Male   Hispanic Paid lunch        32 Ruger_Smith   
10      32 Ruger   Male   Hispanic Free lunch        58 Ruger_Smith   
# ℹ 56 more rows

The objects that I just created will help me when I am answering my research question about student success depending on if their teacher shares their ethnicity or culture.

Analyze - Descriptive Statistics Analysis

Research Question 1 Data Analysis:

Just as a reminder, my first research question is: Do students perform better under direct instruction or in a learning environment where they are required to discover and explore the material on their own?

The first thing that I am going to do is create scatter plots to have a visual to compare data.

ggplot(data = math_class, mapping = aes(x = Teacher, y = TestScore)) +
  geom_point(mapping = aes(color = TypeofTeaching)) 

ggplot(data = math_class, mapping = aes(x = Student, y = TestScore)) +
  geom_point(mapping = aes(color = TypeofTeaching)) 

From the two scatter plots shown, there are a few points the could be made:

  • The test scores from Ms. Ruger’s class are lower than the test scores from Ms. Smith’s and Ms. Wesson’s class.

  • In general, the test scores of the students from Ms. Wesson’s direct instruction are higher than the test scores from Ms. Smith’s and Ms. Ruger’s class.

  • An assumption can be made that Ms. Ruger’s test scores are lower than Ms. Smith’s and Ms. Wesson’s class because Ms. Ruger has less experience teaching than the other two teachers.

The next thing that I am going to do for analysis on this question is get a specific count of the number of students in each of he teachers’ classes than earned a 70% or higher. The reason I am choosing to select 70% or higher is because generally 70% and above is a passing grade. This way we can see how many students passed the test in each class.

rugerpassing <- math_class |>
  filter(Teacher == "Ruger" & TestScore >= 70)

nrow(rugerpassing)
[1] 15
smithpassing <- math_class |>
  filter(Teacher == "Smith" & TestScore >= 70)

nrow(smithpassing)
[1] 33
wessonpassing <- math_class |>
  filter(Teacher == "Wesson" & TestScore >= 70)

nrow(wessonpassing)
[1] 39

Using the nrow() function, allowed me to get the exact number of rows in each new object of the passing scores in each of the teachers’ classes. From doing that, I was able to see that Wesson had the highest total number of student passing the test with 39 students. Smith was second with 33 students and Ruger was last with 15 students. From this analysis, it is evident that Ms. Wesson’s direct instruction was the most the more efficient style of teaching as more students passed the test with a 70% or higher. Let’s take this a step further and find the exact percentages of each class that are passing to see if this is still true.

ruger <- math_class |>
  filter(Teacher == "Ruger")

nrow(ruger)
[1] 71
smith <- math_class |>
  filter(Teacher == "Smith")

nrow(smith)
[1] 69
wesson <- math_class |>
  filter(Teacher == "Wesson")

nrow(wesson)
[1] 76

So, I just found the total number of each students in each class, this will help us analyze this data a little bit more in depth. From this, I can conclude:

  • 15/71 or about 21% of Ruger’s class passed the test.

  • 33/69 or about 48% of Smith’s class passed the test.

  • 39/76 or about 51% of Wesson’s class passed the test.

Research Question 2 Data Analysis:

Just as a reminder, my second research question is: Do students learn better with a teacher who is the same ethnicity as them or has a better understanding of their culture?

For this research question, I want to look at the test scores from the teachers who shared the same ethnicity and/or has an understanding of their students cultural background.

ggplot(Hstudents) +
  geom_point(aes(x = Student, y = TestScore, 
                 color = Teacher)) +
  facet_wrap(~Teacher)

ggplot(AAstudents) +
  geom_point(aes(x = Student, y = TestScore, 
                 color = Teacher)) +
  facet_wrap(~Teacher)

From these two scatter plots, we can see if the students did better with the different teachers based on their test scores. From these scatter plots, we can make the following observations:

  • The Hispanic students who had Ms. Smith (Spanish teacher before math teacher) had scores that were pretty spread out. The one thing that can be noted is that the Hispanic students who had Ms. Smith never earned below a 40 test score. Also, it appears that the Hispanic student who earned the highest grade was in Ms. Smith’s class.

  • The African-American students who had Ms. Ruger (African-American teacher) performed worse than the African-American students in the other teachers’ classes. Ms. Ruger had more African-American students fail the test than the other two teachers. The majority of the African-American students in Ms. Ruger’s class earned less than a 60 on the test, and the other two teachers’ classes the majority of the African-American students earned above a 60 on the test.

For the sake of numbers, I will use the nrow() function to get the number of students in each class that earned a passing grade (70% or above).

smithHstudentspassing <- Hstudents |>
  filter(Teacher == "Smith" & TestScore >= 70)
nrow(smithHstudentspassing)
[1] 9
rugerHstudentspassing <- Hstudents |>
  filter(Teacher == "Ruger" & TestScore >= 70)
nrow(rugerHstudentspassing)
[1] 8
wessonHstudentspassing <- Hstudents |>
  filter(Teacher == "Wesson" & TestScore >= 70)
nrow(wessonHstudentspassing)
[1] 12

Ms. Smith’s students are the focus here since Ms. Smith has a Spanish background. The number of Hispanic students passing Ms. Smith’s test is 9. Ms. Wesson has more Hispanic students passing the test even though she does not have a Hispanic background.

smithAAstudentspassing <- AAstudents |>
  filter(Teacher == "Smith" & TestScore >= 70)
nrow(smithAAstudentspassing)
[1] 8
rugerAAstudentspassing <- AAstudents |>
  filter(Teacher == "Ruger" & TestScore >= 70)
nrow(rugerAAstudentspassing)
[1] 3
wessonAAstudentspassing <- AAstudents |>
  filter(Teacher == "Wesson" & TestScore >= 70)
nrow(wessonAAstudentspassing)
[1] 11

Based on these numbers, Ms. Ruger, the African-American teacher, has 3 African-American students passing the test. Both, Ms. Wesson and Ms. Smith had more African-American students pass than Ms. Ruger.

Research Question 3 Data Analysis:

Just as a reminder, my third research question is: Does the gender of the student have any impact on their test scores?

The first thing that I will do is graph visuals of the students genders and their test scores.

ggplot(math_class) +
  geom_point(aes(x = Student, y = TestScore, 
                 color = Gender)) +
  facet_wrap(~Gender)

ggplot(male_students) +
  geom_histogram(aes(x = TestScore), binwidth = 5, color = "green")

ggplot(female_students) +
  geom_histogram(aes(x = TestScore), binwidth = 5, color = "hotpink")

From these three graphs, I am able to make the following observations:

  • From the scatter plots, the test scores from both genders have about the same spread. They both have really low scores and really high scores.

  • The male students have a bell curve shape with on the histogram. Some might say this is normal distribution. The two highest bins are at 50 and 60 for the test scores. About the same number of students who earned a really low score, earned a high score.

  • The female students’ histogram is left-skewed. The two highest bins are at 70 and 85 for the test scores. There is a dip or a low-point in the histogram at 45. Majority of the female students earned a 50 or higher.

  • From both the scatter plots and the histograms, it appears the females generally performed better than the males.

Research Question 4 Data Analysis:

Just as a reminder, my fourth research question is: Does if the student has free or reduced lunch have any impact on their test scores?

First, let’s find a total count of the students on free lunch and the students who pay for lunch.

nrow(free_lunch)
[1] 104
nrow(paid_lunch)
[1] 112

From this, we can see that 8 more students pay for their lunch than have free lunch. Now, let’s look into how many students who have free lunch passed the test (70 or higher), and how many who have paid lunch pass the test.

freepassed <- free_lunch |>
  filter(TestScore >= 70)
nrow(freepassed)
[1] 43
paidpassed <- paid_lunch |>
  filter(TestScore >= 70)
nrow(paidpassed)
[1] 44

From this, we can see that 43/104 or about 41% of students who have free lunch passed the test. In addition, 44/112 or about 39% of students who pay for their lunch passed the test. This shows that about the same number of students passed the test.

ggplot(math_class) +
  geom_point(aes(x = Student, y = TestScore, 
                 color = Freereduce))

This scatter plot provides as a visual to confirm that the students performed about the same despite being on free or reduced lunch or not.

Communication

Overall, this data did suffice in answering my research questions. I will dive into each of my findings for the research questions below.

Research Question 1:

The data shows that students who were in the direct instruction environment performed better on the assessment than the students who were in discovery learning setting. This could be for a variety of factors like the number of years Ms. Wesson has been a teacher, the type of learners the students are, the environment and culture of the classroom, etc. Although I did find that the student’s in the direct instruction environment with Ms. Wesson, the students in Ms. Smith’s discovery learning environment did not do much worse than Ms. Wesson’s environment, and Ms. Ruger’s data really brought down the data for discovery learning. Some ways this research could have improved was having data from the two different types of teaching from teachers who have taught the same amount of time. I wonder that if the teachers had the same years of experience if we would see a difference in the data based on teaching types.

Research Question 2:

From my data analysis on this research question, I found that having a teacher with the same ethnic background or at least knowledge on a student’s ethic background did not make a big impact. The students performed better with Ms. Wesson despite their ethnicity and her ethnicity. I think to improve on this research question, more data needs to be collected. There needs to be more teachers with a more variety of ethnic backgrounds, and more test scores need to be collected over longer periods of time.

Research Question 3:

From my analysis on male or female students performing better in math, the students gender did not have a big impact on their test scores. In general, female students performed just the slightest bit better. This is because more male students scored lower than female students. To continue research on this question, I wonder if female students had better test scores because they were being taught by female teachers. I would like to have more data collected where male math teachers are involved, as well.

Research Question 4:

My analysis on free and reduced lunch showed that if students were on free or reduced lunch or if they paid did not matter. Students performed about the same despite if they had to pay for lunch or not. I figured that this would have little impact on students’ test scores. I think this type of research question would require a completely different data set. To me, it might be more of a network analysis question and be involved in a research setting where someone is researching if a student’s home life or home environment outside of school impact on how they perform for school assessments.

Overall, I do think the teaching style of a teacher does effect whether or not a student or class performs well on an assessment. A teacher needs to learn about their students and determine what is best for them. This could be analyzing what type of learners they are like visual or hands on. Also, I think the subject of the class plays a big role into what type of teaching style works best. Math is a lot of modeling and using formulas, so having direct instruction helps many students who are learning math.

Your data product should demonstrate your ability to clearly and effectively communicate the most important and most useful findings. Specifically, your data product should:

Reference:

Das, S. (2022, February 23). Student's math score for different teaching style. Kaggle. https://www.kaggle.com/datasets/soumyadiptadas/students-math-score-for-different-teaching-style/