ProjectAssessment


NameProjectAssessment JSON
Version 0.3.8 PyPI version JSON
download
home_pageNone
SummaryPackage to compute the Project-Based Assessment estimates of student and rubric proficiency.
upload_time2024-07-08 11:44:59
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords assessment bootstrap education projects statistics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Project Based Assessment 

The project based assessment library allows the practitioner to estimate difficulty and ability parameters when using data from rubric rows. 

The library contains the following methods:

* getResults
* DisplayResults
* SaveResults

getResults and DisplayResults take the following parameters: 

1. dataset: A pandas Dataset containing the columns "k", "student", "rubric", "bound".  The "k" column is the rubric level the given student reached on the given rubric row. The "student" column is a student identifier. The "rubric" column is a rubric row identifier. The "bound" column is maximum "k" value possible on the given rubric row.
2. c: A float between 0 and 0.5 indicating the portion of the bootstrapped EDF to extract.  For instance, specifying 0.025 would produce the 95% confidence interval. Default is 0.025.
3. rubric: A bool flag indicating to treat the rubric rows as blocks instead of the unique students in the bootstrap.  Defaults to False.
4. n: The number of iterations in the bootstrap.  Defaults to 1000.
5. linear: Uses a simple linear combination of the rubric and student items instead of a sigmoid function when set to true.  Defaults to False.
6. columns: A list of column names to include in the model. The column names cannot be in common with any of the rubric row identifiers. Defaults to None.
7. no_students: If True, the model will not include student (s_i) estimates.  Defaults to False. Only available if columns is specified.
8. no_questions: If True, the model will not include question/rubric row (q_j) estimates.  Defaults to False. Only available if columns is specified.

SaveResults includes the same parameters as getResults and DisplayResults but has three additional parameters: 

1. rubricFile: File name/path for the rubric results.  Defaults to 'rubric.csv'.
2. studentFile: File name/path for the student results.  Defaults to 'student.csv'.
3. outputFile: File name/path for the summary output results.  Defaults to 'output.csv'.

All methods return the following:

