Learn/Data Science/Conservation
IntermediateConservationPYTHON+20 XP

Rhino patrol effort vs poaching incidents

Scenario

You are a data scientist. A reserve records monthly ranger patrol hours and poaching incidents. Management wants to know whether more patrol hours actually reduce incidents.

Question

Teach a straight-line model using patrol hours, then show the line's direction and how well it fits.

Intermediate · Data Filtering & Record Counting — question 1 of 30

Finish all 30 to earn a certificate

1. Choose your dataset

Pick an industry and a size. Your code and results change to match.

📓 DataPro notebookds-cons-01.ipynbFileEditViewRunKernel: Python 3
[md]

Rhino patrol effort vs poaching incidents

Teach a straight-line model using patrol hours, then show the line's direction and how well it fits.

In [1]:

Your code cell is below. Press Check my answer to run the cell — the result appears as Out [1].

python editor
Type your code here ↓
✍️ Tap here to type

Dataset & schema

patrol_log

The tiny starter data. Bigger data scrolls.

Fields

monthpatrol_hoursincidents
2026-014207
2026-026104
2026-033809
2026-047202
attempts: 0
▶ Output terminal
$ Press “Check my answer” — results appear here.

Your next steps

Each item turns green when your answer includes it.

5 left
  • Uses LinearRegression
  • 2D feature matrix
  • Fits the model
  • Reports the slope
  • Reports R²