Anda di halaman 1dari 11

Correlation between mathes won and Money spent on transfers

proc corr data = WORK.EPL; var Won Net_Money_Spent_on_Transfers; run;

Scatter Plot between No. of matches won and Money spent on transfers

proc gplot data=WORK.EPL; plot Won*Net_Money_Spent_on_Transfers; run;

Scatter Plot between No. of matches won and Money spent on transfers

proc gplot data=WORK.EPL; plot Lost*Net_Money_Spent_on_Transfers; title ' Scatter Plot between Lost matches and Net Money Spent'; run;

Frequency distribution of Goal difference

proc gChart data = WORK.EPL; vbar Goal_Difference; run;

Relationship between crowd attendance and the team playing

proc gplot data=WORK.EPL; plot Team*Total_Attendence; title 'Relationship between the crowd attendance and teams'; run;

Correlation between the average age of team and its performance

proc corr data = WORK.EPL; var Average_Age Won; title 'Correleration between Average Age of Team and Matches Won'; run;

Frequency plot between No. of matches won and Money spent on transfers
data WORK.EPL; set WORK.EPL; if Won >'5'and Won<='10' then Won_Group='05-10'; else if Won >'10'and Won<='15' then Won_Group='10-15'; else if Won >'15'and Won<='20' then Won_Group='15-20'; else if Won >'20'and Won<='25' then Won_Group='20-25'; run; data WORK.EPL; set WORK.EPL; if Net_Money_Spent_on_Transfers < '0' then Money_Group='Negative'; else if Net_Money_Spent_on_Transfers >'0' and Net_Money_Spent_on_Transfers<='5000000' then Money_Group='Medium'; else if Net_Money_Spent_on_Transfers >'5000000' then Money_Group='High'; run;

proc freq data = WORK.EPL; table Won_Group*Money_Group; run;

Chi-Square goodness test for Won_Group deviation from hypothesized proportion

proc freq data = WORK.EPL; table Won_Group/ chisq testp=(10 40 30 20); run;

Test of sample median differing from hypothesized value

proc univariate data=WORK.EPL loccount mu0=45; var Points; title ' Test whether sample median of Points differ from Hypothesised value'; run;

Binomial Test for net money gained /lost during money transfers

data WORK.EPL; set WORK.EPL; if Net_Money_Spent_on_Transfers < '0' then Money_Group2='Negative'; else if Net_Money_Spent_on_Transfers >'0' then Money_Group2='Positive'; run;

proc freq data=WORK.EPL; tables Money_Group2 /binomial(p=.5); exact binomial; run;

Binomial Test for Average age of players above/ below 27 years

data WORK.EPL; set WORK.EPL; if Average_age >= '27' then Age_group='Old'; else if Average_age <'27' then Age_group='Young'; run; proc freq data=WORK.EPL; tables Age_group /binomial(p=.5); title 'Binomial test for average age of the players above/ below 27 years of age'; run;

Anda mungkin juga menyukai