Practical programming tasks for better understanding of expectation in computer science probability courses

Abstract The concept of expectation is fundamental in computer science education, especially for analyzing the time efficiency of algorithms. However, the gap between theoretical knowledge and practical application can make it challenging for students to appreciate the importance of expectation in real‐world contexts. This paper seeks to bridge that gap by highlighting the relationship between expectation and the population mean. To accomplish this, two experiments are presented, with tasks specifically designed to engage students in hands‐on learning experiences in practical problem‐solving. The first experiment focuses on the number of successes of the careless clerk, while the second experiment involves searching for all occurrences of a value in a randomly selected array, addressing the key question of the algorithm's expected time complexity. By presenting tasks that demonstrate the practical application of expectation, we aim to equip students with the tools needed to make informed decisions when designing and optimizing algorithms.

Authors

Institutions

Publication Details

Journal
Teaching Statistics
Published
2025-03-31
DOI
https://doi.org/10.1111/test.12402
Primary Topic
Statistics Education and Methodologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Practical programming tasks for better understanding of expectation in computer science probability courses

Yelena Stukalin, Sigal Levy, Niels C. Beck
Teaching Statistics
Statistics Education and Methodologies
article

Practical programming tasks for better understanding of expectation in computer science probability courses

Yelena Stukalin, Sigal Levy, Niels C. Beck
article en

Abstract

Abstract The concept of expectation is fundamental in computer science education, especially for analyzing the time efficiency of algorithms. However, the gap between theoretical knowledge and practical application can make it challenging for students to appreciate the importance of expectation in real‐world contexts. This paper seeks to bridge that gap by highlighting the relationship between expectation and the population mean. To accomplish this, two experiments are presented, with tasks specifically designed to engage students in hands‐on learning experiences in practical problem‐solving. The first experiment focuses on the number of successes of the careless clerk, while the second experiment involves searching for all occurrences of a value in a randomly selected array, addressing the key question of the algorithm's expected time complexity. By presenting tasks that demonstrate the practical application of expectation, we aim to equip students with the tools needed to make informed decisions when designing and optimizing algorithms.

Teaching StatisticsVol. 48(1)
Academic College of Tel Aviv-Yafo (IL)
Openalex Percentile: Top 94%
Statistics Education and Methodologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.