Skip to content

I've Committed Data

A blog about historical true crime, history, and data science in Australia

Menu
  • Welcome!
  • Warnings
  • Blog
  • GitHub
Menu

From Sticks to Data Science: A Lesson in Trigonometry

Posted on 12 March, 202312 November, 2023 by committed

I remember doing a fun experiment in my high school science class with Mr. Lees, where we calculated the height of trees using just a stick and its shadow. It was a simple yet fascinating experiment that taught us the concept of trigonometry and helped us understand how to measure heights of objects using their shadows.

The idea behind the experiment was simple. We needed a stick or rod, measuring tape or ruler, and a sunny area to create a clear shadow of the object whose height we wanted to measure. We placed the stick vertically into the ground at a distance from the tree, measured the length of the shadow cast by the stick, and measured the angle between the stick and the ground using a protractor or angle-finding app on our phones.

Using basic trigonometry, we then set up a proportion to solve for the height of the tree. The height of the tree divided by the length of its shadow was equal to the height of the stick divided by the length of its shadow. We then solved for the height of the tree using basic algebra.

This simple yet effective experiment was my introduction to trigonometry and helped me understand how math can be applied to real-world problems. It also sparked my interest in data science and analytics, which led me to pursue a career in the field.

Today, as a data scientist, I use similar concepts and techniques to solve complex business problems. I use data to identify patterns and trends, and I use statistics and machine learning algorithms to make predictions and recommendations.

Here is a Python script to calculate the height of a tree or anything using the shadow method

import math

# Input the length of the stick, the length of its shadow, and the length of the tree's shadow
stick_length = float(input("Enter the length of the stick (in meters): "))
stick_shadow_length = float(input("Enter the length of the stick's shadow (in meters): "))
tree_shadow_length = float(input("Enter the length of the tree's shadow (in meters): "))

# Calculate the angle between the stick and the ground in radians
angle_radians = math.atan(stick_length / stick_shadow_length)

# Calculate the height of the tree using the angle and the length of the tree's shadow
tree_height = tree_shadow_length * math.tan(angle_radians)

# Output the height of the tree
print(f"The height of the tree is {tree_height:.2f} meters.")

To use the script, simply run it in a Python environment and enter the required inputs when prompted. The program will then calculate the height of the object and output the result to the console. Note that the length inputs should be in meters, and the output height will also be in meters

The simple experiment I did with Mr. Lees all those years ago taught me a valuable lesson about the power of data and how it can be used to solve real-world problems. It was a simple yet profound experience that has stayed with me all these years and continues to inspire me to explore the endless possibilities of data science.

Recent Posts

  • The Woman in the Well (Holsbeek, Belgium)
  • Expanding Horizons: Unveiling Global True Crime Mysteries with Data Science
  • Is There a Hidden Message for Us? Interpreting the Somerton Man’s Code.
  • The Evolution of Digital Forensics: Transforming True Crime Investigations
  • A Comprehensive Analysis of Demographic Factors in Australian Missing Persons Cases
©2025 I've Committed Data | Design: Newspaperly WordPress Theme
Join the Detective's Dispatch: Your Monthly Insight into Historical True Crime!

🔍 Unlock the Past, Discover the Data!

Greetings, history buff and data detective!

Craving a dose of mystery with your morning coffee? Sign up for our Detective’s Dispatch—your monthly newsletter that delves deep into the archives of true crime and the wonders of data science.

📊 What’s Under the Magnifying Glass?

Each issue is a trove of intrigue:

  • Exclusive Case Files: Get early access to our latest investigations into historical crimes, complete with data-driven insights and forensic analysis.
  • Data Detective Tutorials: Sharpen your sleuthing skills with our step-by-step guides on using data science to uncover hidden truths in cold cases.
  • Forensic Frontier: Stay updated on the latest in forensic technology and how it’s revolutionizing our understanding of the past.
  • Mystery Spotlights: Each month, we highlight a historic case, breaking down the data that tells a story beyond what the headlines once said.

🧬 Why Subscribe?

  • Be the first to access our most gripping content.
  • Exclusive data sets for your own analysis.
  • Best of all, it’s completely free!

Join a community of like-minded individuals who share your passion for puzzles, history, and the science that brings them to life.

🖋 Sign Up Now and Become a Part of the Narrative!

Just enter your email below, and let’s start unraveling the mysteries together.

If you opt in above we use this information send related content, discounts and other special offers.

We promise to keep your data confidential—after all, we’re in the business of solving mysteries, not creating them.

Welcome to the Detective’s Dispatch—where every story is data, and every data tells a story.