statistical anomaly? - statistics

I wrote some code that processes 135,000 books. I just got word from my retailer that 983 books seem to have an issue and is blaming my code for "screwing up" his inventory. I have a friend on the inside that says that there has been an on going issue with his inventory and it doesnt look to be me.
I'm thinking that if the issue was my code, more than .73% (983/135,000) of the data would be affected. How do I reply to him in mathematical terms to disprove his theory that it was my code?

Maybe exactly 983 books have a cedilla. Or Japanese characters. Or diphthongs.
I don't think there's any way you can use statistics here that won't cause statisticians to cringe.
Why don't you just offer a 0.73% discount to your fee, based on the outcome? :-)
Or, offer to fix the problem, meaning that they'll have to provide the information as to why they think they're screwed up.
In other words, make them specify what "screwed up" actually means. Do they not open in the reader? Do they open but characters or formatting are incorrect? Do they "brick" the reading devices?
Without real information, there's little you can do.

Related

I need advice on aggregating data in a spreadsheet to be analyzed with Python

I want to input the past couple of years of my high school soccer team's stat books into a spreadsheet so I can run my own analysis on it using Python in Google Colab or a Jupyter Notebook. The problem I have right now is that I don't know what the best way of aggregating it in Excel is. I have a record of basic stats such as lineups, shots, saves, goals, assists, etc. for each individual game (standard box score stuff you'd expect from a high school team who uses a JV player to keep stats). But what would be the best way to input all of this in a way that will make it easy for me to analyze? Obviously I can't make a separate Excel tab for each individual game (there are hundreds of games), and I don't think logging them all into the same tab would be the best thing to do either, but I don't what I should do in order to solve this problem. This seems like a simple problem, and I'm probably missing a really obvious solution, but if anyone could give me some advice, I'd be very grateful. Does anyone have any experience doing anything similar? Thanks for taking the time to help.
I haven't tried anything yet because I wanted to figure out a good method before I put a bunch of time into this.

Importing from Excel to Visma Contracting

My company is using this program called Visma Contracting. This program is used to type inn a product number (example: 10 240 75) and how many of this item was used (example: 4). So these numbers we (me and my co-workers) put into an excel sheet and deliver to the guy in charge of the systematizing these (A column being product number, an B column being the used amount). From there it is retyped from excel to Visma. This is madness! There must be a way for the two programs to talk to each other? I have talked to the Visma support and they are giving me nothing else then a no. I wish i could give more info about this Visma stuff, but i fear that it is a locked program. I have also been searching around for a 3rd party software that can eliminate this massive annoying problem, with no luck. Does anyone have anything that might ease my itch?
Thanks in advance!
Sounds impossible but...
If you want to try blind keystrokes check out Mouse and Keystroke Recorder I have some experience automating stuff with this program. It works sometimes with varying degrees of reliability.
Be forewarned that nobody recommends this as it could cause problems. It simply plays back keystrokes without being aware of what it is doing. When used with care it can work but it could be dangerous.
Or use SendKeys from Excel VBA; that might work better as the data is already in Excel. But the same warnings apply. Use at your own risk.

How can I drag rows from a DataGrid and drop them in Excel?

I'd like to be able to drag and drop from a DataGrid in a Flash application into an Excel spreadsheet. Is this possible? If so, how do I implement this?
Edit: Nine days without so much as a comment is pushing me to believe one of the following things:
This question is so easy to answer that everyone who reads it thinks, "Ah, the next guy will get it. This taco isn't gonna eat itself."
No one knows what Microsoft Excel is.
I'm so inept at coding for Flash that everyone who reads this question promptly dies from a stroke brought on by uncontrollable, hysterical laughter. Kind of like what happens when a person is exposed to the Joker's laughing gas.
The entire internet has been suddenly and completely vacated creating a vast, digital wasteland (except for me, obviously).
Adobe's PR person in charge of their Twitter account recently posted something highly offensive and everyone has finally gotten organized and successfully boycotted something without inviting me to the party.
Anyone want to clue me in to which one is, in fact, the truth?
Or maybe just tell me that what I want is stupid/impossible/not worth the effort?
The simple answer is no, it is not possible. Have you ever coded AS4? I spent 6 months coding stupid loops that randomly draw colored lines. It was terrible. Get out while you still can. I was coding some tangents outside by my school when a couple of engineering grads started making trouble. I coded one bad batch and my professor said "You're moving with the retards to coding 101" I hopped on my segway and rode home. I then hung myself.

Improve Concentration/Workspace?

How do you get yourself in the "zone" for programming? As a CS undergrad I've been finding it difficult to get focused in. I think part of my problem is I do not have "proper" workspace living in the dorms. Any ideas or tips? (Perhaps good thinking music, whiteboards? etc)
The best way I found yet is to turn off the Internet. Since opening my browser and browsing to some random site has become almost a reflex, I deactivate my network card for the time I need to work. This way I have the time to realise what I am doing before it is too late. The Internet must be the number one "Zone Killer" I know...
Truthfully, nobody can tell you about you, they can only tell you about them. That may help, or it may not.
I've seen people able to get "in the zone" on a commuter train car. I've seen people who have it broken when the air conditioner kicks in.
Here's what works for me:
Need no people talking to me. I can't keep the ideas juggling while explaining them or having other ideas tossed in to the mix. I know, pair programming can be great - but I've never been "in the zone" while pair programming.
Music is okay, but no playlists with wildly different styles, or songs I absolutely love.
It almost always kicks off when I'm frustrated by something but then have an idea how to solve one aspect of the problem... then things flow from there.
I need a desk clean enough that nothing on it distracts my attention and makes me think - no dev magazines with interesting tech on the cover, no dishes with mold on them, etc.
I need about 20 square feet to get up, pace for 2-3 steps, then sit back down. Too much room gets me too far away from the computer. Too little room and I feel confined.
As soon as I solve the problem, I'm normally out of the zone. A phone call or person at my desk will break it. Stopping to answer email "toast" will kill it too.
But again, this is me. All of this may actually be the reverse for you - You'll find it eventually, I'm sure. Just don't give up, and don't take personal anecdotes and advise or internet blog posts as absolute truth - "the zone" is very much a personal thing.
One small thing which helped me a lot was to get noise cancelling headphones. These are a bit pricey, but being able to switch on silence is great!

Uses for Wolfram Alpha in programming

Now that Wolfram Alpha is released, I am interested in finding out if it can be used as a time-saver in daily programming.
What would you use Wolfram Alpha to do, that earlier took you more time to do manually?
I guess the "Web and Computer systems"-examples is a good start, but there must be more hidden gems that will be really practical for us programmers.
A short list of examples:
MD5-hashing / SHA-hashing
Quick lockup of unicode and HTML-codes for symbols
Color-codes
Please only include one search query per answer, then we can rate them to get the best ones to the top.
(I made this one a community-wiki, since we will be using the voting for ranking)
Note: If some of the links in the answers don't work (eg: wolfram doesn't find any results, then replace all + with spaces..
I might 'save time' by not playing around with it and doing real work instead. :)
Calculating lift coefficients of NACA profiles (example).
(I made a program for this, but it's nice to have the option to do it quick)
I probably won't use it for anything. I don't know about you, but I deal with enough black boxes on a daily basis, and I'd rather use the ones that have been tried and tested thoroughly.
This might come back to haunt me later, but it strikes me that although there might be a point to WA used in a mechanical manner, from my perspective I'm thinking it's not the hard calculable information questions which are the problem which needs to be solved, it's the soft human data which defies classification or rigid modelling. Google seem to understand this, not sure Stephen Wolfram does.
OTOH it could be that anyone can be Colin Laney now.
Someone double check me here:
The MD5 hash of "Wolfram Alpha" (no quotes) is:
882b 0be2 79eb 7e88 86cd 3dae 19c1 d267
And not:
a615 9984 9aee b7be 3091 68bc 0ab7 ?
EDIT: The hash changes every time given the same query...what kind of hash is this?
http://www14.wolframalpha.com/input/?i=MD5%22Wolfram+Alpha%22

Resources