1 Introduction

Early childhood education is expected to enable children to form some basic social and cognitive skills which they will need in the forthcoming years in addition to helping them adapt to social life (Demetriou et al., 2017). One of these basic skills is mathematical reasoning. Henderson et al. (2001) define mathematical reasoning as the mathematical ways of thinking that is required to solve problems in any field. Reasoning skill is considered to be the foundation of mathematical competence and lack of it can cause disruptions in mathematics education (Keazer & Menon, 2016). Due to the fact that reasoning constitutes the basis of all rules and operations in mathematics, mathematical reasoning skill is considered to be the building block of mathematics (Umay, 2003; Umay & Kaf, 2005).

It is generally expected that skills such as comprehending the connection between events, reasoning and deduction to be shaped during early childhood period (Altıparmak & Öziş, 2005). For this reason, early childhood mathematics programs should introduce rich experiences with regards to these skills to children. Helping children to understand that their arguments always need to have a reason through these experiences is very important for developing the reasoning skills (National Council of Teacher of Mathematics [NCTM], 2000). Moreover, these experiences hold importance in terms of children developing a positive attitude towards mathematics once they encounter formal mathematical education in the coming years (Aktaş Arnas, 2012; Erdoğan & Baran, 2005; Henniger, 1987). Therefore, early childhood mathematics programs need to make the mathematics education fun, beneficial, easy and useful. Attention needs to be paid that the content of the prepared programs are rich and they provide suitable environment and materials for children to discover the basic concepts (Bağcı & İvrendi, 2016).

Using mathematics or reasoning about mathematical situations are closely related to mathematical knowledge and being familiar with the mathematical concepts (Mullis et al., 2005). Individuals who understand and implement mathematics will have important opportunities and options on shaping their futures (NCTM, 2000). Despite the fact that mathematics is a field of science based on numbers and measurement, its priority is not only formulate the numbers and perform calculations based on memorization. At the same time, mathematics is a way of thinking and questioning (Paulos, 1995). In early childhood, children need support to formulate and solve problems as well as thinking on reasoning strategies. Whittaker (2014) states that children begin to develop their reasoning skills from early age and that these skills constitute effective support for their later development and learning. Children with mathematical reasoning skills will make better sense of the world they live in and the mathematical ideas with which they are presented. By this manner, children will gradually become more competent in understanding and analyzing mathematics around them (National Research Council, 2009). In order to develop the reasoning skills of young children, it is necessary to highlight the different characteristics of the objects and to encourage them to ask various questions (Keazer & Menon, 2016; Rule, 2007). When teachers provide the children an environment rich with stimuli and promote the interaction between children, they will also support their reasoning and problem-solving skills (Henningsen & Stein, 1997; Whittaker, 2014).

Coding activities are efficient instruments that teachers can use in order to enrich the learning experience of children. Recently, there is a growing interest in the field of early childhood education with regards to digital competence area, including coding skills. Programming, in other words coding, which improves reasoning skills and thus is likely to support mathematical reasoning skills, has become a popular field which is widely taught in schools in recent years (Heikkilä, 2020; Toh et al., 2016). Coding is an activity that combines the concepts of problem solving and reasoning in its core because the program to be written is a problem to be solved by using the computer as a tool. Due to this, coding activities provide students with a highly sustainable engagement in problem solving and reasoning (Fox & Farmer, 2011). By virtue of coding education, children are provided with an opportunity to transform their ideas into products. Consequently, children obtain the necessary motivation to learn about computer science more in detail. Moreover, children are able to create solutions to existing problems by using coding in addition to their creativity and imagination (Çankaya et al., 2017).

Mathematics activities that are prepared for children in early childhood should have qualities to enable them to learn by experience and to discover mathematics by way of trial and error and games (Aktaş Arnas, 2012; Perry & Dockett, 2008). Accordingly, coding activities are tools which enable children to learn skills such as problem solving and reasoning through experience. In addition, coding activities create a learning environment that encourages children to interact with each other, to learn by playing and to play while learning (Bers, 2008a; Resnick, 2003). Children can comprehend some of the abstract rules and concepts in the fields of science and mathematics via the products they create by coding (Morgado et al., 2010). When all of these aspects are considered as a whole, it can be said that mathematical reasoning skill and coding education contribute to each other. Previous studies showed that coding education is a tool with positive influence on children especially in terms of high cognitive skills including mathematical skills, reasoning and problem solving (Bers, 2008b; Clements et al., 2001; Flannery & Bers, 2013; Psycharis & Kallia, 2017; Toh et al., 2016). Although limited in number, there are studies showing that coding education improves children's mathematical reasoning skills as well (Olteanu, 2020; Psycharis & Kallia, 2017). Nonetheless, these studies were conducted with middle school and high school students. In the literature search, a study investigating the effect of coding activities on mathematical reasoning skills of young children was not found. On the other hand, when the studies conducted in the respective area are evaluated, it was seen that the coding activities and instruments open the way for young children to improving their skills regarding scientific and mathematical concepts and problem solving as well as their social skills (Fessakis et al., 2013; Highfield, 2010; Turan & Aydoğdu, 2020). The present study was conducted to investigate the effect of coding activities on mathematical reasoning skills in preschool children. In the study, following questions were asked within the scope of this aim:

  1. 1.

    Is there a significant difference between the mathematical reasoning pre-test scores of the experimental and control groups?

  2. 2.

    Is there a significant difference between the mathematical reasoning post-test scores of the experimental and control groups?

