Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "cells": [
- {
- "cell_type": "code",
- "execution_count": 9,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "data_1 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19.csv', sep='\\t')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 3,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "[1] \"one-sided t test of fraction solved (lowq < highq)\"\n"
- ]
- }
- ],
- "source": [
- "print('one-sided t test of fraction solved (lowq < highq)')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 10,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "data": {
- "text/plain": [
- "\n",
- "\tWelch Two Sample t-test\n",
- "\n",
- "data: data_1$lowq and data_1$highq\n",
- "t = -1.0595, df = 241.67, p-value = 0.1452\n",
- "alternative hypothesis: true difference in means is less than 0\n",
- "95 percent confidence interval:\n",
- " -Inf 0.03661528\n",
- "sample estimates:\n",
- "mean of x mean of y \n",
- "0.3360656 0.4016393 \n"
- ]
- },
- "execution_count": 10,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "t.test(data_1$lowq, data_1$highq, alternative='less')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 7,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "[1] \"--------------------------------------------------------------------------------------------------------------\"\n"
- ]
- }
- ],
- "source": [
- "print('--------------------------------------------------------------------------------------------------------------')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 13,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "data_2 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19_solved.csv', sep='\\t')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 12,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "[1] \"one-sided t test of #(solved to Red)/#(solved) (lowq < highq)\"\n"
- ]
- }
- ],
- "source": [
- "print('one-sided t test of #(solved to Red)/#(solved) (lowq < highq)')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 14,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "data": {
- "text/plain": [
- "\n",
- "\tWelch Two Sample t-test\n",
- "\n",
- "data: data_2$lowq and data_2$highq\n",
- "t = -1.7262, df = 90.992, p-value = 0.04385\n",
- "alternative hypothesis: true difference in means is less than 0\n",
- "95 percent confidence interval:\n",
- " -Inf -0.006352627\n",
- "sample estimates:\n",
- "mean of x mean of y \n",
- "0.5531915 0.7234043 \n"
- ]
- },
- "execution_count": 14,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "t.test(data_2$lowq, data_2$highq, alternative='less')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 15,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "[1] \"--------------------------------------------------------------------------------------------------------------\"\n"
- ]
- }
- ],
- "source": [
- "print('--------------------------------------------------------------------------------------------------------------')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 16,
- "metadata": {
- "collapsed": true
- },
- "outputs": [],
- "source": [
- "data_3 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19_all.csv', sep='\\t')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 17,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "[1] \"one-sided t test of #(solved to Red)/#(all) (lowq < highq)\"\n"
- ]
- }
- ],
- "source": [
- "print('one-sided t test of #(solved to Red)/#(all) (lowq < highq)')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 18,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "data": {
- "text/plain": [
- "\n",
- "\tWelch Two Sample t-test\n",
- "\n",
- "data: data_3$lowq and data_3$highq\n",
- "t = -1.6471, df = 238.07, p-value = 0.05043\n",
- "alternative hypothesis: true difference in means is less than 0\n",
- "95 percent confidence interval:\n",
- " -Inf 0.0002310195\n",
- "sample estimates:\n",
- "mean of x mean of y \n",
- "0.1967213 0.2868852 \n"
- ]
- },
- "execution_count": 18,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "t.test(data_3$lowq, data_3$highq, alternative='less')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": true
- },
- "outputs": [],
- "source": []
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "R",
- "language": "R",
- "name": "ir"
- },
- "language_info": {
- "codemirror_mode": "r",
- "file_extension": ".r",
- "mimetype": "text/x-r-source",
- "name": "R",
- "pygments_lexer": "r",
- "version": "3.2.2"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement