Hi, Daniweb. I have this hobby project I'm playing with where I need to generate data for a MonteCarlo simulation. The data needs to fit within a bell-curve around a given mean with a standard-deviation. I'm trying to figure out which random distribution system I need to use and how to use it. Disclaimer: It's been at least 3 years since I took Statistics and I barely remember what a Z-score is. Be kind in your replies. EDIT: Every. Single. Time. https://msdn.microsoft.com/en-us/library/bb982827.aspx

Member Avatar
Member Avatar
+0 forum 1

[ATTACH=RIGHT]22199[/ATTACH]Ever wondered just how many domain names there are on the Internet? DaniWeb has, and can reveal the answer as being an almost astonishing 215 million worldwide. According to global Internet infrastructure provider and domain registrar Verisign, more than five million domain names were added to the total during the second quarter of this year alone, which represents a growth rate of 2.5 percent above the previous three months. To put that into some perspective, that's a year on year growth in the number of Internet domains of 8.6 percent or some 16.9 million domains. If you were to look …

Member Avatar
Member Avatar
+3 forum 21

You may be wondering what a superfecta actually is, and the answer is: the most dangerous and serious threat to business. To clarify, the superfecta as defined by secure cloud hosting outfit FireHost is a group of four attack vectors that comprises of Cross-Site Request Forgery (CSRF), Cross-Site Scripting (XSS), SQL Injection and Directory Traversal. Cross-Site Request Forgery (CSRF) is an attack mode that forces the end user to execute an unwanted action on a web application in which they are currently authenticated. Cross-Site Scripting (XSS) involves the insertion of malicious code into webpages in order to manipulate website visitors. …

Member Avatar
Member Avatar
+3 forum 5

Well, there was a thread about a frequency function and a bell curve in Excel. [url]http://www.daniweb.com/forums/thread295203.html[/url] So here it is how about to do the NORMDIST function in Excel in C#.

Member Avatar
Member Avatar
+0 forum 2

System Administrators (SAs) have a tough job: Dealing with users and user accounts, security, patching, updates, upgrades, disk space, performance and other miscellaneous tasks often known as "other duties as assigned." For some SAs, the day never ends. Despite the challenges, pitfalls and occasional irate user; system administration is a fulfilling job with intangible rewards like no other position in IT. To assist those weary SAs in their quest to conquer their Linux systems, I've devised this list of 12 native Linux system monitoring tools that are always at my fingertips. Any user may issue these commands, if they exist …

Member Avatar
Member Avatar
+0 forum 8

Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum monthly rainfall was *correct result* ("*g*"). "g" should be the month that corresponds to the minimum monthly rainfall. The same issue occurs on the maximum display. The line was initially written as *lblMinMonthly.Text = ("The minimum monthly rainfall was " & intMinRainfall.ToString() & "(" & strMonths(Me.intCount) & ")")* but received …

Member Avatar
Member Avatar
+0 forum 4

Wednesday 6th June 2012 is [URL="http://www.worldipv6day.org/"]World IPv6 Launch Day[/URL] (no, seriously, it is) and, we have been continually reminded in a Chicken Little fashion, the IPv4 address space sky is falling. The fact that the media obsession with Internet addresses running out has been on-going for at least a decade now, fuelled no doubt by slow news days and headline space to fill, has led to something of a blasé attitude towards making the move over to IPv6. Indeed, you might be forgiven for thinking that the whole IPv6 thing had fallen by the wayside and become another Betamax technology. …

Member Avatar
Member Avatar
+0 forum 1

Forget all that stuff your parents taught you about not talking to strangers. One lucky user brought Twitter to its 20 billionth tweet over the weekend, an award as prestigious as being swept away in the confetti and balloons of being the 10,000th grocery market shopper. The momentous tweet was made by user “GGGGGGo_Lets_Go”, a Japanese graphic designer on Saturday, July 31st. When translated, his post said, "So that means the barrage might come back later all at once." Riveting stuff. [ATTACH]16377[/ATTACH]Status updates of 140 characters known as “tweets” have broadcasted banalities worldwide since Twitter’s inception in 2006. The service, …

Member Avatar
Member Avatar
+1 forum 1

This Python code allows you to get selected statistics of a story text. It will count lines, sentences, words, list words and characters by frequency, and give the average word length. It should be easy to add more statistics using the dictionaries created.

Member Avatar
Member Avatar
+3 forum 5

I am trying to convert a listbox to an array so i got this line var modarray = listBox1.Items.Cast<String>().ToArray(); but then i also need to use an int array so i tried the following int[] arr = modarray.Cast<int>().ToArray(); but i get an error that suggests that is not possible to convert the array. Can anybody helpme please

Member Avatar
Member Avatar
+0 forum 3