2 Method

2.1 Participants

Participants consisted of 29 children attending a public kindergarten in Cukurova district in Adana, Turkey. Cukurova is one of the four central districts of Adana city. There are 39 public kindergartens in this district. For sampling, firstly, the public kindergartens in the Cukurova were listed and one was chosen randomly. Afterwards, one of the 4 classes in the chosen kindergarten was randomly assigned as the experimental group and the other as the control group. There were 17 children (9 female, 8 male; mean age: 63 months; age range: 58–68 months) in the experimental group, whereas there were 12 children (6 female, 6 male; mean age: 62 months; age range: 58–68 months) in the control group. Both groups were composed of children with middle and lower class background. Majority of the parents were high-school or university graduates. Turkish National Preschool Program was being implemented in the kindergarten where the sample was created.

2.2 Data collection tools

As data collection tools, a demographical information form created by the researchers was used to collect demographical information of children and their parents, and “Evaluation Instrument for the Early Mathematical Reasoning Skills” by Ergül (2014) was used to assess the mathematical reasoning skills of children.

Evaluation Instrument for the Early Mathematical Reasoning Skills is comprised of 40 questions. 21 of the questions in the evaluation instrument are created to evaluate the measurement skill, while 19 are created to evaluate data analysis and probability skills. In the said evaluation instrument, there are 21 questions regarding the inductive reasoning skills and 19 questions regarding deductive reasoning skills. 9 of the questions are administered to children by using various materials such as ropes of different lengths, shapes made of felt, ping-pong balls, boxes of different volumes; 28 of the questions are administered by using pictures and 3 questions are administered verbally, without using any materials. Children's responses are recorded to grading key. Regarding each item in the Evaluation Instrument for the Early Mathematical Reasoning Skills, correct and complete explanations are scored "5", correct but incomplete explanations are scored "4", no explanation or unrelated explanations are scored “3”, false explanations are scored “2”, and meaningless explanations or lack of explanations are scored “1” and no interest is scored as “0”. The lowest score that can be obtained in the evaluation tool 0 is and the highest score is 200.

Results of the item analysis, which was conducted by Ergül (2014) with the purpose of assessing the proficiency of the evaluation tool in differentiating children in terms of the measured characteristics, showed that the evaluation tool is qualified in distinguishing children with low and high level mathematical reasoning skills. Krippendorff Alfa coefficients of the evaluation tool were examined and it was seen that compatibility average among the coders had been an acceptable value of 0.91 for all questions in the tool. Test–retest reliability of the evaluation tool had been above 0.98 for all fields. In line with this information, it was stated that the Evaluation Instrument for the Early Mathematical Reasoning Skills was a valid and reliable assessment tool (Ergül, 2014).

2.3 Data collection

Coding education program

Coding education program has been prepared by the researchers with the purpose of supporting mathematical reasoning skills of children. In the first phase of the program development, a literature review was performed and target skills were determined. Afterwards, 20 mathematics activities including the determined target skills were planned. Expert opinions regarding the prepared program were obtained from 5 academicians working in the field of early childhood mathematics education. The final version of the program was created by organizing activities in line with the opinions and recommendations of the experts. Activities included in the Coding Education Program are given in Table 1.

Table 1 Coding activities

The first four activities of the coding education program are composed of activities that are created by implementing the unplugged coding method. It is aimed that children are introduced to programming via these activities to learn basic components of programming. The purpose is that children can implement programming strategies on the material and use more advanced languages after completing these activities. In the following activities, a programmable toy robot named Bee-Bot, one of the tangible programming tools, was used. This toy robot has been chosen for its ease of use and appeal to young children.

Examples of activities in the Coding Education Program are given in Table 2. Each activity of the coding education addresses a different mathematical reasoning skill; and it was aimed that the children gain these skills through computer programming activities. All activities were implemented in the classroom (Figs. 1 and 2).