1. Rubric difficulty estimates as a pandas dataframe. Additional interpretation columns are provided in this dataframe that will be described below.
2. Student ability estimates as a pandas dataframe.  Additional interpretation columns are provided in this dataframe that will be described below.
3. Bootstrap confidence intervals and P-Values as a pandas dataframe. P-Values are only provided when estimating the non-linear model as they will always be zero for the linear model (by construction the estimates are constrained between 0 and 1 in the linear model).
4. The number of times the bootstrap routine could not find a solution (if any).
5. Number of observations.
6. Number of parameters.
7. Akaike information criterion
8. Bayesian information criterion
9. McFadden pseudo-R^2
10. Likelihood Ratio test statistic
11. Chi-Squared P-Value of the model (i.e. Wilks' theorem)
12. Log Likelihood value

getResults only return these values as a tuple.  DisplayResults returns the values as a tuple and prints the results to screen.  SaveResults returns the values as a tuple, displays the results and saves the results to CSV files.

The rubric difficulty and student ability pandas dataframes return estimates along with columns used for interpretation.  The following columns are provided: 

* AME k=i: The average marginal effect of k=i.  This is provided for all possible bins (i between 0 and the highest bin).  This procedure calculates the marginal effect for a given estimate conditioned on k=i for all observations impacted by the estimate.  The average is then calculated. These values will sum to zero.
* ACP k=i: While average marginal effect is the standard approach to interpreting MLE results (especially in a logit or probit context), we don't think they are particularly useful in this model.  Therefore, the application also provides columns for the average conditional probability of k=i.  Given the subset of the data used to calculate AME, this is the average probability of k=i given the estimated value.  When the dataset is balanced (all students have a score for all rubric rows), these values will sum to 1.  Note that the top bin is capturing the censoring effect. Therefore, it is common that a substantial probability is estimated for this bin.
* Average Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the probability function given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the average probability of failure to proceed to the next bin.  Therefore, it will equal ACP k=0.
* Average Marginal Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the marginal probability function (derivative) given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the change in the average probability of failure to proceed to the next bin.
* Average Discrete Marginal Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the discrete marginal probability function given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the change in the average probability of failure to proceed to the next bin.  This is very similar to the Average Marginal Logistic above and will often produce very similar values.  However, this value is calculated by calculating the probability with the variable in question and without the variable in question and then taking the difference.  This is a common approach when calculating the discrete marginal effect in logit and probit models.  The Average Marginal Logistic is calculated by taking the derivative. Where these values tend to diverge is when the estimate is at an extreme.  Consider a student who has extremely low ability such that they fail every trial.  In this case, the derivative will be near zero as it is the instantaneous slope at the extreme value.  However, the Discrete Marginal Logistic will be very large as the average change in probability over the range is large.  

## Background and Use

This package is based on the estimator presented in "[Assessing Proxies of Knowledge and Difficulty with Rubric-Based Instruments](https://doi.org/10.1002/soej.12658)."  There is a [video](https://vimeo.com/735183858) demonstrating using this package in Google Colab and a [video](https://vimeo.com/756447388) explaining the paper.   

The ability to estimate arbitrary columns was added as part of an upcoming paper titled "[Are Students Sexist when Rating Each Other? Bias in Peer Ratings and a Generalization of the Rubric-Based Estimator](https://papers.ssrn.com/abstract=4858815)." There is a [video](https://vimeo.com/941262859) showing how to use the new arbitrary columns feature in Google Colab.

## Installation

You can install the package from either PyPI or the Conda repository:

```console
pip install ProjectAssessment
```
or

```console
conda install -c tazzben projectassessment
```
    
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ProjectAssessment",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Ben Smith <bosmith@unomaha.edu>",
    "keywords": "Assessment, Bootstrap, Education, Projects, Statistics",
    "author": null,
    "author_email": "Ben Smith <bosmith@unomaha.edu>",
    "download_url": "https://files.pythonhosted.org/packages/95/78/d01c94f25ff7446f012f585abdff1699e68799e1a6d0eb38cb2374aee08e/projectassessment-0.3.8.tar.gz",
    "platform": null,
    "description": "# Project Based Assessment \n\nThe project based assessment library allows the practitioner to estimate difficulty and ability parameters when using data from rubric rows. \n\nThe library contains the following methods:\n\n* getResults\n* DisplayResults\n* SaveResults\n\ngetResults and DisplayResults take the following parameters: \n\n1. dataset: A pandas Dataset containing the columns \"k\", \"student\", \"rubric\", \"bound\".  The \"k\" column is the rubric level the given student reached on the given rubric row. The \"student\" column is a student identifier. The \"rubric\" column is a rubric row identifier. The \"bound\" column is maximum \"k\" value possible on the given rubric row.\n2. c: A float between 0 and 0.5 indicating the portion of the bootstrapped EDF to extract.  For instance, specifying 0.025 would produce the 95% confidence interval. Default is 0.025.\n3. rubric: A bool flag indicating to treat the rubric rows as blocks instead of the unique students in the bootstrap.  Defaults to False.\n4. n: The number of iterations in the bootstrap.  Defaults to 1000.\n5. linear: Uses a simple linear combination of the rubric and student items instead of a sigmoid function when set to true.  Defaults to False.\n6. columns: A list of column names to include in the model. The column names cannot be in common with any of the rubric row identifiers. Defaults to None.\n7. no_students: If True, the model will not include student (s_i) estimates.  Defaults to False. Only available if columns is specified.\n8. no_questions: If True, the model will not include question/rubric row (q_j) estimates.  Defaults to False. Only available if columns is specified.\n\nSaveResults includes the same parameters as getResults and DisplayResults but has three additional parameters: \n\n1. rubricFile: File name/path for the rubric results.  Defaults to 'rubric.csv'.\n2. studentFile: File name/path for the student results.  Defaults to 'student.csv'.\n3. outputFile: File name/path for the summary output results.  Defaults to 'output.csv'.\n\nAll methods return the following:\n\n1. Rubric difficulty estimates as a pandas dataframe. Additional interpretation columns are provided in this dataframe that will be described below.\n2. Student ability estimates as a pandas dataframe.  Additional interpretation columns are provided in this dataframe that will be described below.\n3. Bootstrap confidence intervals and P-Values as a pandas dataframe. P-Values are only provided when estimating the non-linear model as they will always be zero for the linear model (by construction the estimates are constrained between 0 and 1 in the linear model).\n4. The number of times the bootstrap routine could not find a solution (if any).\n5. Number of observations.\n6. Number of parameters.\n7. Akaike information criterion\n8. Bayesian information criterion\n9. McFadden pseudo-R^2\n10. Likelihood Ratio test statistic\n11. Chi-Squared P-Value of the model (i.e. Wilks' theorem)\n12. Log Likelihood value\n\ngetResults only return these values as a tuple.  DisplayResults returns the values as a tuple and prints the results to screen.  SaveResults returns the values as a tuple, displays the results and saves the results to CSV files.\n\nThe rubric difficulty and student ability pandas dataframes return estimates along with columns used for interpretation.  The following columns are provided: \n\n* AME k=i: The average marginal effect of k=i.  This is provided for all possible bins (i between 0 and the highest bin).  This procedure calculates the marginal effect for a given estimate conditioned on k=i for all observations impacted by the estimate.  The average is then calculated. These values will sum to zero.\n* ACP k=i: While average marginal effect is the standard approach to interpreting MLE results (especially in a logit or probit context), we don't think they are particularly useful in this model.  Therefore, the application also provides columns for the average conditional probability of k=i.  Given the subset of the data used to calculate AME, this is the average probability of k=i given the estimated value.  When the dataset is balanced (all students have a score for all rubric rows), these values will sum to 1.  Note that the top bin is capturing the censoring effect. Therefore, it is common that a substantial probability is estimated for this bin.\n* Average Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the probability function given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the average probability of failure to proceed to the next bin.  Therefore, it will equal ACP k=0.\n* Average Marginal Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the marginal probability function (derivative) given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the change in the average probability of failure to proceed to the next bin.\n* Average Discrete Marginal Logistic: This estimate is only provided when estimating the non-linear model.  It is the average of the discrete marginal probability function given the estimated value.  It uses the same subset of the data used to calculate AME and ACP above.  In terms of interpretation, it is the change in the average probability of failure to proceed to the next bin.  This is very similar to the Average Marginal Logistic above and will often produce very similar values.  However, this value is calculated by calculating the probability with the variable in question and without the variable in question and then taking the difference.  This is a common approach when calculating the discrete marginal effect in logit and probit models.  The Average Marginal Logistic is calculated by taking the derivative. Where these values tend to diverge is when the estimate is at an extreme.  Consider a student who has extremely low ability such that they fail every trial.  In this case, the derivative will be near zero as it is the instantaneous slope at the extreme value.  However, the Discrete Marginal Logistic will be very large as the average change in probability over the range is large.  \n\n## Background and Use\n\nThis package is based on the estimator presented in \"[Assessing Proxies of Knowledge and Difficulty with Rubric-Based Instruments](https://doi.org/10.1002/soej.12658).\"  There is a [video](https://vimeo.com/735183858) demonstrating using this package in Google Colab and a [video](https://vimeo.com/756447388) explaining the paper.   \n\nThe ability to estimate arbitrary columns was added as part of an upcoming paper titled \"[Are Students Sexist when Rating Each Other? Bias in Peer Ratings and a Generalization of the Rubric-Based Estimator](https://papers.ssrn.com/abstract=4858815).\" There is a [video](https://vimeo.com/941262859) showing how to use the new arbitrary columns feature in Google Colab.\n\n## Installation\n\nYou can install the package from either PyPI or the Conda repository:\n\n```console\npip install ProjectAssessment\n```\nor\n\n```console\nconda install -c tazzben projectassessment\n```\n    ",
    "bugtrack_url": null,
    "license": null,
    "summary": "Package to compute the Project-Based Assessment estimates of student and rubric proficiency.",
    "version": "0.3.8",
    "project_urls": {
        "Bug Tracker": "https://github.com/tazzben/project-based-assessment/issues",
        "Homepage": "https://github.com/tazzben/project-based-assessment"
    },
    "split_keywords": [
        "assessment",
        " bootstrap",
        " education",
        " projects",
        " statistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23598eaf5def2e6c22106de67bcdc06ebc9b1ee72155165945d7695cfb7ae228",
                "md5": "7c901ec0dd2c664bcafd68e08e9aca0e",
                "sha256": "027a0dd9176b8380be1914c1db809e15bd33fd33ffed7c1af89659f85e8cf664"
            },
            "downloads": -1,
            "filename": "projectassessment-0.3.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c901ec0dd2c664bcafd68e08e9aca0e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 11045,
            "upload_time": "2024-07-08T11:44:56",
            "upload_time_iso_8601": "2024-07-08T11:44:56.233980Z",
            "url": "https://files.pythonhosted.org/packages/23/59/8eaf5def2e6c22106de67bcdc06ebc9b1ee72155165945d7695cfb7ae228/projectassessment-0.3.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9578d01c94f25ff7446f012f585abdff1699e68799e1a6d0eb38cb2374aee08e",
                "md5": "d77ac74b1d95ba8c0655be3d9c9124bc",
                "sha256": "8d2699eddf0ac008a89d953d343b19ea09daa4f48ce44aa6ec8070ba4a60be8d"
            },
            "downloads": -1,
            "filename": "projectassessment-0.3.8.tar.gz",
            "has_sig": false,
            "md5_digest": "d77ac74b1d95ba8c0655be3d9c9124bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 14518,
            "upload_time": "2024-07-08T11:44:59",
            "upload_time_iso_8601": "2024-07-08T11:44:59.858325Z",
            "url": "https://files.pythonhosted.org/packages/95/78/d01c94f25ff7446f012f585abdff1699e68799e1a6d0eb38cb2374aee08e/projectassessment-0.3.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-08 11:44:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tazzben",
    "github_project": "project-based-assessment",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "projectassessment"
}
        
Elapsed time: 0.81088s