I am currently working in a Statistics Calculator which should display mean, standard deviation, median and mode. I have the graphical interface ![Sin_título](/attachments/large/4/Sin_título.png "Sin_título") This one has a text box where you get to write the list and by clicking the button it stores the fist value and goes to the next and that goes on until you finish and click on an other button to operate the list of values. My question is the following, How can I change the size of the arrrage according to the list they are inputting to the array?

Member Avatar
Member Avatar
+0 forum 2

Hi guys, Does anyone knows a way to, in .net websites, monitor how long does a user stays in your website, and how does a user stays in certain page of my website? I'm thinking of making frequent ajax calls, but I'm not sure on this. Any ideas? Cheers

Member Avatar
Member Avatar
+0 forum 1

**The problem:** Our "thankyou" page (goal page) is not recording all of our conversions. For instance, our analytics account is showing 19 conversions for yesterday, but we actually had 34 conversions. **The situation and the Code:** Our thankyou page is being called dynamically from the checkout page through a jquery/ajax call when the user clicks "complete order". The script sends the form data via an ajax post. A successful response returns the html for the thankyou page, which contains a summary of the customers order along with the conversion code. The conversion code is run through a jquery function, $.globalEval(), …

Member Avatar
Member Avatar
+0 forum 2

[URL="http://www.yandex.ru/"]Yandex[/URL] is one of the leading Internet portals in Russia, and yes they do still use that terminology instead of search engine. The name itself, apparently, stands for Yet Another Indexer which is kind of apt as the company has just published the results of Yet Another iPad Survey. However, this one is a little different to your run of the mill iPad research as it is both specific to user behaviour and more precisely specific to Russian user behaviour. As such it gives us an insight into how others around the world are using their tablet devices. [ATTACH=RIGHT]24051[/ATTACH]For a …

Member Avatar
Member Avatar
+0 forum 3

I need to calculate chi squared cdf from x->infinity with n=255 degrees of freedom. I cannot seem to get it to work. You can find formulae for chi squared distributions using google. Here is my non-functional approximation code: double riemannsum(double(*fnc)(double),double dx, double xmin, double xmax) { double ret=0; double x=xmin; while (x<xmax) { ret+=fnc(x); x+=dx; } return ret; } double lowergammaintegrand(double x) { return pow(x,254)*pow(M_E,-x);//I am only using 255 degrees of freedom in this program } double lowergamma(double x) { return riemannsum(&lowergammaintegrand,10,x,10000000); } double chicdf(double x) { static double gamma1275=3.40511e214;//this is Gamma(127.5)=Gamma(k/2) return lowergamma(x)/gamma1275; }

Member Avatar
Member Avatar
+0 forum 5

The vanity pages to look how good and active you are compared to others is back from member's #Community Contributions part underlined links. Thank you Dani, now we know again how good we are! *P.S. How many activity points worth is giving a spammer infraction? ;)*

Member Avatar
+0 forum 0

Greetings all. I need help to create a c program for computation of moving average.

Member Avatar
Member Avatar
+0 forum 1

I'm working in the confines of a binary search tree and an AVL tree, doing some operations to find different statistics for these trees when given large random values. For instance some of my functions include finding the average leaf node depth, find the shallowest leaf node, etc. My question is what is the best way to go through these trees and calculate such values, noting which level things are found, etc. I was considering a level order traversal but I'm not sure the implementation. Any hints or advice will help, Thanks! Edit: Any tips about keeping a height variable …

Member Avatar
Member Avatar
+0 forum 1

Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line).

Member Avatar
Member Avatar
+0 forum 6

[ATTACH=right]21490[/ATTACH]Imagine lining up 57.5 billion Apple iPads to build a wall measuring about 4000 miles long and 60 feet high. To put that into perspective, think of the Great Wall of China cloned and stacked on one top of the other, that's how big we are talking here folks. Now imagine all of those iPads stuffed choc-a-bloc with data. 1.8 zettabytes (or 1 billion terabytes if you prefer) of it to be precise. That, somewhat incredulously, is the amount of data that will be created globally just this year according to the new IDC Digital Universe study '[URL="http://www.emc.com/collateral/analyst-reports/idc-extracting-value-from-chaos-ar.pdf"]Extracting Value from …

Member Avatar
Member Avatar
+1 forum 4

Here is function to count the number of elementary events for sum of multiple throws of n-faced dice.

Member Avatar
Member Avatar
+1 forum 6

Hi all, I have been doing for fun this problem in projecteuler.net. The problem is as follows: +++++++++++++++++++++++++++++++++++++++++ Peter has nine four-sided (pyramidal) dice, each with faces numbered 1, 2, 3, 4. Colin has six six-sided (cubic) dice, each with faces numbered 1, 2, 3, 4, 5, 6. Peter and Colin roll their dice and compare totals: the highest total wins. The result is a draw if the totals are equal. What is the probability that Pyramidal Pete beats Cubic Colin? Give your answer rounded to seven decimal places in the form 0.abcdefg +++++++++++++++++++++++++++++++++++++++++ [CODE] #!/usr/bin/python from datetime import datetime …

Member Avatar
Member Avatar
+0 forum 4

I've taken 1 course in Java and 1 in C++ and now I'm tinkering with Python (love it so far). My module I'm currently working on is designed to solve a certain puzzle. To understand the code you'll need to understand the puzzle: There is an upside down triangle with n amount of numbers on the top row. For example, if n were 3 the triangle would look like this: _ _ _ _ _ _ There are a total of 6 spaces in this example. The puzzle is to find all the possible solutions so that the difference between …

Member Avatar
Member Avatar
+0 forum 3

I know next to nothing about statistics so tried Statistics::Basic because it seemed easy to use. Then I tried Statistics::Descriptive because it has functions that Statistics::Basic lacks. What I did not expect was to get a different result when calculating Standard Deviation using Statistics::Descriptive than when using the other module or [URL="http://answers.yahoo.com/question/index?qid=20080516135817AA3KdpX"]a subroutine copied form Yahoo Answers[/URL]. Am I doing something wrong, or does Statistics::Descriptive have a deviant way of calculating deviations?[CODE]#!/usr/bin/perl use strict; use warnings; use Statistics::Basic qw(:all); use Statistics::Descriptive; my @d = (5,10,5,100,150); print 'StdDev according to Basic is ', stddev(@d), "\n"; #Basic my $stat = Statistics::Descriptive::Full->new(); $stat->add_data(@d); …

Member Avatar
Member Avatar
+0 forum 1

I have a series of data (x,y) as below. I want to use this data to create a bell curve (normal distribution) with perl. How can I do this? x y 1 2 2 50 3 40 4 300 5 70 6 80 7 8 8 10 9 25 10 60 11 350 12 80 13 40 14 5 By normalized curve i mean something like on the link below. Didnt know how to draw a graph here. Really appreciate any help clues. [url]http://training.ce.washington.edu/WSDOT/Modules/08_specifications_qa/normal_distribution.htm[/url]

Member Avatar
Member Avatar
+0 forum 4

0 down vote favorite I'm trying to figure out how exactly to use stat() to capture information about a file. What I need is to be able to print several fields of information about a file. So.. [CODE] #include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> using namespace std; int main() { struct stat buf; stat("file",&buf); ... cout << st_dev << endl; cout << st_ino << endl; cout << st_mode << endl; cout << st_nlink << endl; cout << st_uid << endl; cout << st_gid << endl; cout << st_rdev << endl; cout << st_size << endl; cout << st_blksize …

Member Avatar
Member Avatar
+0 forum 1

Hi, Is there a frequency function in C# like there is in Excel. I need to show a distribution chart in bell curve form. Thanks

Member Avatar
Member Avatar
+0 forum 4

Hello, I'm a Python/SPSS (DANIWEB) beginner and I'm having a hard time getting classes, functions and methods into the right order. I want to write a script for SPSS where I can read text out of an text object from the SPSS-output file. My code looks like this: [CODE=Python] import SpssClient SpssClient.StartClient() OutputDoc = SpssClient.GetDesignatedOutputDoc() OutputItems = OutputDoc.GetOutputItems() OutputDoc.ClearSelection() for index in range(OutputItems.Size()): OutputItems = OutputItems.GetItemAt(index) text = OutputItems.GetTextContents() if text.find(" Number of cases read: 0 Number of cases listed: 0") >= 0: OutputItems.SetSelected(True) SpssClient.StopClient() print "fertig!" OutputDoc.Delete()[/CODE] error Message:[COLOR="Red"] Traceback (most recent call last): File "\\io\userdaten\EPIDEMIOLOGIE\Matthias\- Skripte\DingeEntfernen.py", line 11, …

Member Avatar
Member Avatar
+0 forum 9

Hi, I know this forum for a while and it has been helping me for a time, now I registered myself and I have a question to make you: I'm making a zone in my website where I can see a Top10 of links, products and news, and all of the info is saved in a MySql db the question/problem is that I want to see how many times a determined thing was seen per hour. e.g. between 1am and 2 am link1 was visited 11 times. Any sugestions? Thanks, in advance.

Member Avatar
Member Avatar
+0 forum 2

im supposed to write a code that you prompt to enter 10 different grades then drop the minimum value, while computing the average of the remaining 9. I'm getting infinity as the answer when I run the program so I know my min is messed up, somewhere but i cant find it can anyone help? [CODE]using System; namespace gradeblaster { class Program { public static void Main(string[] args) { getValues(); } // end Main static void getValues() { double total; double gradeCounter; double grade; double average; double min = Double.MinValue; total = 0; gradeCounter = 1; { while (gradeCounter <= …

Member Avatar
Member Avatar
+0 forum 5

The End.