TALipa89 / intro-data-capstone-biodiversity

0 stars 0 forks source link

Summary #4

Open cviddy17 opened 6 years ago

cviddy17 commented 6 years ago

Summary:

Needs Improvement

Great job, but the project falls slightly short of meeting expectations.

Please submit a file with your code to verify the information obtained and to see the quality of the code written.

Consider formatting charts rather than posting screenshots. Also, try and maintain consistency in how material is represented.

TALipa89 commented 6 years ago

Hello I completed this analysis on the Xodecademy browser tool. I don't own a computer that I could install python on so I had to rely on the Codecademy tool. All the code is there. Is there a way to share it with you?

cviddy17 commented 6 years ago

Respond to this thread with the code and I can take a look if you'd like.

On Tue, May 22, 2018 at 5:13 AM, TALipa89 notifications@github.com wrote:

Hello I completed this analysis on the Xodecademy browser tool. I don't own a computer that I could install python on so I had to rely on the Codecademy tool. All the code is there. Is there a way to share it with you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TALipa89/intro-data-capstone-biodiversity/issues/4#issuecomment-390967929, or mute the thread https://github.com/notifications/unsubscribe-auth/ARbo7RAj9AISxHiPGMzyx_fM68cY0lzLks5t1AD0gaJpZM4UIgTn .

-- Chad A. Valencia

ὅπερ ἔδει δεῖξαι

TALipa89 commented 6 years ago

Hey Chad,

Here is my code for my chi2_contingency tests.

import codecademylib import pandas as pd from matplotlib import pyplot as plt from scipy.stats import chi2_contingency

contingency = [[30, 146], [75, 413]]

pval = chi2_contingency(contingency)[1] print(pval)

No siginificance pval > 0.05

contingency_reptile_mammal = [[30, 146], [5, 73]]

pval_reptile_mammal = chi2_contingency(contingency_reptile_mammal)[1] print(pval_reptile_mammal)

yes significant pval_reptile_mammal < 0.05

contingency_reptile_fish = [[5,73], [11,115]]

pval_reptile_fish = chi2_contingency(contingency_reptile_fish)[1] print(pval_reptile_fish)

pval > 0.05 not significant

contingency_reptile_vascularplant = [[5,73], [46,4216]]

pval_reptile_vascularplant = chi2_contingency(contingency_reptile_vascularplant)[1] print(pval_reptile_vascularplant)