{"id":22868484,"url":"https://github.com/robcyberlab/linear-regression-application","last_synced_at":"2025-03-31T10:50:49.602Z","repository":{"id":263186358,"uuid":"889616776","full_name":"RobCyberLab/Linear-Regression-Application","owner":"RobCyberLab","description":"🔢Linear Regression Application💻","archived":false,"fork":false,"pushed_at":"2024-11-16T21:11:38.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T15:53:29.162Z","etag":null,"topics":["artificial-intelligence","data-analysis","data-science","data-visualization","linear-regression","machine-learning","python","python-programming","regression-analysis","statistics"],"latest_commit_sha":null,"homepage":"","language":"Python","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/RobCyberLab.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":"2024-11-16T19:26:29.000Z","updated_at":"2024-11-16T21:11:41.000Z","dependencies_parsed_at":"2024-11-20T12:49:42.169Z","dependency_job_id":null,"html_url":"https://github.com/RobCyberLab/Linear-Regression-Application","commit_stats":null,"previous_names":["robcyberlab/linear-regression-application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FLinear-Regression-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FLinear-Regression-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FLinear-Regression-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FLinear-Regression-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobCyberLab","download_url":"https://codeload.github.com/RobCyberLab/Linear-Regression-Application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458022,"owners_count":20780675,"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","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":["artificial-intelligence","data-analysis","data-science","data-visualization","linear-regression","machine-learning","python","python-programming","regression-analysis","statistics"],"created_at":"2024-12-13T12:35:21.600Z","updated_at":"2025-03-31T10:50:49.576Z","avatar_url":"https://github.com/RobCyberLab.png","language":"Python","readme":"# 🔢Linear Regression Application💻\n\n## Table of Contents📑\n1. [Introduction](#introduction)\n2. [Mathematical Background](#mathematical-background)\n3. [Tasks](#tasks)\n4. [Implementation Details](#implementation-details)\n\n---\n\n## Introduction🎯\nIn this laboratory, we will implement linear regression using the least squares method. The goal is to find a linear relationship between points in a dataset by minimizing the sum of squared errors.\n\n## Mathematical Background📐\nGiven n points (x₁, y₁), (x₂, y₂),..., (xₙ, yₙ), we want to determine a linear relationship where y can be expressed as a function of x:\n\n```\ny = a + b⋅x\n```\n\nThe error for each point (xᵢ, yᵢ) is:\n```\neᵢ = yᵢ - (a + b⋅xᵢ)\n```\n\nThe total error function Q(a,b) is defined as:\n```\nQ(a,b) = Σ eᵢ² = Σ (yᵢ - a - b⋅xᵢ)²\n```\n\nThe minimum values for this function are obtained using:\n```\nb = Σ(xᵢ - x̄)(yᵢ - ȳ) / Σ(xᵢ - x̄)²\na = ȳ - b⋅x̄\n```\n\nWhere x̄ = (x₁ + x₂ + ... + xₙ)/n and ȳ = (y₁ + y₂ + ... + yₙ)/n represent the arithmetic means of the x and y coordinates of the given points.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"ex1.png\" alt=\"Linear Regression\" width=\"300\"\u003e\n  \u003cbr\u003e\n  \u003cem\u003eLinear Regression\u003c/em\u003e\n\u003c/p\u003e\n\n---\n\n## Tasks📝\n1. Manually create several images containing scattered points that show a correlation (at least one image with ascending correlation and one with descending correlation)\n2. Using Python, determine the coordinates (xᵢ, yᵢ) of the points from the images\n3. Calculate and display the values of a, b and Q(a,b) according to the formulas above\n4. Draw the trend line on the images using a different color\n\n---\n\n## Implementation Details💻\n- Use Python for implementation\n- Image processing libraries may be used for point detection\n- Visualization should include both the original points and the calculated trend line\n- The trend line should be clearly visible in a contrasting color","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Flinear-regression-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobcyberlab%2Flinear-regression-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Flinear-regression-application/lists"}