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

  • Home
  • SEARCH
  • 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 525299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:39:25+00:00 2026-05-13T08:39:25+00:00

I have a set of 5 values from experiment, E1, …, E5 and results

  • 0

I have a set of 5 values from experiment, E1, …, E5 and results from 10000 different simulations, sim_A_B_C.out . From each simulation I get S1, …, S5 .

I want to study the correlation between experimental and simulated values. So I would like to perform linear regression for each set in a script that loops for the whole set of 10000 result files.

What is the best way of performing linear regression in bash or python? I used to do it with sigmaplot but it is not so good for so big set of data

  • 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-13T08:39:25+00:00Added an answer on May 13, 2026 at 8:39 am

    I expect that each of your simulations has some input values which differ, for instance, x is 1 for the first, 2 for the second, and then you have some function f(x) which runs the simulation and generates 5 points for each simulation. From your example, I expect x is actually three values, A, B, C.

    In that case, what you want to discover is the value of x which generates the best simulation.

    In this case, you really need to find the correlation between f(x) to the experimental result, rather than the simulated result itself.

    The reason for this is that finding a good correlation between the simulations and the experimental result has too many variables (if you assume the simulations are independent of each other), and will probably find a fit just by chance.

    I think you should also obtain additional experimental values, to increase your confidence.


    My favourite language for such things is R, which is free and available for most platforms at a download site near you, and I recommend the book “Introduction to Statistics using R”, which gives lots of potted examples for you to try, and runs you through beginning statistics to some quite advanced things.

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

Sidebar

Related Questions

I have a simple function Bar that uses a set of values from a
I have a class with properties that I would like to set values from
I have a drop down menu with dynamically set values from the database: When
I have set of values coming from server side where iam trying to generate
I have a set of values that I'm pushing into an array in the
public void test(Object obj){ //Here i have to set the values of the obj
I have a set of experimental values. For instance, I have a value of
I have a large set of values V, some of which are likely to
I have set up an update query which will update values entered into text
I have a set of three double values as part of an anonymous expression

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.