2026-01-02

Introduction

  • This presentation introduces the Histogram Mean App
  • The app is built using Shiny
  • It helps users understand the concept of mean interactively

The Problem

  • Beginners often struggle to understand statistical measures like the mean
  • Static plots do not clearly show how changing values affects data
  • There is a need for an interactive learning tool

The Solution

  • A Shiny application that:
    • Displays a histogram of Galton’s child height data
    • Allows users to guess the mean using a slider
    • Shows Mean Squared Error (MSE) dynamically
  • Learning happens through interaction

How It Works (R Code Example)

## Warning: package 'UsingR' was built under R version 4.5.2
## Loading required package: MASS
## Loading required package: HistData
## Warning: package 'HistData' was built under R version 4.5.2
## Loading required package: Hmisc
## Warning: package 'Hmisc' was built under R version 4.5.2
## 
## Attaching package: 'Hmisc'
## The following objects are masked from 'package:base':
## 
##     format.pval, units

Calculate the true mean

## [1] 68.08847