# How do I calculate the parameters for a linear regression?

Considering the equation y=βx+α

the α can be calculated as:

Intercept(series1, series2)

where series 1 is set as the dependent series.

And the β can be generated by

Slope(series1, series2)

where series 1 is set as the dependent series.
{"ft_lang_label":"__label__en","ft_lang_prob":0.87500817,"math_prob":0.94593847,"size":264,"snap":"2021-04-2021-17","text_gpt3_token_len":69,"char_repetition_ratio":0.16923077,"word_repetition_ratio":0.30769232,"special_character_ratio":0.23106061,"punctuation_ratio":0.12962963,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9973409,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-21T14:59:55Z\",\"WARC-Record-ID\":\"<urn:uuid:b550145c-1434-46d1-b1a6-7a35acddfe61>\",\"Content-Length\":\"41507\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3c8545cf-7cbe-4918-ac09-9bc03d931112>\",\"WARC-Concurrent-To\":\"<urn:uuid:9c2d0aaf-d382-4608-be1b-9579c205e92d>\",\"WARC-IP-Address\":\"79.136.101.45\",\"WARC-Target-URI\":\"https://help.macrobond.com/faq/calculations/howdoicalculatetheparametersforalinearregression/\",\"WARC-Payload-Digest\":\"sha1:JTWJFQG5ZO74ZG3D2FPYF4KM6RTNLCAC\",\"WARC-Block-Digest\":\"sha1:VR43UYP4I3BF57FEACI2JOKC7T57N4KE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703524858.74_warc_CC-MAIN-20210121132407-20210121162407-00780.warc.gz\"}"}