Archive / Lecture
Research methods / Quantitative research / Descriptive statistics / Inferential statistics

Can the candies in my fist tell me about the whole box? — Foundations of descriptive and inferential statistics

What does it take to speak about the whole box (the population) from a few candies drawn with your fist (a sample)? A 77-slide lecture that has you compute the mode · median · mean and variance · standard deviation directly in R, and that carries on to the trap of the mean and the starting point of inferential statistics, which estimates a population from a sample.

Graduate students who compute means in R but still struggle to explain what changes when a sample's numbers are used to speak about a population · Hallym University Media School · Graduate Communication Research Methods II · November 10, 2026 · 2026.11.10

 The ‘Population and sample – candy-drawing simulator’ slide: under the question “What I drew with my fist came out as nothing but strawberry chocolates – but the box had an even mix?”, a candy-drawing simulator screen, a fist and a few candies, and a photo of the candy box (population)

What this project covers

  • Distinguish population · sample · parameter · statistic, and explain what descriptive and inferential statistics each do.
  • Compute the mode · median · mean and variance · standard deviation in R, and examine the trap of the mean, in which extreme values pull the mean toward them.
  • Understand why the standard error and confidence intervals are needed when estimating a population from sample statistics.

Presentation outline

Expand the full outline
  1. Read the complete lecture
  2. 01. 10W-1
  3. Supporting text from the original screen
  4. 02. Population and sample – a Halloween random candy and chocolate box
  5. Supporting text from the original screen
  6. 03. Let us grab some candy with our fists.
  7. Supporting text from the original screen
  8. 04. Let us grab some candy with our fists.
  9. Supporting text from the original screen
  10. 05. Population and sample
  11. Supporting text from the original screen
  12. 06. Descriptive statistics and inferential statistics
  13. Supporting text from the original screen
  14. 07. What is descriptive statistics?
  15. Supporting text from the original screen
  16. 08. Descriptive statistics
  17. Supporting text from the original screen
  18. 09. Descriptive statistics
  19. Supporting text from the original screen
  20. 10. Population and sample – candy-drawing simulator
  21. Supporting text from the original screen
  22. 11. Descriptive statistics
  23. Supporting text from the original screen
  24. 12. Types and interpretation of descriptive statistics – what to use for a ‘one-line summary’
  25. Supporting text from the original screen
  26. 13. Types and interpretation of descriptive statistics
  27. Supporting text from the original screen
  28. 14. Types and interpretation of descriptive statistics
  29. Supporting text from the original screen
  30. 15. Why R?
  31. Supporting text from the original screen
  32. 16. Installing R & R-Studio
  33. Supporting text from the original screen
  34. 17. Installing R & R-Studio
  35. Supporting text from the original screen
  36. 18. Installing R & R-Studio
  37. Supporting text from the original screen
  38. 19. Installing R & R-Studio
  39. Supporting text from the original screen
  40. 20. Installing R & R-Studio
  41. Supporting text from the original screen
  42. 21. Installing R & R-Studio
  43. Supporting text from the original screen
  44. 22. Running R-Studio
  45. Supporting text from the original screen
  46. 23. Running R-Studio
  47. Supporting text from the original screen
  48. 24. Running R-Studio
  49. Supporting text from the original screen
  50. 25. Running R-Studio: Ctrl+C / Ctrl+V the following code as is
  51. Supporting text from the original screen
  52. 26. Running R-Studio: Ctrl+C / Ctrl+V the following code as is
  53. Supporting text from the original screen
  54. 27. Example data for descriptive statistics
  55. Supporting text from the original screen
  56. 28. Types and interpretation of descriptive statistics - mode
  57. Supporting text from the original screen
  58. 29. AI & R Exercise - Mode
  59. Supporting text from the original screen
  60. 30. Example data for descriptive statistics – the answer for the mode
  61. Supporting text from the original screen
  62. 31. Types and interpretation of descriptive statistics - median
  63. Supporting text from the original screen
  64. 32. AI & R Exercise - Median
  65. Supporting text from the original screen
  66. 33. Example data for descriptive statistics – the answer for the median
  67. Supporting text from the original screen
  68. 34. Types and interpretation of descriptive statistics - mean
  69. Supporting text from the original screen
  70. 35. AI & R Exercise - Mean
  71. Supporting text from the original screen
  72. 36. Example data for descriptive statistics – the answer for the mean value
  73. Supporting text from the original screen
  74. 37. The trap of the mean
  75. Supporting text from the original screen
  76. 38. Example data for descriptive statistics – the problem with the mean value: Outlier
  77. Supporting text from the original screen
  78. 39. R-Studio example 2: Ctrl+C / Ctrl+V the following code as is
  79. Supporting text from the original screen
  80. 40. R-Studio example 2: salary
  81. Supporting text from the original screen
  82. 41. AI & R Exercise - Mean
  83. Supporting text from the original screen
  84. 42. R-Studio example 2: the answer for the average salary
  85. Supporting text from the original screen
  86. 43. The trap of the mean
  87. Supporting text from the original screen
  88. 44. Median income in Korea
  89. Supporting text from the original screen
  90. 45. Trends in Korea's standard median income (by household size)
  91. Supporting text from the original screen
  92. 46. Types and interpretation of descriptive statistics
  93. Supporting text from the original screen
  94. 47. Types and interpretation of descriptive statistics
  95. Supporting text from the original screen
  96. 48. Types and interpretation of descriptive statistics
  97. Supporting text from the original screen
  98. 49. Types and interpretation of descriptive statistics
  99. Supporting text from the original screen
  100. 50. R-Studio example 2: Ctrl+C / Ctrl+V the following code as is
  101. Supporting text from the original screen
  102. 51. R-Studio example 2: distribution of the average salary with a student earning 1 billion won mixed in
  103. Supporting text from the original screen
  104. 52. R-Studio example 2: Ctrl+C / Ctrl+V the following code as is
  105. Supporting text from the original screen
  106. 53. R-Studio example 2: normal distribution plot of students with evenly spread salaries
  107. Supporting text from the original screen
  108. 54. Summary
  109. Supporting text from the original screen
  110. 55. What is inferential statistics?
  111. Supporting text from the original screen
  112. 56. What is inferential statistics?
  113. Supporting text from the original screen
  114. 57. Population and sample – how many strawberry chocolates are there in the whole box?
  115. Supporting text from the original screen
  116. 58. Let us grab some candy with our fists.
  117. Supporting text from the original screen
  118. 59. RQ. How many strawberry chocolate candies are there in total among all the original candies?
  119. Supporting text from the original screen
  120. 60. RQ. How many strawberry chocolate candies are there in total among all the original candies?
  121. Supporting text from the original screen
  122. 61. Let us count only the candies in my hand (never mind the original box)
  123. Supporting text from the original screen
  124. 62. Let us count only the candies in my hand (never mind the original box)
  125. Supporting text from the original screen
  126. 63. Candy-drawing simulator – try drawing on the web
  127. Supporting text from the original screen
  128. 64. Exercise. Let us count the number of candies and the strawberry chocolates with the candy-drawing simulator
  129. Supporting text from the original screen
  130. 65. RQ. How many strawberry chocolate candies are there in total among all the original candies?
  131. Supporting text from the original screen
  132. 66. RQ. How many strawberry chocolate candies are there in total among all the original candies?
  133. Supporting text from the original screen
  134. 67. RQ. How many strawberry chocolate candies are there in total among all the original candies?
  135. Supporting text from the original screen
  136. 68. Finding the descriptive statistics of the strawberry chocolates
  137. Supporting text from the original screen
  138. 69. Finding the descriptive statistics of the strawberry chocolates – R output
  139. Supporting text from the original screen
  140. 70. Inferential statistics: estimating the number of strawberry chocolates in the whole box
  141. Supporting text from the original screen
  142. 71. Inferential statistics: estimating the number of strawberry chocolates in the whole box
  143. Supporting text from the original screen
  144. 72. The beginning of inferential statistics: sampling and estimation
  145. Supporting text from the original screen
  146. 73. Inferential statistics: estimating the population (the candy box) from candy sample statistics
  147. Supporting text from the original screen
  148. 74. Premise 1 of inferential statistics: the population cannot be known ‘exactly’
  149. Supporting text from the original screen
  150. 75. Premise 2 of inferential statistics: there is always a chance of being wrong
  151. Supporting text from the original screen
  152. 76. Premise 3 of inferential statistics: a ‘standard error’ exists (a number that shows how wrong I am)
  153. Supporting text from the original screen
  154. 77. Summary of the basics of inferential statistics
  155. Supporting text from the original screen