Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CE 106 Computer Project Number 3: Determining Statistics of Scores using Matlab, Study Guides, Projects, Research of Civil Engineering

A computer project for ce 106 students where they are required to write three versions of matlab programs to calculate the total number of scores (n), average (µ), standard deviation (σ), and skewness coefficient (θ) from a given dataset (scores.dat). Students are encouraged to use different methods, including standard functions, matrix products, and traditional loops, to obtain the sums. The document also provides instructions on how to test the program using the unix command.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 11/08/2009

koofers-user-fd6-2
koofers-user-fd6-2 🇺🇸

4

(1)

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download CE 106 Computer Project Number 3: Determining Statistics of Scores using Matlab and more Study Guides, Projects, Research Civil Engineering in PDF only on Docsity! CE 106 – Computer Project Number 3 Due On or Before Wednesday, November 5, 2008 Given a set of of data in the file, scores.dat, write 3 versions of Matlab programs to determine, (1) N , the total number of scores. (2) The average of the scores, µ = 1 N N∑ i=1 xi . (3) The standard deviation of the scores, σ = √√√√ 1 N − 1 [ N∑ i=1 x2i − 2µ N∑ i=1 xi + Nµ2 ] (4) The skewness coefficient of the scores, θ = 1 Nσ3 [ N∑ i=1 x3i − 3µ N∑ i=1 x2i + 3µ 2 N∑ i=1 xi − Nµ3 ] Test your program with scores.dat, available by copying it directly using the UNIX command aludra.usc.edu(1): cp ˜ce108/scores.dat scores.dat The answers should be N = 49; µ = 74.594; σ = 11.924 and θ = −0.492. The 3 versions of the program should all produce the same answers, the versions are • Use standard matlab function sum for calculation. • Use matrix products to obtain the sums. • Use traditional loop structure to obtain the sums.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved