← Back
Editing: test_contingency.cpython-311.pyc
� d�c � �* � d dl Zd dlmZmZmZmZmZ d dlZd dlm Z d dlmZ d dl mZmZmZmZ d� Zd� Zd� Zd � Zd � Zd� Zd� Zej � d ddg� � d� � � Zd� Zej � dg d�� � d� � � ZdS )� N)�assert_equal�assert_array_equal�assert_array_almost_equal�assert_approx_equal�assert_allclose)�raises)�xlogy)�margins� expected_freq�chi2_contingency�associationc �J � t j dg� � } t | � � }t t |� � d� � |d }t |t j dg� � � � t j dgg� � } t | � � \ }}t j dgg� � }t j dgg� � }t ||� � t ||� � t j d� � � dd� � } t | � � \ }}t j dgdgg� � }t j g d�g� � }t ||� � t ||� � t j d � � � dd d� � } t | � � \ }}}t j dggd ggg� � }t j dgdgdggg� � }t j g d�gg� � }t ||� � t ||� � t ||� � d S )N� r � � � � �3 )r � � r � � � � � �B �� �<