It's UWAweek 47

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 445 articles.
Currently 41 other people reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
9:34pm Wed 8th May, Michael W.

ANONYMOUS wrote:
> Hi Prof Michael, > > While running the % ./best_predictor sample2.tsv to generate the expected output. > > I am getting a different score like following with the provided data in sample2.tsv. > GDP per capita: 0.925 > Population: -0.989 > Homicide Rate: -0.889 > Life Expectancy: 0.957 > (r = 0.98923) > > These results are different from the expected output. > > With this data, I tried with the Python script to produce these calculations and got the same result as above. > > So my question is, Are these calculations from sample 2.tsv correct or do we need to validate anything else ? > > Or can you please share any other data source so we can test the correct calculation and see if any difference in the output or script design ? > > Thanks for your guidance and help.
Hi, To help check your (and my) calculations, I created an Excel spreadsheet which gives a breakdown of the correlation computations. Unless you are using scipy, and have coded the correlation computation in Python yourself, you may have programming in the same mistake. Anyway, I have now upload the Excel spreadsheet to the Assignment 2 LMS page. Cheers MichaelW 👨‍🎨

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy