Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6860437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:24:31+00:00 2026-05-27T02:24:31+00:00

I have data and I need to do a linear regression on the data

  • 0

I have data and I need to do a linear regression on the data to obtain

y=Alpha*x+Beta

Alpha and Beta are estimators given by the regression, polyfit can give me those with no problem but this is a physical science report and I need to give error estimators on those values

I know from statistics that standard deviation exists for simple linear regression coefficients.

How can I calculate then in Matlab

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:24:32+00:00Added an answer on May 27, 2026 at 2:24 am

    The second output of the regress command will give you 95% confidence intervals for the regression coefficients. Here’s an example:

    >> x = [ones(100,1), (1:100)'];
    >> alpha = 3; beta = 2;
    >> y = x*[alpha; beta]+randn(100,1);
    >> [coeffs, coeffints] = regress(y,x);
    >> coeffs
    coeffs =
           2.9712
           1.9998
    >> coeffints
    coeffints =
           2.5851       3.3573
           1.9932       2.0064
    

    Here alpha has been estimated 2.9712, with 95% confidence interval of between 2.5851 and 3.3573, and beta has been estimated as 1.9998, with 95% confidence interval between 1.9932 and 2.0064.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I have timestamped data, which I need to search based on the timestamp
I have data in an SQL Server 2005 database which I need to copy
I often have data in Excel or text that I need to get into
I have this scenario where I need data integrity in the physical database. For
I have a fixed-length data file need to persistence into database. I use a
I have some data in a database that I need represented in an XML
I have 1000 rows of data but need to only display 100 rows at
I have some data files that I need to install together with my application
I have a large amount of data I need to store, and be able
I have 2 data contexts in my application (different databases) and need to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.