{"id":20817535,"url":"https://github.com/greed2411/plinearregression","last_synced_at":"2025-08-24T06:41:59.976Z","repository":{"id":125880392,"uuid":"147230944","full_name":"greed2411/PLinearRegression","owner":"greed2411","description":"Scikit-Learn's linear regression extended with p-values.","archived":false,"fork":false,"pushed_at":"2018-09-03T17:08:59.000Z","size":8,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T14:06:50.199Z","etag":null,"topics":["hypothesis-testing","p-values","python3","regression","scikit-learn"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greed2411.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-03T16:45:57.000Z","updated_at":"2023-08-24T02:50:08.000Z","dependencies_parsed_at":"2023-07-08T04:45:29.667Z","dependency_job_id":null,"html_url":"https://github.com/greed2411/PLinearRegression","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greed2411/PLinearRegression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greed2411%2FPLinearRegression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greed2411%2FPLinearRegression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greed2411%2FPLinearRegression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greed2411%2FPLinearRegression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greed2411","download_url":"https://codeload.github.com/greed2411/PLinearRegression/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greed2411%2FPLinearRegression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271809246,"owners_count":24825680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hypothesis-testing","p-values","python3","regression","scikit-learn"],"created_at":"2024-11-17T21:42:46.993Z","updated_at":"2025-08-24T06:41:59.912Z","avatar_url":"https://github.com/greed2411.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PLinearRegression\nScikit-Learn's linear regression extended with p-values.\n\n\u003e \"... the null hypothesis is never proved or established, but is possibly disproved, in the course of experimentation. Every experiment may be said to exist only to give the facts a chance of disproving the null hypothesis.\" -  R. A. Fisher \n\nPeople from [R](https://www.r-project.org/) background are familiar with [hypothesis testing](https://en.wikipedia.org/wiki/Statistical_hypothesis_testing) and [p-values](https://en.wikipedia.org/wiki/P-value) whereas ones from Python's [scikit-learn](http://scikit-learn.org/) background haven't heard of them. That's why I just made this script, which is an extension of scikit-learn's [LinearRegression](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html), it can also be extended to Lasso and Ridge regressions respectively.\n\n## Demo\n\nA quick example:\n\n```python\nfrom p_linear_regression import PLinearRegression\nplr = PLinearRegression()\nplr.fit(X_train, y_train)\ny_pred = plr.predict(X_test)\n\nprint(plr.summary)\n```\n\nOutput for the diabetes dataset from sklearn looks like this:\n\n```\n   coefficients  standard Errors  t statistic      p values\n0     37.900314        68.934688     0.549800  5.828141e-01\n1   -241.966248        68.468840    -3.533962  4.654885e-04\n2    542.425753        76.826436     7.060405  9.272139e-12\n3    347.708305        71.252628     4.879937  1.628348e-06\n4   -931.461261       450.477090    -2.067722  3.941565e-02\n5    518.044055       363.566096     1.424896  1.550964e-01\n6    163.403535       232.663793     0.702316  4.829584e-01\n7    275.310038       185.125003     1.487158  1.378919e-01\n8    736.189098       192.157851     3.831168  1.516492e-04\n9     48.671125        73.305207     0.663952  5.071672e-01\n```\n\nThere's also a [demo.ipynb](https://github.com/greed2411/PLinearRegression/blob/master/demo.ipynb) along with this repository for demonstration purposes.\n\ncritiques, comments and suggestions are always welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreed2411%2Fplinearregression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreed2411%2Fplinearregression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreed2411%2Fplinearregression/lists"}