# Discrepancy between my output and "Expected output" in C3M5 Assignment (Exercise 6)

**URL:** <https://community.deeplearning.ai/t/discrepancy-between-my-output-and-expected-output-in-c3m5-assignment-exercise-6/894794>\
**Category:** Python for Data Analytics\
**Tags:** week-module-5, coursera-platform\
**Created:** [August 25, 2026, 9:54am UTC](https://community.deeplearning.ai/t/discrepancy-between-my-output-and-expected-output-in-c3m5-assignment-exercise-6/894794 "2026-08-25T09:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jelena\_Gomzina](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/jelena_gomzina/32/159236_2.png) [@Jelena\_Gomzina](https://community.deeplearning.ai/u/Jelena_Gomzina)\
**Post date:** [August 25, 2026, 9:54am UTC](https://community.deeplearning.ai/t/discrepancy-between-my-output-and-expected-output-in-c3m5-assignment-exercise-6/894794/1 "2026-08-25T09:54:28Z")

</div>

**Course:** Python for Data Analytics  
**Module/Assignment:** Module 5 Assignment — Analyzing Chlorophyll levels in Australian Coral Reefs (C3M5\_Assignment.ipynb)  
**Exercise:** Exercise 6 — Simple Linear Regression

**Description of the issue:**

I completed Exercise 6 and my code executes without errors but my result does not numerically match the “Expected output” shown in the notebook. Therefore I can’t pass (0/10 points earned). AI also didn’t find any errors in my code.

 ![Screenshot 2026-08-25 121826](https://global.discourse-cdn.com/dlai/original/3X/9/6/96eb1644c297ccb8c8d7fbf5cbc7537e1db2245d.png)

 ![Screenshot 2026-08-25 121721](https://global.discourse-cdn.com/dlai/original/3X/3/1/31b40f11f0331b6cc51c85d3367c5ccb890ea491.png)

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [August 26, 2026, 5:13am UTC](https://community.deeplearning.ai/t/discrepancy-between-my-output-and-expected-output-in-c3m5-assignment-exercise-6/894794/2 "2026-08-26T05:13:33Z")

</div>

You may be hardcoding some values in your solution. In other words, even though you are using variables, some of the numbers in your logic may be fixed rather than being derived from the input or the variables. Please check your solution and make sure it works dynamically for all possible inputs, rather than only for the given example.

---

<div class="post-metadata">

**Author:** ![Jelena\_Gomzina](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/jelena_gomzina/32/159236_2.png) [@Jelena\_Gomzina](https://community.deeplearning.ai/u/Jelena_Gomzina)\
**Post date:** [August 26, 2026, 9:49am UTC](https://community.deeplearning.ai/t/discrepancy-between-my-output-and-expected-output-in-c3m5-assignment-exercise-6/894794/3 "2026-08-26T09:49:49Z")

</div>

Found the solution in the topic: [Analyzing Chlorophyll levels in Australian Coral Reefs (Graded Assignment C3M5 Time Series) 73.75%](https://community.deeplearning.ai/t/analyzing-chlorophyll-levels-in-australian-coral-reefs-graded-assignment-c3m5-time-series-73-75/889859)
