I have read forums regarding the same issue and have tried using the solutions provided but nothing has worked so far.
The difference I am getting in values is extremely small though.
Correlation between weight and height is expected to be 0.3 but I am getting it as 0.2 and between weight and overweight it is expected as 0.7 but I am getting it as 0.6.
Link to code on replit: boilerplate-medical-data-visualizer - Nix (beta) Repl - Replit
Would be glad if anyone could help me out!
