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 the 5 articles in this topic
Showing 5 of 445 articles.
Currently 49 other people reading this forum.


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

Login to reply

👍?
helpful
7:46pm Wed 8th May, ANONYMOUS

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.


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 👨‍🎨


SVG not supported

Login to reply

👍?
helpful
12:03am Thu 9th May, Md C.

Hi, When I tried to access the new excel file link you mentioned at the bottom of the assignment 2 page, it gives following error: Not found The specified resource was not found or you do not have permission to access it. Thursday, 9 May 2024 12:01:42 AM AWST


SVG not supported

Login to reply

👍?
helpful
9:29am Thu 9th May, ANONYMOUS

Hi,

The reasoning for your differing answers is due to your procedure in calculating the Pearson coefficients.

Without directly telling you the answer, I would urge you to reread this part of the project brief, I have highlighted the important parts:

"The method is: for each predictor, for each country, compute the correlation (also known as the Pearson correlation) between the predictor and the associated Cantril Ladder score. The mean correlation for a given predictor is then computed across all the countries".

Hint for python (if you are using pandas) you will need to make at least one df.groupby() calls.

Hope that helps :)


SVG not supported

Login to reply

👍?
helpful
9:26am Fri 10th May, Michael W.

"Md Chowdhury" <24*7*1*5@s*u*e*t*u*a*e*u*a*> wrote:
> Hi, > > When I tried to access the new excel file link you mentioned at the bottom of the assignment 2 page, it gives following error: > > Not found > > The specified resource was not found or you do not have permission to access it. > Thursday, 9 May 2024 12:01:42 AM AWST
Hi Rayhan, That is now provided (Sample1.tsv is just the first two countries in Sample2.tsv) Cheers MichaellW 👨‍🎨

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