Table 2 Activity samples from Coding Education Program

Implementation of the evaluation instrument

As a first step in the data collection process, consent forms were received from the school where the implementation will take place and from the parents of children who will participate in the study. Afterwards, Evaluation Instrument for the Early Mathematical Reasoning Skills was applied to children both in the experimental and control groups as pre-test with individual interviews. Once the pre-test phase is completed, one of the researchers administered the Coding Education Program to children in experimental group. The program was conducted 4 days a week for 5 weeks. Children in the experimental group have continued their regular program when the coding activities were not being implemented. With the termination of the coding program, Evaluation Instrument for the Early Mathematical Reasoning Skills was implemented as post-test both for the experimental and control groups. It was originally planned to implement a retention test 4 weeks after the post-test phase, however, it was not possible to be administer the retention test due to interruption of face-to-face education because of Covid-19 pandemic.

2.4 Data analysis

Scores obtained in Evaluation Instrument for the Early Mathematical Reasoning Skills were analyzed according to descriptive statistics and normality test results. Shapiro–wilk Test result revealed that pre-test and post-test scores of experimental and control groups were normally distributed (p > 0.05). Therefore, parametric tests were used in the data analysis. An independent sample t-test was performed in order to determine whether there is a significant difference between the pre-test scores of experimental and control groups. Additionally, a paired sample t-test was conducted to determine whether there is a significant difference between the pre-test and post-test scores for both groups. Finally, a covariance analysis (ANCOVA) was performed in order to compare the post-test scores of both groups by controlling for pre-test scores.

2.5 Ethical issues

This study was carried out after obtaining the necessary legal permissions from Adana Provincial Directorate of National Education. Then, the necessary information about the research was given to the administrators and teachers of the school where the intervention study would be conducted, and permission was obtained for the research. Afterwards, a detailed information letter about the purpose of the research and the research process and a parent consent form were given to the parents. The children who will be included in the research were determined with the feedback from the parents. During the data collection process, the researcher took care that the implementation of evaluation instrument was not during an activity that the children enjoyed. The implementation was recessed in cases such as distraction of the children and their need for toilet and water.

3 Results

The present study was conducted to investigate the effect of coding activities on mathematical reasoning skills in preschool children. In this section, analysis results of pre-test and post-test scores are presented. Descriptive statistics for pre-test and post-test scores of experimental and control groups are given in Table 3.

Table 3 Descriptive statistics for the pre-test and post-test

The mean of experimental group was 103.17 in pre-test and 112.76 in post-test, while the mean of control group was 103.16 in pre-test, and 106.58 in post-test. An independent sample t-test was performed to determine whether there is a significant difference between the experimental and control groups in pre-test. T-test analysis results revealed that there is not a statistically significant difference between the pre-test scores of the two groups (t(27) = 0.003, p > 0.05). Therefore, it was determined that mathematical reasoning scores of both groups have been similar before the intervention. At the same time, paired sample t-test was performed to compare the pre-test and post-test scores of both groups. The results of the analysis revealed that there is a statistically significant difference between the pre-test and post-test scores of the experimental group (t(28) = -7.21, p = 0.001). A statistically significant difference was observed between the pre-test and post-test scores of the control group as well (t(11) = -3.09, p = 0.001). Therefore, results showed that scores of both groups have risen in the post-test in comparison to the pre-test scores. Thus, a covariance analysis (ANCOVA) was performed by controlling for the pre-test scores in order to compare the post-test scores of both groups. Table 4 demonstrates ANCOVA results for the effect of the coding activities on children’s mathematical reasoning skills.

Table 4 ANCOVA results for the effect of the coding activities on mathematical reasoning skills

ANCOVA analysis result showed that there is a statistically significant difference between the two groups in favor of the experimental group regarding the mathematical reasoning skills (F(1,26) = 18.827; p = 0.001; η2 = 0.420). It was determined that the effect size of the implemented intervention program on the mathematical reasoning skills of children was medium level.

4 Discussion

The findings of the study showed that there is not a significant difference between pre-test scores of experimental and control groups, while there is a significant difference in post-test results in favor of the experimental group. Therefore, it is seen that coding activities improve children’s early mathematical reasoning skills. Previous studies about computer programming, namely coding, generally focused on problem solving skills (Çiftçi & Bildiren, 2020; Dalton & Goodrum, 1991; Fessakis et al., 2013; Highfield et al., 2008; Nance, 2016; Yünkül et al., 2017), development of mathematical concepts (Highfield, 2010; Kazakoff et al., 2013; Kynigos, 1993) and cognitive thinking abilities (Bers et al., 2014; Taylor et al., 2010). Results of these studies showed that coding activities have a positive effect on children's problem-solving skills, mathematical concept development and cognitive thinking skills. For instance, Highfield et al. (2008) observed that activities performed with Bee-Bot support children's development regarding mathematical concepts such as transformation and measurement. Bers et al. (2014) determined that after implementation of a program including activities of making and programming robots with children, computational thinking skills of children are improved and that programmable toy robots can be beneficial in strengthening the prerequisites of learning. Kazakoff et al. (2013) assessed children's sequencing skills after an intensive one-week coding workshop and they found a positive improvement in sequencing skills of children in comparison with pre-workshop status. Taylor et al. (2010) determined that use of Scratch can improve complex computational thinking in children who are determined to have low level of mathematical understanding. As a result, it is seen that coding activities and tools are efficient in enabling children gain mathematical skills.

The findings of the current study also suggest that mathematical reasoning skills can be improved in early period. Similarly, previous studies (Bruder, 2016; Doğan & Tecimer, 2019; Göncü, 2020; Hallumoğlu, 2019) have shown that mathematical reasoning skills of young children can be supported via appropriate interventions. For example, Bruder (2016) found in a study conducted with children in primary school second grade that keeping an electronic mathematics diary improves students' ability of communicating their mathematical reasoning. Doğan and Tecimer (2019) concluded in an intervention study conducted with pre-school children that music activities that are supported with piano contribute to the mathematical reasoning skills of children. Göncü (2020) concluded that activities that improve estimation skills have a positive effect on children's reasoning skills. Hallumoğlu (2019) found that administering individual and cooperative mathematics activities that are supported with Montessori materials to pre-school children supports children’s mathematical reasoning skills. Results of the present study expanded the previous results showing that mathematical reasoning skills can be improved in early childhood via appropriate methods.

Coding Education Program that is used in the present study has been developed with the purpose of supporting children's mathematical reasoning skills by using their coding skills. The program include activities such as estimation, problem solving, creating graphs, measurement, testing and knowing the properties of shapes to support mathematical reasoning skills. Results that are obtained in the present study show that materials that are used in the prepared program contribute to children's mathematical reasoning skills. In line with the results of the present study, previous studies has shown that mathematical reasoning skill can be improved via various interventions including above-mentioned activities. For instance, Pilten (2008) found in a study conducted with fifth grade students that metacognition strategies that are used during the problem-solving process in mathematics class are efficient in improving students' mathematical reasoning skills. Kasmer and Kim (2011) showed that use of estimation has a positive effect on conceptual comprehension and mathematical reasoning skills in seventh grade students. Fisch et al. (2011) concluded in a study conducted with pre-school children that educative online games support the mathematical reasoning skills in children. Studies that are conducted with high-school students revealed that computer programming improves reasoning skills (Fox & Farmer, 2011; Psycharis & Kallia, 2017).

5 Conclusion

The present study was conducted with the purpose of investigating the effect of coding activities on mathematical reasoning skills in pre-school children. Study results show that there is not a statistically significant difference between the pre-test scores of experimental and control groups in terms of mathematical reasoning skills, whereas a statistically significant difference was found between the two groups in post-test scores with regards to reasoning skills. It is observed that mathematical reasoning scores of children in the experimental group has significantly increased in comparison with the children in the control group.

Findings of the present study show that coding activities that are performed with a programmable toy robot contribute to improvement of children's mathematical reasoning skills. This particular result suggests that it is possible to improve children’s mathematical reasoning skills via use of various materials and appropriate activities. Moreover, the results expand the scope of the previous findings stating that mathematical reasoning skills can be improved in early stages of childhood. As a result, coding activities and tools are appropriate tools that can be used for contributing to this development.

In the light of the findings of the study, we suggest that teachers prepare and implement in-class activities that aim to support children’s mathematical reasoning skills. In addition, parents may present their children digital applications that support children's reasoning skills while coding. In future studies, the effect of coding activities on children's mathematical reasoning skills can be investigated longitudinally. In addition, effects of intervention studies with regards to coding can be examined more in detail by using qualitative data.

This research have some limitations that should be mentioned about. First, this study focused on children at one preschool in Adana, Turkey. Future studies could focused on preschool children at different cultures. Secondly this study limited with only 29 children that attend preschool education. Different results may be obtained when similar interventions studies with various age groups and different sample size. Lastly, because of the interruption of face-to-face education due to the Covid-19 pandemic outbreak, a retention test could not be applied after the intervention program.

Fig. 1
figure 1

Child participating the hop scotch coding activity

Fig. 2
figure 2

Children participating the Noah's pudding of the neighbor and the neighborhood walk activities