diff options
-rw-r--r-- | CS105MiniProject.ipynb | 74 |
1 files changed, 53 insertions, 21 deletions
diff --git a/CS105MiniProject.ipynb b/CS105MiniProject.ipynb index 39cffcd..7d983cb 100644 --- a/CS105MiniProject.ipynb +++ b/CS105MiniProject.ipynb @@ -31,8 +31,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.261607Z", - "start_time": "2024-02-24T05:05:30.239183Z" + "end_time": "2024-02-24T05:38:10.428394Z", + "start_time": "2024-02-24T05:38:10.392848Z" } }, "outputs": [ @@ -79,8 +79,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.273335Z", - "start_time": "2024-02-24T05:05:30.262297Z" + "end_time": "2024-02-24T05:38:10.445114Z", + "start_time": "2024-02-24T05:38:10.429806Z" } }, "outputs": [ @@ -140,8 +140,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.281906Z", - "start_time": "2024-02-24T05:05:30.274748Z" + "end_time": "2024-02-24T05:38:10.456195Z", + "start_time": "2024-02-24T05:38:10.447401Z" } }, "outputs": [ @@ -170,8 +170,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.288976Z", - "start_time": "2024-02-24T05:05:30.282571Z" + "end_time": "2024-02-24T05:38:10.466309Z", + "start_time": "2024-02-24T05:38:10.456960Z" } }, "outputs": [ @@ -206,8 +206,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.394575Z", - "start_time": "2024-02-24T05:05:30.289517Z" + "end_time": "2024-02-24T05:38:10.699027Z", + "start_time": "2024-02-24T05:38:10.468100Z" } }, "outputs": [ @@ -277,8 +277,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.657400Z", - "start_time": "2024-02-24T05:05:30.402484Z" + "end_time": "2024-02-24T05:38:11.115799Z", + "start_time": "2024-02-24T05:38:10.717858Z" } }, "id": "c533e52f7d64a4df", @@ -320,8 +320,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.780026Z", - "start_time": "2024-02-24T05:05:30.659455Z" + "end_time": "2024-02-24T05:38:11.239245Z", + "start_time": "2024-02-24T05:38:11.116471Z" } }, "id": "450665f2272bb3a2", @@ -365,8 +365,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.918126Z", - "start_time": "2024-02-24T05:05:30.781852Z" + "end_time": "2024-02-24T05:38:11.368629Z", + "start_time": "2024-02-24T05:38:11.241156Z" } }, "id": "1a704a4702ea3f9c", @@ -401,7 +401,12 @@ { "cell_type": "markdown", "source": [ - "### Hypothesis 2: Students who live on-campus are more likely to have roommates of the same major." + "### Hypothesis 2: Students who live on-campus are more likely to have roommates of the same major.\n", + "\n", + "Null Hypothesis: There is no relationship between students who live on-campus and students who have roommates of the same major.\n", + "\n", + "Significance value: 0.1\n", + "Degrees of Freedom: 2" ], "metadata": { "collapsed": false @@ -428,8 +433,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.953549Z", - "start_time": "2024-02-24T05:05:30.925037Z" + "end_time": "2024-02-24T05:38:11.454613Z", + "start_time": "2024-02-24T05:38:11.414412Z" } }, "id": "24d1f01fdd4ca1d6", @@ -464,12 +469,39 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-02-24T05:05:30.962589Z", - "start_time": "2024-02-24T05:05:30.955712Z" + "end_time": "2024-02-24T05:38:11.493183Z", + "start_time": "2024-02-24T05:38:11.468104Z" } }, "id": "fd3e73d9f461afd1", "execution_count": 10 + }, + { + "cell_type": "markdown", + "source": [ + "With a significance value of 0.1 and 2 degrees of freedom, chi-squared must be greater than 4.61.\n", + "Since chi-squared of `4.18 < 4.61`, we accept the null hypothesis:\n", + "\n", + "There is no relationship between students who live on-campus and students who have roommates of the same major." + ], + "metadata": { + "collapsed": false + }, + "id": "32eff09a99bfb3c7" + }, + { + "cell_type": "code", + "outputs": [], + "source": [], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2024-02-24T05:38:11.502610Z", + "start_time": "2024-02-24T05:38:11.498403Z" + } + }, + "id": "b513f8e8241e86e5", + "execution_count": 10 } ], "metadata": { |