Chi Square Test X2.

Slides:



Advertisements
Similar presentations
Request Dispatching for Cheap Energy Prices in Cloud Data Centers
Advertisements

SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
From Word Embeddings To Document Distances
Choosing a Dental Plan Student Name
Virtual Environments and Computer Graphics
Chương 1: CÁC PHƯƠNG THỨC GIAO DỊCH TRÊN THỊ TRƯỜNG THẾ GIỚI
THỰC TIỄN KINH DOANH TRONG CỘNG ĐỒNG KINH TẾ ASEAN –
D. Phát triển thương hiệu
NHỮNG VẤN ĐỀ NỔI BẬT CỦA NỀN KINH TẾ VIỆT NAM GIAI ĐOẠN
Điều trị chống huyết khối trong tai biến mạch máu não
BÖnh Parkinson PGS.TS.BS NGUYỄN TRỌNG HƯNG BỆNH VIỆN LÃO KHOA TRUNG ƯƠNG TRƯỜNG ĐẠI HỌC Y HÀ NỘI Bác Ninh 2013.
Nasal Cannula X particulate mask
Evolving Architecture for Beyond the Standard Model
HF NOISE FILTERS PERFORMANCE
Electronics for Pedestrians – Passive Components –
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
L-Systems and Affine Transformations
CMSC423: Bioinformatic Algorithms, Databases and Tools
Some aspect concerning the LMDZ dynamical core and its use
Bayesian Confidence Limits and Intervals
实习总结 (Internship Summary)
Current State of Japanese Economy under Negative Interest Rate and Proposed Remedies Naoyuki Yoshino Dean Asian Development Bank Institute Professor Emeritus,
Front End Electronics for SOI Monolithic Pixel Sensor
Face Recognition Monday, February 1, 2016.
Solving Rubik's Cube By: Etai Nativ.
CS284 Paper Presentation Arpad Kovacs
انتقال حرارت 2 خانم خسرویار.
Summer Student Program First results
Theoretical Results on Neutrinos
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Wavelet Coherence & Cross-Wavelet Transform
yaSpMV: Yet Another SpMV Framework on GPUs
Creating Synthetic Microdata for Higher Educational Use in Japan: Reproduction of Distribution Type based on the Descriptive Statistics Kiyomi Shirakawa.
MOCLA02 Design of a Compact L-­band Transverse Deflecting Cavity with Arbitrary Polarizations for the SACLA Injector Sep. 14th, 2015 H. Maesaka, T. Asaka,
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Fuel cell development program for electric vehicle
Overview of TST-2 Experiment
Optomechanics with atoms
داده کاوی سئوالات نمونه
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
ლექცია 4 - ფული და ინფლაცია
10. predavanje Novac i financijski sustav
Wissenschaftliche Aussprache zur Dissertation
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Interpretations of the Derivative Gottfried Wilhelm Leibniz
Advisor: Chiuyuan Chen Student: Shao-Chun Lin
Widow Rockfish Assessment
SiW-ECAL Beam Test 2015 Kick-Off meeting
On Robust Neighbor Discovery in Mobile Wireless Networks
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
You NEED your book!!! Frequency Distribution
Y V =0 a V =V0 x b b V =0 z
Fairness-oriented Scheduling Support for Multicore Systems
Climate-Energy-Policy Interaction
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Ch48 Statistics by Chtan FYHSKulai
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Online Learning: An Introduction
Factor Based Index of Systemic Stress (FISS)
What is Chemistry? Chemistry is: the study of matter & the changes it undergoes Composition Structure Properties Energy changes.
THE BERRY PHASE OF A BOGOLIUBOV QUASIPARTICLE IN AN ABRIKOSOV VORTEX*
Quantum-classical transition in optical twin beams and experimental applications to quantum metrology Ivano Ruo-Berchera Frascati.
The Toroidal Sporadic Source: Understanding Temporal Variations
FW 3.4: More Circle Practice
ارائه یک روش حل مبتنی بر استراتژی های تکاملی گروه بندی برای حل مسئله بسته بندی اقلام در ظروف
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
Limits on Anomalous WWγ and WWZ Couplings from DØ
Presentation transcript:

Chi Square Test X2

Chi Square is a test used to see if two pieces of data are significantly different or due to chance In Biology, we use this test a lot to see if our data is significant. In a population lab, we would see if 2 species found are associated with each other

