
    M/Ph                     4    d Z ddlmZ ddlmZ d Zd Zd ZdS )z+
Tests corresponding to sandbox.stats.runs
    )assert_almost_equal)runstest_1sampc                  z    dgdz  dgdz  z   dgdz  z   } d}d}t          | |d	
          }t          ||           d S )N                  mean)gN+Dgh1,?Fcutoff
correctionr   r   xr   expectedresultss       i/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/sandbox/stats/tests/test_runs.pytest_mean_cutoffr      sW    	
a1#'QC!G#AF:HQv%@@@G'*****    c                  z    dgdz  dgdz  z   dgdz  z   } d}d}t          | |d	
          }t          ||           d S )Nr   r   r   r	   r
   r   mediang	AՍgjd/?Fr   r   r   s       r   test_median_cutoffr      sW    	
a1#'QC!G#AF:HQv%@@@G'*****r   c                  z    dgdz  dgdz  z   dgdz  z   } d}d}t          | |d	          }t          ||           d S )
Nr   r   r   r	   r
   r   r   Fr   r   r   s       r   test_numeric_cutoffr      sW    	
a1#'QC!G#AF:HQv%@@@G'*****r   N)__doc__numpy.testingr   statsmodels.sandbox.stats.runsr   r   r   r    r   r   <module>r"      sl     . - - - - - 9 9 9 9 9 9+ + ++ + ++ + + + +r   