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 8504765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:07:38+00:00 2026-06-11T02:07:38+00:00

For my lab experiments I write small programs to help with the data analysis.

  • 0

For my lab experiments I write small programs to help with the data analysis. I usually just need basic calculations, means, standard deviation, arbitrary weighted function fitting and plots with errorbars and fitted function.

With GNU Octave, I can do this. I started to read more into the language of it and I start to not like its inconsistencies and that I have to learn yet another language.

So I am thinking about using Python, which I am using for a while now, with SciPy and NumPy. Can I do those things with Python easily or is it more overhead to get the general purpose language Python to do what I intend to do?

  • 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-06-11T02:07:39+00:00Added an answer on June 11, 2026 at 2:07 am

    Yes, the Python ecosystem makes it a viable platform for everyday data analysis tasks, especially using the IPython interface (but I’ll stick to the standard one here.) The “[not having] to learn yet another language” argument is a strong one, IMHO, and is one of the reasons why I tend to use Python for this stuff.

    >>> import numpy as np
    >>> import scipy.optimize
    

    “I usually just need basic calculations”

    >>> x = np.linspace(0, 10, 50)
    >>> y = 3*x**2+5+2*np.sin(x)
    

    “means, standard deviation”

    >>> y.mean()
    106.3687338223809
    >>> y.std()
    91.395548605660522
    

    “arbitrary weighted function fitting”

    >>> def func(x, a, b, c):
    ...     return a*x**2+b+c*np.sin(x)
    ... 
    >>> ynoisy = y + np.random.normal(0, 0.2, size=len(x))
    >>> popt, pcov = scipy.optimize.curve_fit(func, x, ynoisy)
    >>> popt
    array([ 3.00015527,  4.99421236,  2.03380468])
    

    “plots with error bars and fitted function”

    xerr = 0.5
    yerr = abs(np.random.normal(0.3, 10.0))
    fitted_data = func(x, *popt)
    
    # using the simplified, non-object-oriented interface here
    # handy for quick plots
    
    from pylab import *
    errorbar(x, ynoisy, xerr=xerr, yerr=yerr, c="green", label="actual data")
    plot(x, fitted_data, c="blue", label="fitted function")
    xlim(0, 10)
    ylim(0, 350)
    legend()
    xlabel("time since post")
    ylabel("coolness of Python")
    savefig("cool.png")
    

    sample pic

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

Sidebar

Related Questions

I need help here I wrote code for my lab that The loop will
Here is my code: /* Scott Landau Robot Lab Assignment 1 */ // Standard
How do you make just the x-lab label italics and NOT the y-lab label
I work for a medical lab company. They need to be able to search
Implementation Use: Data Structure Lab Exercise for October/28/2011 To do: Implement a Binary Search
I have a problem for a university lab; Write a short program that outputs
This is a lab assignment I am stuck on. I need to accept this
For a lab I've got to do, I need to create a program that
I just wrote a lab that is supposed to flip two coins 500 times
Regarding the code lab here , how can we filter datastore data within the

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.