Quadrant Sampling This method is only suitable for plants and other organisms that are not motile. Choose a random number to determine the length and width of your area If the absence or presence of more than one species is recorded in every quadrat during sampling of a habitat, it is possible to test for an association between species.

A quadrat is a wire shaped into a square of a known size , such as 10x10 meters or 100m2. If you want to know the population size of two plant species, take random samples of this area by throwing down the quadrat and recording the population numbers in each subunit of the quadrat.

Setting up quadrats Setting up quadrats This is a grid of 100 quadrats, each 10 m on a side. http://www.csulb.edu/~rodrigue/geog200/lab4.html; Dr.Rodrigue http://home.iae.nl/users/isse/Files/environmental_systems.htm; Environmental Systems

Count how many individuals there are inside the quadrat of the plant population being studied. Repeat steps 2 and 3 as many times as possible. Measure the total size of the area occupied by the population, in square meters. http://www.waite.adelaide.edu.au/school/Habitat/survey.html; Survey of native and exotic species

Calculate the mean number of plants per quadrat Calculate the mean number of plants per quadrat. Then calculate the estimated population size using the following equation: Population size = mean number per quadrat X total area area of each quadrat

Populations are often unevenly distributed because some parts of the habitat are more suitable for a species than others. If two species occur in the same parts of a habitat, they will tend to be found in the same quadrats. This is known as a Positive association

H0 -Two species are distributed independently There are 2 hypotheses: H0 -Two species are distributed independently The Null Hypothesis H1 – Two species are associated (either positively so they tend to occur together or negatively so they tend to occur apart) We can test these hypotheses using a statistical procedure – the chi square test

Method for Chi Square Draw up a contingency table of observed frequencies. Species A present Species A absent Row totals Species B present Species B absent Column totals

Calculate the row and column totals. Adding the row and column totals should give the same grand total in the lower right cell.

Calculate the expected frequencies, assuming the independent distribution for each of the four species combinations. Each expected frequency is calculated from values on the contingency table using this equation. Expected frequency = row total x column total grand total

Calculate the degree’s of freedom using this equation: DF = (m-1)(n-1) Where m and n are the number of rows and columns in the contingency table

Find the critical region for chi-squared from a table of chi-square values, using the degrees of freedom that you calculated. It should have a significance level (p) of 0.05 (5%)

X2 = Σ 𝑜−𝑒 2 e O – observed e- expected Σ- the sum of Calculate the chi-squared using this equation: X2 = Σ 𝑜−𝑒 2 e O – observed e- expected Σ- the sum of

What is statistically significant H0 - the null hypothesis with the belief that there is no relationship between the two H1 – There is a relationship The usual procedure is to test the null hypothesis with the expectation of showing that it is false. If you say that the results were statistically significant, it means that if the null hypothesis was true, the probability of getting results as extreme as the oberved results would be very small.

example In a certain town, there are about one million eligible voters. A simple random sample of 10,000 eligible voters were chosen to study the relationship between sex and participation in the last election. The results are summarized in the following 2x2 contingency table: Men Women Voted 2792 3591 Didn’t vote 1486 2131

We want to check whether being a man or a woman (columns) is independent of having voted in the last election (rows). In other words is ‘sex and voting independent’? Null – sex is independent of voting Alternative – sex and voting are dependent

We now need to complete our contingency table. Men Women Total voted 2792 3591 6383 Didn’t vote 1486 5722 3617 4278 10000

Expected Table Men Women Total Voted 2731 3652 6383 Didn’t vote 1547 2070 3617 Totals 4278 5722 10000 Remember: expected frequencies = row totals x column totals grand total So: 6383 x 4278 / 10000 = 2731 6383 x 5722 / 10000 = 3652

Now we have the observed table and the expected table under the null hypothesis of independence. Now we need to compute X2 (O – e)2 e

So….. (2792 – 2731)2 = 1.36 2731 (3591 – 3652)2 = 1.0 3652 Etc . X2 = 1.4+1.0+2.4+1.8 = 6.6 Degrees of freedom 2 – 1 = 1

Since X2 is 6.6 which has a p value of 1%, we have to reject the NULL hypothesis. The data supports the hypothesis that sex and voting are dependent in this town.

http://www. youtube. com/watch http://www.youtube.com/watch?v=WXPBoFDqNVk&safety_mode=true&persist_safety_mode=1